Skip to main content
A newer version of this page is available. .

DiagramControl.AlignCanvas(Nullable<HorizontalAlignment>, Nullable<VerticalAlignment>) Method

Scrolls the viewport to apply the specified horizontal and vertical alignment.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v20.1.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Diagram, DevExpress.Wpf.Diagram

Declaration

public void AlignCanvas(
    HorizontalAlignment? horizontalAlignment = default(HorizontalAlignment? ),
    VerticalAlignment? verticalAlignment = default(VerticalAlignment? )
)

Optional Parameters

Name Type Default Description
horizontalAlignment Nullable<HorizontalAlignment> *null*

A HorizontalAlignment enumeration value that is the horizontal alignment of the canvas.

verticalAlignment Nullable<VerticalAlignment> *null*

A VerticalAlignment enumeration value that is the vertical alignment of the canvas.

See Also