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


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

Optional Parameters

Name Type Default Description
horizontalAlignment Nullable<HorizontalAlignment>


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

verticalAlignment Nullable<VerticalAlignment>


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

See Also