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

XL.Book.SetRGBMode

Sets a RGB mode.

Component Version macOS Windows Linux Server iOS SDK
XL 3.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XL.Book.SetRGBMode"; bookRef; value )   More

Parameters

Parameter Description Example
bookRef The reference to the workbook. Please use XL.LoadBook to load a file. $ref
value The new setting. Pass 0 or 1. 0

Result

Returns OK or error.

Description

Sets a RGB mode.
1: RGB mode, 0: Index mode (default).
In RGB mode use XL.ColorPack and XL.ColorUnpack methods for getting/setting colors.

Examples

Enable RGB mode:

Set Variable [ $logoID ; Value: MBS( "XL.Book.SetRGBMode"; $book; 1 ) ]

See also

This function checks for a license.

Created 18th August 2014, last changed 2nd November 2021


XL.Book.SetDefaultFont - XL.Book.SetRefR1C1