Skip to main content

HorizontalAlignment Enumeration

Defines how a control aligns itself horizontally in its parent control.

Definition

Namespace: Avalonia.Layout
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public enum HorizontalAlignment

Members

Stretch0The control stretches to fill the width of the parent control.
Left1The control aligns itself to the left of the parent control.
Center2The control centers itself in the parent control.
Right3The control aligns itself to the right of the parent control.

See Also

Reference

Avalonia.Layout Namespace