corelibraries-devexpress-dot-xtraprinting-dot-printingsystembase-9a9c1242.md
Obsolete; the event is not raised.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
public event MarginsChangeEventHandler AfterMarginsChange
Public Event AfterMarginsChange As MarginsChangeEventHandler
The AfterMarginsChange event's data class is MarginsChangeEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Side | Gets changed page margins. |
| Value | Gets or sets the changed margin size in hundredths of an inch. |
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
InitializeComponent();
PrintingSystem.AfterMarginsChange += PrintingSystem_AfterMarginsChange;
PrintingSystem.PageSettingsChanged += PrintingSystem_PageSettingsChanged;
InitializeComponent()
AddHandler PrintingSystem.AfterMarginsChange, AddressOf PrintingSystem_AfterMarginsChange
AddHandler PrintingSystem.PageSettingsChanged, AddressOf PrintingSystem_PageSettingsChanged
See Also