XL.Font.GetItalic
-----------------

Returns whether the font is italic.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [XL](component_XL.md) | [3.5](newinversion35.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "XL.Font.GetItalic"; Book; Font ) 

**MBS**( **"XL.Font.GetItalic";** /\* Returns whether the font is italic. \*/  
**$Book**; /\* The reference number for the workbook.e.g. $ref \*/   
**$Font**) /\* The index of the font in the book to target.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Book | The reference number for the workbook. | $ref |
| Font | The index of the font in the book to target. | 0 |

### Result

Returns value or error.

### Description

Returns whether the font is italic.  
### Examples

Check italic property:

 Set Variable \[ $font ; Value: MBS ( "[XL.Book.AddFont](XLBookAddFont.md)"; $bookRef ) \]   
Set Variable \[ $r ; Value: MBS ( "[XL.Font.SetItalic](XLFontSetItalic.md)"; $bookRef ; $font ; 1 ) \]   
Show Custom Dialog \[ "Italic flag" ; MBS ( "XL.Font.GetItalic"; $bookRef ; $font ) \]   
Set Variable \[ $r ; Value: MBS ( "[XL.Font.SetItalic](XLFontSetItalic.md)"; $bookRef ; $font ; 0 ) \]   
Show Custom Dialog \[ "Italic flag" ; MBS ( "XL.Font.GetItalic"; $bookRef ; $font ) \]  
### See also

- [XL.Book.AddFont](XLBookAddFont.md)
- [XL.Font.SetItalic](XLFontSetItalic.md)

This function checks for a license.

Created 18th August 2014 , last changed 19th April 2020

  
[XL.Font.GetColor](XLFontGetColor.md) - [XL.Font.GetName](XLFontGetName.md)

[HTML Version](XLFontGetItalic.shtml)