NativeExcel for .Net Developer's Reference

IFont.Subscript Property

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

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;
[Visual Basic]
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