Defines the cell's left, top, right, and bottom, border types.
lt.Document.SheetEditor.BorderType = {
left: 0,
top: 1,
right: 2,
bottom: 3
}
Value | Name | Description |
---|---|---|
0 | left |
Refers to the left border of a cell. |
1 | top |
Refers to the top border of a cell. |
2 | right |
Refers to the right border of a cell. |
3 | bottom |
Refers to the bottom border of a cell. |
The BorderType enumeration is often used in conjunction with BorderStyle to not only define where the border is placed but also its style.
Being able to individually specify borders is particularly useful for creating grid layouts, emphasizing certain cells, or for aesthetic purposes in a worksheet.
It is important to note that individual border types can be combined. For instance, applying both top
and bottom
borders to a cell without affecting the left
and right
borders.