Table of Contents

Class XlsChartBorder

Namespace
Spire.Xls.Core.Spreadsheet.Charts
Assembly
Spire.XLS.dll
public class XlsChartBorder : XlsObject, IExcelApplication, IDisposable, IChartBorder, ICloneParent
Inheritance
XlsChartBorder
Implements
Derived
Inherited Members

Properties

Color

Color of line.

public Color Color { get; set; }

Property Value

Color

CustomLineWeight

public float CustomLineWeight { get; set; }

Property Value

float

KnownColor

Line excel color.

public ExcelColors KnownColor { get; set; }

Property Value

ExcelColors

Pattern

Line pattern.

public ChartLinePatternType Pattern { get; set; }

Property Value

ChartLinePatternType

Transparency

Returns the transparency level of the specified Solid color shaded XlsFill as a floating-point value from 0.0 (Clear) through 1.0(Opaque). The following code illustrates the use of Weight property:

//Create worksheetWorkbook workbook = new Workbook();workbook.LoadFromFile("Sample.xlsx");Worksheet worksheet = workbook.Worksheets[0];//Create chart and set rangeIChart chart = worksheet.Charts.Add();chart.DataRange = worksheet.Range["B2:C6"];//Set the transparency level of the solid colorchart.ChartArea.Border.Transparency =0.85;chart.ChartArea.Border.Color = Color.Red;//Save to fileworkbook.SaveToFile("Chart.xlsx");
public double Transparency { get; set; }

Property Value

double

UseDefaultFormat

If true - default format; otherwise custom.

public bool UseDefaultFormat { get; set; }

Property Value

bool

UseDefaultLineColor

Indicates if custom line color.

public bool UseDefaultLineColor { get; set; }

Property Value

bool

Weight

Weight of line.

public ChartLineWeightType Weight { get; set; }

Property Value

ChartLineWeightType

Methods

Clone(object)

[Obsolete("the method is not implemented")]
public XlsChartBorder Clone(object parent)

Parameters

parent object

Returns

XlsChartBorder