Back to Devexpress

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

windowsforms-devexpress-dot-xtradiagram-dot-diagramcontrol-dot-aligncanvas-x28-system-dot-nullable-devexpress-dot-utils-dot-horzalignment-system-dot-nullable-devexpress-dot-utils-dot-vertalignment-x29.md

latest1.9 KB
Original Source

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

Applies the specified alignment to the canvas.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
public void AlignCanvas(
    HorzAlignment? horizontalAlignment = null,
    VertAlignment? verticalAlignment = null
)
vb
Public Sub AlignCanvas(
    horizontalAlignment As HorzAlignment? = Nothing,
    verticalAlignment As VertAlignment? = Nothing
)

Optional Parameters

NameTypeDefaultDescription
horizontalAlignmentNullable<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

DiagramControl Class

DiagramControl Members

DevExpress.XtraDiagram Namespace