SSpread.SetCellBorder Method
| Explanation | Sets the color and linetype of the border around the cell. First, specify the target ruled line part in the argument index. To set a border around the cell range, specify the cell range with the arguments col, row, col2, row2, and specify $CellBorderIndexOutline for the argument index. To set a ruled line in one cell, set the column number (same value) in the arguments col and col2, and the row number (same value) in row and row2. Use the GetCellBorder method to get the color and line type of the cell border. | |||||||||||||||||||||||||||||||||||||||
| Call format | SetCellBorder(col, row, col2, row2, index, color, style) | |||||||||||||||||||||||||||||||||||||||
| Return value | None | |||||||||||||||||||||||||||||||||||||||
| Arguments | col | Column number of first cell | ||||||||||||||||||||||||||||||||||||||
| row | Row number of the first cell | |||||||||||||||||||||||||||||||||||||||
| col2 | Column number of last cell | |||||||||||||||||||||||||||||||||||||||
| row2 | Row number of the last cell | |||||||||||||||||||||||||||||||||||||||
| index | Border part to be set Specify a combination of the following values.
| |||||||||||||||||||||||||||||||||||||||
| color | Border color Specify a color constant or #RRGGBB format | |||||||||||||||||||||||||||||||||||||||
| style | Line type Specify the following values.
| |||||||||||||||||||||||||||||||||||||||
| Exception | EXT-28 | An error occurred in the SetCellBorder method | ||||||||||||||||||||||||||||||||||||||
| Example of use | | |||||||||||||||||||||||||||||||||||||||
| Related item | GetCellBorder method | |||||||||||||||||||||||||||||||||||||||