DiagramControl.AlignCanvas(Nullable<HorzAlignment>, Nullable<VertAlignment>) Method

Applies the specified alignment to the canvas.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v21.2.dll


public void AlignCanvas(
    HorzAlignment? horizontalAlignment = null,
    VertAlignment? verticalAlignment = null

Optional Parameters

Name Type Default Description
horizontalAlignment Nullable<HorzAlignment>


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

verticalAlignment Nullable<VertAlignment>


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

See Also