A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

46 lines
1.2 KiB

namespace Avalonia.Media
{
/// <summary>
/// Defines how text is aligned.
/// </summary>
public enum TextAlignment
{
/// <summary>
/// The text is left-aligned.
/// </summary>
Left,
/// <summary>
/// The text is centered.
/// </summary>
Center,
/// <summary>
/// The text is right-aligned.
/// </summary>
Right,
/// <summary>
/// The beginning of the text is aligned to the edge of the available space.
/// </summary>
Start,
/// <summary>
/// The end of the text is aligned to the edge of the available space.
/// </summary>
End,
/// <summary>
/// Text alignment is inferred from the text content.
/// </summary>
/// <remarks>
/// When the TextAlignment property is set to DetectFromContent, alignment is inferred from the text content of the control. For example, English text is left aligned, and Arabic text is right aligned.
/// </remarks>
DetectFromContent,
/// <summary>
/// Text is justified within the available space.
/// </summary>
Justify
}
}