NativeExcel2 for .Net Developer's Reference

IFont.Subscript Property

Gets or sets a value that indicates whether the font is formatted as subscript.

[Visual Basic]
PropertySubscriptAsBoolean
[C#]
boolSubscript{get;set;}
[C++]
__propertyboolget_Subscript();
__propertyvoidset_Subscript(bool);
[JScript]
functiongetSubscript():bool
functionsetSubscript(bool);

Property Value

true if the font is formatted as subscript; otherwise, false.

Example

This example sets the font in the cell A1 to subscript.

[C#]
book.Worksheets[1].Range["A1"].Font.Subscript = true;
[VisualBasic]
book.Worksheets(1).Range("A1").Font.Subscript = true
[C++]
book->Worksheets->Item[1]->Range->Item[S"A1"]->Font->Subscript = true;

See Also

IFont Interface | NativeExcel Namespace