Skip to main content

DrawTextAlignment Enum

NuGet: GHIElectronics.TinyCLR.Drawing
Assembly: GHIElectronics.TinyCLR.Drawing
Namespace: System.Drawing

Bit flags that control how text is aligned, wrapped, and trimmed within a rectangle.

public enum DrawTextAlignment : uint

Fields

NameValueDescription
None0x00000000No special alignment behavior.
WordWrap0x00000001Text wraps to the next line when it does not fit.
TruncateAtBottom0x00000004Text that overflows the bottom of the rectangle is truncated.
Ellipsis0x00000008Overflowing text is replaced with an ellipsis.
IgnoreHeight0x00000010The available height is ignored during layout.
AlignmentLeft0x00000000Text is aligned to the left edge.
AlignmentCenter0x00000002Text is centered horizontally.
AlignmentRight0x00000020Text is aligned to the right edge.
AlignmentMask0x00000022Bit mask for the horizontal alignment flags.
TrimmingNone0x00000000Text is not trimmed.
TrimmingWordEllipsis0x00000008Text is trimmed at a word boundary with an ellipsis.
TrimmingCharacterEllipsis0x00000040Text is trimmed at a character boundary with an ellipsis.
TrimmingMask0x00000048Bit mask for the trimming flags.