Skip to main content

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.v22.1.dll

NuGet Package: DevExpress.Wpf.Diagram

Declaration

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

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