Skip to main content

AlignmentX Enum

Definition​

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia

Describes how content is positioned horizontally in a container.

public enum AlignmentX

Inheritance: Enum -> AlignmentX

Fields​

NameDescription
CenterThe contents align themselves with the center of the container
LeftThe contents align themselves with the left of the container
RightThe contents align themselves with the right of the container

Center Field​

The contents align themselves with the center of the container

public Avalonia.Media.AlignmentX Center

Left Field​

The contents align themselves with the left of the container

public Avalonia.Media.AlignmentX Left

Right Field​

The contents align themselves with the right of the container

public Avalonia.Media.AlignmentX Right