GemBox.Spreadsheet

CellBorder.SetBorder Method 

Sets both border line color and line style.

public void SetBorder(
   Color lineColor,
   LineStyle lineStyle
);

Parameters

lineColor
Border line color.
lineStyle
Border line style.

Remarks

Note that although diagonal-up (IndividualBorder.DiagonalUp or MultipleBorders.DiagonalUp) and diagonal-down (IndividualBorder.DiagonalDown or MultipleBorders.DiagonalDown) can be individually set, they share the same color and the same line style. This is a Microsoft Excel limitation.

See Also

CellBorder Class | GemBox.Spreadsheet Namespace