Back to Devexpress

PrintingSystemBase.AfterMarginsChange Event

corelibraries-devexpress-dot-xtraprinting-dot-printingsystembase-9a9c1242.md

latest3.5 KB
Original Source

PrintingSystemBase.AfterMarginsChange Event

Obsolete; the event is not raised.

Namespace : DevExpress.XtraPrinting

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public event MarginsChangeEventHandler AfterMarginsChange
vb
Public Event AfterMarginsChange As MarginsChangeEventHandler

Event Data

The AfterMarginsChange event's data class is MarginsChangeEventArgs. The following properties provide information specific to this event:

PropertyDescription
SideGets changed page margins.
ValueGets or sets the changed margin size in hundredths of an inch.

Remarks

Anchored controls are automatically adjusted and the document is recreated each time you do any changes in the print preview. Therefore, the AfterMarginsChange and PageSettingsChanged events no longer occur.

You can set the PreviewOptions.SyncWithReportPageSettings property to Never to revert to the previous behavior.

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

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.

reporting-winforms-dynamic-size-image-on-page-settings/CS/WindowsFormsApplication1/XtraReport1.cs#L9

csharp
InitializeComponent();
PrintingSystem.AfterMarginsChange += PrintingSystem_AfterMarginsChange;
PrintingSystem.PageSettingsChanged += PrintingSystem_PageSettingsChanged;

reporting-winforms-dynamic-size-image-on-page-settings/VB/WindowsFormsApplication1/XtraReport1.vb#L11

vb
InitializeComponent()
AddHandler PrintingSystem.AfterMarginsChange, AddressOf PrintingSystem_AfterMarginsChange
AddHandler PrintingSystem.PageSettingsChanged, AddressOf PrintingSystem_PageSettingsChanged

See Also

PrintingSystemBase Class

PrintingSystemBase Members

DevExpress.XtraPrinting Namespace