A newer version of this page is available. Switch to the current version.

MarginsChangeEventArgs Class

Namespace: DevExpress.XtraPrinting

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

Declaration

public class MarginsChangeEventArgs :
    EventArgs
Public Class MarginsChangeEventArgs
    Inherits EventArgs

Remarks

The PrintingSystemBase.BeforeMarginsChange event occurs before page margin(s) change. The PrintingSystemBase.AfterMarginsChange event occurs after page margin(s) change. The MarginsChangeEventArgs.Side property contains the changed page margin. The value is taken from the MarginSide enumeration.

Examples

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