corelibraries-devexpress-dot-diagram-dot-core-b8d6f2ad.md
Lists the values used to specify whether the canvas size is automatically changed to fit the current shapes layout.
Namespace : DevExpress.Diagram.Core
Assembly : DevExpress.Diagram.v25.2.Core.dll
NuGet Package : DevExpress.Diagram.Core
public enum CanvasSizeMode
Public Enum CanvasSizeMode
| Name | Description |
|---|---|
None |
The canvas size does not change on moving shapes outside of it.
|
| AutoSize |
The canvas is automatically resized to fit the current shapes layout.
|
| Fill |
The canvas fills the entire visible area.
|
The following properties accept/return CanvasSizeMode values:
| Library | Related API Members |
|---|---|
| WinForms Controls | DiagramOptionsView.CanvasSizeMode |
| WPF Controls | DiagramControl.CanvasSizeMode |
The values listed by this enumeration are used to set the DiagramControl.CanvasSizeMode and DiagramOptionsView.CanvasSizeMode properties.
See Also