Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
XL.Format.SetLocked
Sets the locked property.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
XL | 3.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "XL.Format.SetLocked"; Book; Format; Value ) More
Parameters
Parameter | Description | Example |
---|---|---|
Book | The reference to the workbook. Please use XL.LoadBook to load a file. | $ref |
Format | The index of the format in the book to target. | 0 |
Value | The new setting. | $value |
Result
Returns OK or error.
Description
Sets the locked property.Needs to be used together with XL.Sheet.SetProtect or XL.Sheet.SetProtectEx function to prevent editing in locked cells.
Examples
Create locked format:
Set Variable [$textFormat; Value:MBS( "XL.Book.AddFormat"; $book)]
Set Variable [$r; Value:MBS( "XL.Format.SetLocked"; $book; $textFormat; 1) // locked ]
See also
- XL.Book.AddFormat
- XL.Format.GetLocked
- XL.Format.SetBorder
- XL.Format.SetFont
- XL.Format.SetHidden
- XL.Format.SetWrap
- XL.LoadBook
- XL.Sheet.SetCol
- XL.Sheet.SetProtect
- XL.Sheet.SetProtectEx
This function checks for a license.
Created 18th August 2014, last changed 11st February 2020