Back to Devexpress

PrintingSystemBase.AfterChange Event

corelibraries-devexpress-dot-xtraprinting-dot-printingsystembase-0cca2e5f.md

latest4.8 KB
Original Source

PrintingSystemBase.AfterChange Event

Occurs on raising any PrintingSystem event that does not have the “Before” prefix in its name.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public event ChangeEventHandler AfterChange
vb
Public Event AfterChange As ChangeEventHandler

Event Data

The AfterChange event's data class is ChangeEventArgs. The following properties provide information specific to this event:

PropertyDescription
EventNameGets the event name that initiated a ChangeEvent.

The event data class exposes the following methods:

MethodDescription
Add(String, Object)Initializes a new instance of the DevExpress.XtraPrinting.ChangeEventArgs.EventInfo class with the specified name and value and adds it to the collection.
ValueOf(String)Returns an object, containing information about the event with the specified name.

Remarks

The following events can be passed as a parameter with the AfterChange event.

EventEventNameInfoList.NameInfoList.Value
PrintControl.BrickClickBrickClickBrickA Brick class instance representing the event sender.
PrintControl.BrickMouseDownBrickDownBrickA Brick class instance representing the event sender.
PrintControl.BrickMouseMoveBrickMoveBrickA Brick class instance representing the event sender.
PrintControl.BrickMouseUpBrickUpBrickA Brick class instance representing the event sender.

For more information on handling events, see Consuming Events in MSDN.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AfterChange event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-dashboard-print-and-export-visual-representation-as-is/CS/DashboardExport/CustomDashboardExporter.cs#L18

csharp
ps.Links.AddRange(new object[] { componentLink });
ps.AfterChange += ps_AfterChange;
componentLink.Component = this;

winforms-dashboard-print-and-export-visual-representation-as-is/VB/DashboardExport/CustomDashboardExporter.vb#L20

vb
ps.Links.AddRange(New Object() { componentLink })
AddHandler ps.AfterChange, AddressOf ps_AfterChange
componentLink.Component = Me

Implements

AfterChange

See Also

PrintingSystemBase.BeforeChange

IPrintingSystem.BeforeChange

AfterChange

PrintingSystemBase Class

PrintingSystemBase Members

DevExpress.XtraPrinting Namespace