Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

TextAlignment Enum

Definition

Namespace:
Microsoft.Maui
Assembly:
Microsoft.Maui.dll
Source:
TextAlignment.cs
Source:
TextAlignment.cs
Source:
TextAlignment.cs
Source:
TextAlignment.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Enumerates values that control text alignment.

public enum class TextAlignment
public enum TextAlignment
type TextAlignment = 
Public Enum TextAlignment
Inheritance
TextAlignment

Fields

Name Value Description
Start 0

Indicates that text will be aligned to the left or top of horizontally or vertically aligned text, respectively.

Center 1

Indicates that text will be aligned in the middle of either horizontally or vertically aligned text.

End 2

Indicates that text will be aligned to the right or bottom of horizontally or vertically aligned text, respectively.

Justify 3

Indicates that text will be stretched to fill the available width, with words spaced evenly across the line.

Applies to


Feedback

Was this page helpful?