Back to Devexpress

DiagramControl.FitToDrawingMargin Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-cb982cef.md

latest2.8 KB
Original Source

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

csharp
public Thickness FitToDrawingMargin { get; set; }
vb
Public Property FitToDrawingMargin As Thickness

Property Value

TypeDescription
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.

wpf-diagram-ms-automatic-graph-layout-algorithms/CS/DXDiagram.CustomLayoutAlgorithms/LayoutExampleWindow.xaml#L21

xml
PageSize="1100,800"
FitToDrawingMargin="90"
ToolboxVisibility="Compact"

See Also

FitToDrawing()

FitToItems(IEnumerable<DiagramItem>)

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace