DiagramControl.CanvasSizeMode Property

Obsolete. Gets or sets whether the canvas size is automatically expanded/shrunk to fit the current shapes layout.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v20.1.dll

Declaration

[Obsolete("Use the DiagramOptionsView.CanvasSizeMode property instead")]
[Browsable(false)]
public CanvasSizeMode CanvasSizeMode { get; set; }
<Obsolete("Use the DiagramOptionsView.CanvasSizeMode property instead")>
<Browsable(False)>
Public Property CanvasSizeMode As CanvasSizeMode

Property Value

Type Description
CanvasSizeMode

A CanvasSizeMode enumeration value.

Remarks

IMPORTANT

This property is now obsolete. Use the DiagramOptionsView.CanvasSizeMode property instead.

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

Initially, the canvas size equals the size of one page (the DiagramOptionsView.PageSize property). When a shape is moved beyond the current canvas borders, the canvas is automatically expanded horizontally (by the PageSize.Width value) or vertically (by the PageSize.Height value).

Implements

DevExpress.Diagram.Core.IDiagramControl.CanvasSizeMode
See Also