Click or drag to resize

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
)

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