Skip to main content

MarginsChangeEventArgs Class

Provides data for the PrintingSystemBase.BeforeMarginsChange event.

Namespace: DevExpress.XtraPrinting

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

NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design

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;

}

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