XlsRange
SetBorderToSingleCell Method
|
Sets the border for a single cell.
Namespace:
Spire.Xls.Core.Spreadsheet
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
protected void SetBorderToSingleCell(
BordersLineType borderIndex,
LineStyleType borderLine,
ExcelColors borderColor
)
Protected Sub SetBorderToSingleCell (
borderIndex As BordersLineType,
borderLine As LineStyleType,
borderColor As ExcelColors
)
protected:
void SetBorderToSingleCell(
BordersLineType borderIndex,
LineStyleType borderLine,
ExcelColors borderColor
)
member SetBorderToSingleCell :
borderIndex : BordersLineType *
borderLine : LineStyleType *
borderColor : ExcelColors -> unit
Parameters
-
borderIndex
-
Type:
Spire.Xls
BordersLineType
The index of the border to set.
-
borderLine
-
Type:
Spire.Xls
LineStyleType
The style of the border line.
-
borderColor
-
Type:
Spire.Xls
ExcelColors
The color of the border.
Exceptions
Exception
|
Condition
|
NotSupportedException
|
Thrown when the operation is not supported for non-single cells.
|
See Also