Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

XL.Font.GetColor

Returns the color of the font.

Component Version macOS Windows Linux Server iOS SDK
XL 3.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XL.Font.GetColor"; 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 the color of the font.
If book is in RGB mode, you need to use XL.Color.UnPack to get red, green and blue color components. If book is not in RGB mode, you receive a color number (see XL.Font.SetColor).

See also

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014


XL.Font.GetBold - XL.Font.GetItalic