HorizontalAlignment Enum
Definition
Defines how a control aligns itself horizontally in its parent control.
public enum HorizontalAlignment
Fields
| Name | Description |
|---|---|
| Center | The control centers itself in the parent control. |
| Left | The control aligns itself to the left of the parent control. |
| Right | The control aligns itself to the right of the parent control. |
| Stretch | The control stretches to fill the width of the parent control. |
Center Field
The control centers itself in the parent control.
public Avalonia.Layout.HorizontalAlignment Center
Left Field
The control aligns itself to the left of the parent control.
public Avalonia.Layout.HorizontalAlignment Left
Right Field
The control aligns itself to the right of the parent control.
public Avalonia.Layout.HorizontalAlignment Right
Stretch Field
The control stretches to fill the width of the parent control.
public Avalonia.Layout.HorizontalAlignment Stretch