Gets or sets a value that indicates whether the font is formatted as subscript.
[Visual Basic] Property Subscript As Boolean [C#] bool Subscript { get; set; } [C++] __property bool get_Subscript(); __property void set_Subscript(bool ); [JScript] function get Subscript() : bool function set Subscript(bool);
true if the font is formatted as subscript; otherwise, false.
This example sets the font in the cell A1 to subscript.
[C#]
book.Worksheets[1].Range["A1"].Font.Subscript = true;
[Visual Basic]
book.Worksheets(1).Range("A1").Font.Subscript = true
[C++]
book->Worksheets->Item[1]->Range->Item[S"A1"]->Font->Subscript = true;
IFont Interface | NativeExcel Namespace