Table of Contents

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

BordersLineType

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

Color

KnownColor

Returns or sets a ExcelColors value that represents the color of the border

public ExcelColors KnownColor { get; set; }

Property Value

ExcelColors

LineStyle

Returns or sets the line style for the border. Read/write LineStyleType.

public LineStyleType LineStyle { get; set; }

Property Value

LineStyleType

OColor

public OColor OColor { get; }

Property Value

OColor

ShowDiagonalLine

Indicates whether shows diagonal line.

public bool ShowDiagonalLine { get; set; }

Property Value

bool

Methods

ColorToExcelColor(ExcelColors)

public static ExcelColors ColorToExcelColor(ExcelColors color)

Parameters

color ExcelColors

Returns

ExcelColors

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 ThemeColorType
tint double

Returns

bool

SetThemeColor(ThemeColorType, double)

public void SetThemeColor(ThemeColorType type, double tint)

Parameters

type ThemeColorType
tint double

setLineStyleAndColor(LineStyleType, ExcelColors)

public void setLineStyleAndColor(LineStyleType borderLine, ExcelColors borderColor)

Parameters

borderLine LineStyleType
borderColor ExcelColors