Skip to main content

DiagramControl.FitToDrawingMargin Property

Gets or sets the margin between diagram contents and page bounds when calling the DiagramControl.FitToDrawing and DiagramControl.FitToItems methods. This is a dependency property.

Namespace: DevExpress.Xpf.Diagram

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

NuGet Package: DevExpress.Wpf.Diagram

Declaration

public Thickness FitToDrawingMargin { get; set; }

Property Value

Type Description
Thickness

A Thickness value that represents the margin between diagram contents and page bounds.

Remarks

The margin specified by the FitToDrawingMargin property cannot be less than the DiagramControl.PageMargin property value.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FitToDrawingMargin 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.

See Also