Table of Contents

Enum TextFormatFlags

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Interfaces.dll

Specifies the display and layout information for text strings.

[Flags]
public enum TextFormatFlags

Fields

Bottom = 8

Aligns the text on the bottom of the bounding rectangle. Applied only when the text is a single line.

Default = 0

Applies the default formatting, which is left-aligned.

EndEllipsis = 32768

Removes the end of trimmed lines, and replaces them with an ellipsis.

ExpandTabs = 64

Expands tab characters. The default number of characters per tab is eight. The WordEllipsis, PathEllipsis, and EndEllipsis values cannot be used with ExpandTabs.

ExternalLeading = 512

Includes the font external leading in line height. Typically, external leading is not included in the height of a line of text.

GlyphOverhangPadding = 0

Adds padding to the bounding rectangle to accommodate overhanging glyphs.

HidePrefix = 1048576

Applies to Windows 2000 and Windows XP only.

HorizontalCenter = 1

Centers the text horizontally within the bounding rectangle.

Internal = 4096

Uses the system font to calculate text metrics.

Left = 0

Aligns the text on the left side of the clipping area.

LeftAndRightPadding = 536870912

Adds padding to both sides of the bounding rectangle.

ModifyString = 65536

Has no effect on the drawn text.

NoClipping = 256

Allows the overhanging parts of glyphs and unwrapped text reaching outside the formatting rectangle to show.

NoFullWidthCharacterBreak = 524288

Applies to Windows 98, Windows Me, Windows 2000, or Windows XP only.

NoPadding = 268435456

Does not add padding to the bounding rectangle.

NoPrefix = 2048

Turns off processing of prefix characters. Typically, the ampersand (&) mnemonic-prefix character is interpreted as a directive to underscore the character that follows, and the double-ampersand (&&) mnemonic-prefix characters as a directive to print a single ampersand. By specifying NoPrefix, this processing is turned off. For example, an input string of "A&bc&&d" with NoPrefix applied would result in output of "A&bc&&d".

PathEllipsis = 16384

Removes the center of trimmed lines and replaces it with an ellipsis.

PrefixOnly = 2097152

Applies to Windows 2000 or Windows XP only.

PreserveGraphicsClipping = 16777216

Preserves the clipping specified by a graphics object.

PreserveGraphicsTranslateTransform = 33554432

Preserves the transformation specified by a graphics object.

Right = 2

Aligns the text on the right side of the clipping area.

RightToLeft = 131072

Displays the text from right to left.

SingleLine = 32

Displays the text in a single line.

TextBoxControl = 8192

Specifies the text should be formatted for display on a TextBox control.

Top = 0

Aligns the text on the top of the bounding rectangle.

VerticalCenter = 4

Centers the text vertically, within the bounding rectangle.

WordBreak = 16

Breaks the text at the end of a word.

WordEllipsis = 262144

Trims the line to the nearest word and an ellipsis is placed at the end of a trimmed line.