[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IFont.Superscript

Superscript Property

Superscript

Gets or sets whether superscript 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 Superscript { get; set; }
Property Superscript As Boolean
Examples
IRange cell = worksheet.Range["A1"];
cell.Value = "E=mc2";

// Apply superscript only to "2".
IFont font = cell.Characters(4, 1).Font;
font.Superscript = true;

bool superscript = font.Superscript;