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

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

Example Databases

This function checks for a license.

Created 18th August 2014, last changed 27th November 2017


XL.Format.SetAlignV - XL.Format.SetBorderBottom

💬 Ask a question or report a problem