Skip to main content
A newer version of this page is available. .

MarginsChangeEventArgs Class

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v19.1.Core.dll

Declaration

public class MarginsChangeEventArgs :
    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.

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;

}

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

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.

Inheritance

Object
EventArgs
MarginsChangeEventArgs
See Also