NativeExcel2 for .Net Developer's Reference

IFont.Size Property

Returns or sets the size of the font. Read/write double.

[Visual Basic]
PropertySizeAsDouble
[C#]
doubleSize{get;set;}
[C++]
__propertydoubleget_Size();
__propertyvoidset_Size(double);
[JScript]
functiongetSize():double
functionsetSize(double);

Example

This example sets the font size for cells A1:F15 on sheet one to 11 points.

[C#]
book.Worksheets[1].Range["A1:F15"].Font.Size = 11;
[VisualBasic]
book.Worksheets(1).Range("A1:F15").Font.Size = 11
[C++]
book->Worksheets->Item[1]->Range->Item[S"A1:F15"]->Font->Size = 11;

See Also

IFont Interface | NativeExcel Namespace