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
CustomLineWeight
public float CustomLineWeight { get; set; }
Property Value
KnownColor
Line excel color.
public ExcelColors KnownColor { get; set; }
Property Value
Pattern
Line pattern.
public ChartLinePatternType Pattern { get; set; }
Property Value
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).
//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
UseDefaultFormat
If true - default format; otherwise custom.
public bool UseDefaultFormat { get; set; }
Property Value
UseDefaultLineColor
Indicates if custom line color.
public bool UseDefaultLineColor { get; set; }
Property Value
Weight
Weight of line.
public ChartLineWeightType Weight { get; set; }
Property Value
Methods
Clone(object)
[Obsolete("the method is not implemented")]
public XlsChartBorder Clone(object parent)
Parameters
parent
object