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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem