DiagramControl.CanvasSizeMode Property

Specifies whether the Canvas size is automatically changed to fit the current shapes layout. This is a dependency property.

Namespace: DevExpress.Xpf.Diagram

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

Declaration

public CanvasSizeMode CanvasSizeMode { get; set; }
Public Property CanvasSizeMode As CanvasSizeMode

Property Value

Type Description
CanvasSizeMode

A CanvasSizeMode enumeration value.

Remarks

If the CanvasSizeMode property is set to CanvasSizeMode.AutoSize, the canvas size is automatically changed to fit the current shape layout.

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

Implements

DevExpress.Diagram.Core.IDiagramControl.CanvasSizeMode
See Also