Skip to main content

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

Applies the specified alignment to the canvas.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v23.2.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

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

Optional Parameters

Name Type Default Description
horizontalAlignment Nullable<HorzAlignment> null

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

verticalAlignment Nullable<VertAlignment> null

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

See Also