Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Wpf.Diagram

#Declaration

public Size PageSize { get; set; }

#Property Value

Type Description
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.

See Also