XL.Font.SetItalic
-----------------

Turns on/off the italic font.

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

MBS( "XL.Font.SetItalic"; Book; Font; Value ) 

**MBS**( **"XL.Font.SetItalic";** /\* Turns on/off the italic font. \*/  
**$Book**; /\* The reference number for the workbook.e.g. $ref \*/   
**$Font**; /\* The index of the font in the book to target.e.g. 0 \*/   
**$Value**) /\* The new font italic setting. Pass 1 for italic and 0 for normal.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 |
| Value | The new font italic setting. Pass 1 for italic and 0 for normal. | 0 |

### Result

Returns OK or error.

### Description

Turns on/off the italic font.  
If italic doesn't show, maybe check whether the chosen font supports italic.  
### Examples

Make a font italic:

 MBS ( "XL.Font.SetItalic"; $book ; $font10 ; 1 )  
### See also

- [XL.Font.GetItalic](XLFontGetItalic.md)

### Blog Entries

- [MBS Plugin Advent calendar: 13 - XL](https://www.mbsplugins.de/archive/2023-12-13/MBS_Plugin_Advent_calendar_13_/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[XL.Font.SetColor](XLFontSetColor.md) - [XL.Font.SetName](XLFontSetName.md)

[HTML Version](XLFontSetItalic.shtml)