StringFormatFlags | serializable, flag |
System.Drawing (system.drawing.dll) | enum |
This enumeration provides a variety of flags that control the way a
text string is formatted during rendering and measurement. Most of
the flags relate to the relationship between the string and its
bounding rectangle, but there are also flags that enable you to
specify the text direction (e.g., left-to-right or right-to-left) and
whether font-substitution is to be used when a character found in the
string does not have a corresponding glyph in the font of choice.
These flags should be familiar to people who have previously used the
Win32 GDI text-rendering methods.
public enum StringFormatFlags {
DirectionRightToLeft = 0x00000001,
DirectionVertical = 0x00000002,
FitBlackBox = 0x00000004,
DisplayFormatControl = 0x00000020,
NoFontFallback = 0x00000400,
MeasureTrailingSpaces = 0x00000800,
NoWrap = 0x00001000,
LineLimit = 0x00002000,
NoClip = 0x00004000
}
Hierarchy
System.Object System.ValueType
System.Enum(System.IComparabl,
System.IFormattable,
System.IConvertible)
StringFormatFlags
Returned By
StringFormat.FormatFlags
Passed To
StringFormat.{FormatFlags, StringFormat()}
|