NativeExcel for .Net Developer's Reference

IFont Interface

Contains the font attributes (font name, font size, color, and so on)

For a list of all members of this type, see IFont Members.

[Visual Basic]
PublicInterfaceIFont
[C#]
publicinterfaceIFont
[C++]
public__gc__interfaceIFont
[JScript]
publicinterfaceIFont

Example

The following example formats cells A1:C5 as bold.

book.Worksheets[1].Range["A1:C5"].Font.Bold = true;

Requirements

Namespace: NativeExcel

Assembly: NativeExcel (in NativeExcel.dll)

See Also

IFont Members | NativeExcel Namespace | IRange.Font property