XL.Font.SetUnderline
--------------------

Sets the underline style of the 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.SetUnderline"; Book; Font; Value ) 

**MBS**( **"XL.Font.SetUnderline"** /\* Sets the underline style of the 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 underline setting. 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 underline setting. | 0 |

### Result

Returns OK or error.

### Description

Sets the underline style of the font.  
Values:  
| 0 | No underline |
|--:|---|
| 1 | Single underline |
| 2 | Double underline |
| 33 | Single ACC |
| 34 | Double ACC |

### Examples

Make a font underlined:

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

- [XL.Font.GetUnderline](XLFontGetUnderline.md)

This function checks for a license.

Created 18th August 2014 , last changed 23th January 2015

  
[XL.Font.SetStrikeOut](XLFontSetStrikeOut.md) - [XL.FormControl.AddItem](XLFormControlAddItem.md)

[HTML Version](XLFontSetUnderline.shtml)