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

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