NativeExcel2 for .Net Developer's Reference

IFont.Superscript Property

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

[Visual Basic]
PropertySuperscriptAsBoolean
[C#]
boolSuperscript{get;set;}
[C++]
__propertyboolget_Superscript();
__propertyvoidset_Superscript(bool);
[JScript]
functiongetSuperscript():bool
functionsetSuperscript(bool);

Property Value

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

Example

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

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

See Also

IFont Interface | NativeExcel Namespace