corelibraries-devexpress-dot-xtraprinting-dot-printingsystembase-ab771d3e.md
Occurs on raising any PrintingSystem event that has the “Before” prefix in its name.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
public event ChangeEventHandler BeforeChange
Public Event BeforeChange As ChangeEventHandler
The BeforeChange event's data class is ChangeEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| EventName | Gets the event name that initiated a ChangeEvent. |
The event data class exposes the following methods:
| Method | Description |
|---|---|
| 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. |
The following events can be passed as a parameter with the BeforeChange event.
| Event | EventName | InfoList.Name | InfoList.Value |
|---|---|---|---|
| PrintingSystemBase.BeforeMarginsChange | BeforeMarginsChange | Side | A string representing a margin side or “All” for all margin sides. |
For more information on handling events, see Consuming Events in MSDN.
See Also