[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IFont.Subscript

Subscript Property

Subscript

Gets or sets whether subscript formatting is applied to the font.

Setting this property on Font affects all text in the range. To format only part of the text, call IRange.Characters(int, int) to get an ITextRun, and then use Font.

Declaration
bool Subscript { get; set; }
Property Subscript As Boolean
Examples
IRange cell = worksheet.Range["A1"];
cell.Value = "H2O";

// Apply subscript only to "2".
IFont font = cell.Characters(1, 1).Font;
font.Subscript = true;

bool subscript = font.Subscript;