IChartBorder module

class IChartBorder.IChartBorder

Bases: ABC

<summary>

Represents chart border. Provides Border options for Chart Area and Plot Area.

</summary>

abstract property Color: Color
<summary>
Color of line.

<example>The following code illustrates the use of Color property: <code>

//Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile(“Sample.xlsx”); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range[“B2:C6”]; //Set line color for chart area border chart.ChartArea.Border.Color = Color.DarkOrange; //Save to file workbook.SaveToFile(“Chart.xlsx”); </code> </example>

</summary>

abstract property KnownColor: ExcelColors
<summary>

Line color index.

</summary>

abstract property Pattern: ChartLinePatternType
<summary>
Line pattern.

<example>The following code illustrates the use of LinePattern property: <code>

//Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile(“Sample.xlsx”); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range[“B2:C6”]; //Set line pattern for plot area border chart.ChartArea.Border.Pattern = ChartLinePatternType.DashDotDot; //Save to file workbook.SaveToFile(“Chart.xlsx”); </code> </example>

</summary>

abstract property Transparency: float
<summary>
Returns the transparency level of the specified Solid color shaded XlsFill as a floating-point

value from 0.0 (Clear) through 1.0(Opaque). <example>The following code illustrates the use of Weight property: <code>

//Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile(“Sample.xlsx”); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range[“B2:C6”]; //Set the transparency level of the solid color chart.ChartArea.Border.Transparency =0.85; chart.ChartArea.Border.Color = Color.Red; //Save to file workbook.SaveToFile(“Chart.xlsx”); </code> </example>

</summary>

abstract property UseDefaultFormat: bool
<summary>

If true - default format; otherwise custom.

</summary>

abstract property UseDefaultLineColor: bool
<summary>

Custom format for line color.

</summary>

abstract property Weight: ChartLineWeightType
<summary>
Weight of line.

<example>The following code illustrates the use of Weight property: <code>

//Create worksheet Workbook workbook = new Workbook(); workbook.LoadFromFile(“Sample.xlsx”); Worksheet worksheet = workbook.Worksheets[0]; //Create chart and set range IChart chart = worksheet.Charts.Add(); chart.DataRange = worksheet.Range[“B2:C6”]; //Set line weight for plot area border chart.ChartArea.Border.Weight = ChartLineWeightType.Wide; //Save to file workbook.SaveToFile(“Chart.xlsx”); </code> </example>

</summary>