[]
Describes font and layout options for drawing text.
Use this class to supply text formatting information such as font family, font size, bold, and italic settings when custom graphics logic needs to measure or render text. It is used by APIs such as GetDigitWidth(TextFormatInfo).
public class TextFormatInfo
Public Class TextFormatInfo
TextFormatInfo textFormat = new TextFormatInfo();
textFormat.FontFamily = "Calibri";
textFormat.FontSize = 11;
textFormat.Bold = true;
textFormat.Italic = false;
| Name | Description |
|---|---|
| TextFormatInfo() |
| Name | Description |
|---|---|
| Bold | Gets or sets the top-level font weight for the content of the element.
Returns |
| FontFamily | Gets or sets the font family used for drawing text. |
| FontSize | Gets or sets the desired font size to use in points. |
| Italic | Gets or sets the font style for the content of the element.
Returns |