| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
XL.Format.SetBorderTop
Sets the top border style.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| XL | 3.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "XL.Format.SetBorderTop"; 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 top 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.SetBorderTop"; $book; $textFormat; 1) // thin ]
Set Variable [$r; Value:MBS( "XL.Format.SetBorderTop"; $book; $textFormat; 1) // thin ]
See also
- XL.Book.AddFormat
- XL.Format.GetBorderLeft
- XL.Format.GetBorderRight
- XL.Format.GetBorderTop
- XL.Format.GetBorderTopColor
- XL.Format.SetBorder
- XL.Format.SetBorderColor
- XL.Format.SetBorderLeft
- XL.Format.SetBorderRight
- XL.Format.SetBorderTopColor
This function checks for a license.
Created 18th August 2014, last changed 11st May 2024