Back to Devexpress

DiagramControl.PageSize Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-f7d73102.md

latest2.6 KB
Original Source

DiagramControl.PageSize Property

Gets or sets the initial diagram canvas size (the tile size). This is a dependency property.

Namespace : DevExpress.Xpf.Diagram

Assembly : DevExpress.Xpf.Diagram.v25.2.dll

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public Size PageSize { get; set; }
vb
Public Property PageSize As Size

Property Value

TypeDescription
Size

A System.Windows.Size object representing the tile size in pixels.

|

Remarks

The Canvas consists of tiles. The size of a tile is specified by the PageSize property, e.g., if the end-user places a shape outside of its current borders and the DiagramControl.CanvasSizeMode option is set to CanvasSizeMode.AutoSize, the canvas is expanded in the corresponding direction by one additional tile.

The DiagramControl.PaperKind property allows you to use one of the standard paper sizes as the page size.

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

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.

wpf-diagram-ms-automatic-graph-layout-algorithms/CS/DXDiagram.CustomLayoutAlgorithms/LayoutExampleWindow.xaml#L20

xml
DockPanel.Dock="Right"
PageSize="1100,800"
FitToDrawingMargin="90"

See Also

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace