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

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

Applies the specified alignment to the canvas.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v19.2.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