Italic Property

Microsoft Office Web Components Object Model

Italic Property

       

True if the font style is italic. Read/write Boolean for the ChFont and PivotFont objects; read/write Variant for the Font object (returns Null if some portions of the text are italic and some are not). Use the IsNull function to determine whether the return value is Null.

expression.Italic

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

This example sets the font to italic for the contents of column B.

Spreadsheet1.Columns(2).Font.Italic = True