[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.TextFormatInfo

TextFormatInfo Class

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).

Inheritance
TextFormatInfo
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class TextFormatInfo
Public Class TextFormatInfo
Examples
TextFormatInfo textFormat = new TextFormatInfo();
textFormat.FontFamily = "Calibri";
textFormat.FontSize = 11;
textFormat.Bold = true;
textFormat.Italic = false;

Constructors

Name Description
TextFormatInfo()

Properties

Name Description
Bold

Gets or sets the top-level font weight for the content of the element.

Returns true if the font weight is bold (700). Otherwise, returns false when the font weight is normal or regular (400).

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 true if the font style is italic; otherwise, returns false.