Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

XL.Font.GetBold

Returns whether the font is bold.

Component Version macOS Windows Linux Server iOS SDK
XL 3.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XL.Font.GetBold"; book; Font )   More

Parameters

Parameter Description Example
book The reference to the workbook. Please use XL.LoadBook to load a file. $ref
Font The index of the font in the book to target. 0

Result

Returns value or error.

Description

Returns whether the font is bold.

Examples

Try bold property for font:

Set Variable [ $font ; Value: MBS( "XL.Book.AddFont"; $bookRef ) ]
Set Variable [ $r ; Value: MBS( "XL.Font.SetBold"; $bookRef; $font; 1 ) ]
Show Custom Dialog [ "bold flag" ; MBS( "XL.Font.GetBold"; $bookRef; $font ) ]
Set Variable [ $r ; Value: MBS( "XL.Font.SetBold"; $bookRef; $font; 0 ) ]
Show Custom Dialog [ "bold flag" ; MBS( "XL.Font.GetBold"; $bookRef; $font ) ]

See also

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


XL.Date.UnPack - XL.Font.GetColor

Feedback: Report problem or ask question.