Gets or sets a value that indicates whether the font style is italic.
[Visual Basic] Property Italic As Boolean [C#] bool Italic { get; set; } [C++] __property bool get_Italic(); __property void set_Italic(bool ); [JScript] function get Italic() : bool function set Italic(bool);
true if the font style is italic; otherwise, false.
This example sets the font style to italic for the range A1:A5 on sheet one.
[C#]
book.Worksheets[1].Range["A1:A5"].Font.Italic = true;
[Visual Basic]
book.Worksheets(1).Range("A1:A5").Font.Italic = true
[C++]
book->Worksheets->Item[1]->Range->Item[S"A1:A5"]->Font->Italic = true;
IFont Interface | NativeExcel Namespace