Skip to main content

DiagramControl.FitToDrawing() Method

Changes the page size to fit the diagram contents.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v25.2.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

public void FitToDrawing()

Remarks

The FitToDrawing method shrinks or extends the current page bounds so that they are sufficiently large to fit the diagram contents. The DiagramOptionsView.FitToDrawingMargin property specifies the margin between the diagram content and the page bounds.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FitToDrawing() method.

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