Skip to main content

MarginsChangeEventArgs Class

Provides data for the PrintingSystemBase.BeforeMarginsChange event.

Namespace: DevExpress.XtraPrinting

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

Declaration

public class MarginsChangeEventArgs :
    EventArgs

Remarks

The PrintingSystemBase.BeforeMarginsChange event occurs before page margin(s) change.

The MarginsChangeEventArgs.Side property contains the changed page margin. The value is taken from the MarginSide enumeration.

Example

The following example uses the PrintingSystemBase.BeforeMarginsChange event handler to change the margin size to the default value of 100, if the margins have been moved:

using DevExpress.XtraPrinting;
// ...

private void printingSystem1_BeforeMarginsChange(object sender, 
MarginsChangeEventArgs e) {

    if (e.Value != 100) e.Value = 100;

}

Inheritance

Object
EventArgs
MarginsChangeEventArgs
See Also