Back to Devexpress

Page Setup Dialog Window

windowsforms-116353-controls-and-libraries-diagrams-diagram-control-page-setup-dialog-window.md

latest2.4 KB
Original Source

Page Setup Dialog Window

  • Oct 18, 2020

The Page Setup dialog window provides access to the line jump options and allows end-users to change the page size, orientation and margins.

The dialog window contains two tabs.

Page Size

To hide the tab, set the DiagramOptionsProtection.AllowChangePageParameters property to false.

The DiagramOptionsView.MeasureUnit property specifies the displayed unit of measurement for custom page size and margins.

OptionCorresponding Property
Pre-defined size/Custom sizeDiagramOptionsView.PageSize
Page orientationPublic property is not available
Page marginDiagramOptionsView.PageMargin

Layout and Routing

To hide the tab, set the DiagramOptionsProtection.AllowChangeLineJumpSettings property to false.

OptionCorresponding Property
Add line jumps toDiagramOptionsConnector.LineJumpPlacement
Line jump styleDiagramOptionsConnector.LineJumpStyle
Line jump height/Line jump widthDiagramOptionsConnector.LineJumpSize

In code, the dialog window can be invoked by executing the DiagramCommandsBase.SetPageParametersCommand. The command’s parameter specifies which tab is displayed by default.

End-users can invoke it by clicking a button at the bottom right corner of the Page Setup and Layout ribbon groups.