Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
XL.Format.SetBorder
Sets the border style.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
XL | 3.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "XL.Format.SetBorder"; Book; Format { ; Value } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
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 border style. Default value is 1. | $value | Optional |
Result
Returns OK or error.
Description
Sets the border style.Available styles:
0 None
1 Thin
2 Medium
3 Dashed
4 Dotted
5 Thick
6 Double
7 Hair
8 Medium dashed
9 Dash dot
10 Medium dash dot
11 Dash Dot Dot
12 Medium dash dot dot
13 Slant dash dot
Examples
Create border format:
Set Variable [$textFormat; Value:MBS( "XL.Book.AddFormat"; $book)]
Set Variable [$r; Value:MBS( "XL.Format.SetBorder"; $book; $textFormat; 1) // thin ]
See also
- XL.Book.AddFormat
- XL.Format.GetLocked
- XL.Format.SetBorderColor
- XL.Format.SetBorderLeft
- XL.Format.SetBorderRight
- XL.Format.SetHidden
- XL.Format.SetIndent
- XL.Format.SetLocked
- XL.Format.SetWrap
- XL.LoadBook
Example Databases
This function checks for a license.
Created 18th August 2014, last changed 30th December 2023