Skip to main content

BaselinePixelAlignment Enum

Definition​

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

Specifies the baseline pixel alignment options for rendering text or graphics.

public enum BaselinePixelAlignment

Inheritance: Enum -> BaselinePixelAlignment

Remarks​

Use this enumeration to control whether the baseline of rendered content is aligned to the pixel grid, which can affect visual crispness and positioning. The value may influence rendering quality, especially at small font sizes or when precise alignment is required.

Fields​

NameDescription
AlignedThe baseline is aligned to the pixel grid.
UnalignedThe baseline is not aligned to the pixel grid.
UnspecifiedThe baseline pixel alignment is unspecified.

Aligned Field​

The baseline is aligned to the pixel grid.

public Avalonia.Media.BaselinePixelAlignment Aligned

Unaligned Field​

The baseline is not aligned to the pixel grid.

public Avalonia.Media.BaselinePixelAlignment Unaligned

Unspecified Field​

The baseline pixel alignment is unspecified.

public Avalonia.Media.BaselinePixelAlignment Unspecified