Class XlsBorder
- Namespace
- Spire.Xls.Core.Spreadsheet
- Assembly
- Spire.XLS.dll
public class XlsBorder : XlsObject, IBorder, IExcelApplication, IDisposable
- Inheritance
-
XlsBorder
- Implements
- Inherited Members
Properties
BorderIndex
public BordersLineType BorderIndex { get; }
Property Value
Color
Returns or sets the primary color of the object, as shown in the table in the remarks section. Use the RGB function to create a color value. Read/write Color.
public Color Color { get; set; }
Property Value
KnownColor
Returns or sets a ExcelColors value that represents the color of the border
public ExcelColors KnownColor { get; set; }
Property Value
LineStyle
Returns or sets the line style for the border. Read/write LineStyleType.
public LineStyleType LineStyle { get; set; }
Property Value
OColor
public OColor OColor { get; }
Property Value
ShowDiagonalLine
Indicates whether shows diagonal line.
public bool ShowDiagonalLine { get; set; }
Property Value
Methods
ColorToExcelColor(ExcelColors)
public static ExcelColors ColorToExcelColor(ExcelColors color)
Parameters
color
ExcelColors
Returns
CopyFrom(IBorder)
public void CopyFrom(IBorder baseBorder)
Parameters
baseBorder
IBorder
GetThemeColor(out ThemeColorType, out double)
public bool GetThemeColor(out ThemeColorType type, out double tint)
Parameters
type
ThemeColorTypetint
double
Returns
SetThemeColor(ThemeColorType, double)
public void SetThemeColor(ThemeColorType type, double tint)
Parameters
type
ThemeColorTypetint
double
setLineStyleAndColor(LineStyleType, ExcelColors)
public void setLineStyleAndColor(LineStyleType borderLine, ExcelColors borderColor)
Parameters
borderLine
LineStyleTypeborderColor
ExcelColors