Skip to main content

VerticalAlignment Enum

Definition

Namespace:Avalonia.Layout
Assembly:Avalonia.Base
Package:Avalonia

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

public enum VerticalAlignment

Inheritance: Enum -> VerticalAlignment

Fields

NameDescription
BottomThe control aligns itself to the bottom of the parent control.
CenterThe control centers itself within the parent control.
StretchThe control stretches to fill the height of the parent control.
TopThe control aligns itself to the top of the parent control.

Bottom Field

The control aligns itself to the bottom of the parent control.

public Avalonia.Layout.VerticalAlignment Bottom

Center Field

The control centers itself within the parent control.

public Avalonia.Layout.VerticalAlignment Center

Stretch Field

The control stretches to fill the height of the parent control.

public Avalonia.Layout.VerticalAlignment Stretch

Top Field

The control aligns itself to the top of the parent control.

public Avalonia.Layout.VerticalAlignment Top