[]
Represents text formatting attributes such as font, language, colors, decorations and so on.
public class FontSubSet.TextFormat
| Name | Description |
|---|---|
| TextFormat() | Initializes a new instance of FontSubSet.TextFormat. |
| Name | Description |
|---|---|
| BackColor | Gets or sets the text background color. The default is transparent. |
| Font | Gets or sets a Font used by this format. If not null, this value overrides the FontName property. |
| FontBold | Gets or sets a value indicating whether the font should be bolded. |
| FontFeatures | Provides access to a set of Microsoft OpenType typography properties. |
| FontItalic | Gets or sets whether the font should be italicized. |
| FontName | Gets or sets a font family name. This value is used only if the Font property is null. This value is case insensitive. |
| FontSize | Gets or sets the logical font size, in points or in graphic units. The defalut value is 12. See also the description of the FontSizeInGraphicUnits property. |
| FontSizeInGraphicUnits | /// Gets or sets a value indicating whether FontSize specifies the font size in graphic units or in points. |
| FontStyle | Gets or sets the flags indicating the desired or emulated style of the font. |
| ForeColor | Gets or sets the text foreground color. The default is black. |
| GlyphAdvanceFactor | Gets or sets the scaling factor for the glyph advance value. Valid values are from 0.5 up. The default is 1. |
| Language | Gets or sets a value identifying the language system. |
| LineGap | Gets or sets a value specifying the explicit line gap (if not null), in graphic units. |
| Script | Gets or sets an OpenType script tag. |
| Strikethrough | Gets or sets a value indicating whether the strikethrough style is applied to the text. |
| Tag | Gets or sets an arbitrary custom data associated with this FontSubSet.TextFormat. |
| TextDecorations | Gets or sets the flags indicating which decorations are applied to the text. |
| TransverseOffset | Gets or sets the offset of the text in the orthogonal direction, in graphic units. The default is 0. |
| Underline | Gets or sets a value indicating whether the text is underlined. |
| Name | Description |
|---|---|
| CopyTo(TextFormat) | Copies the current text format settings to another FontSubSet.TextFormat object. |
| CultureToLanguage(CultureInfo) | Returns the Language value corresponding to a given CultureInfo. |
| ScriptCodeToTag(ScriptCode, bool) | Converts a ScriptCode value to the corresponding FontSubSet.ScriptTag. |