Click or drag to resize

ChartInterior Properties

The ChartInterior type exposes the following members.

Properties
Name Description
Public property BackgroundColor
Background color.
(Inherited from XlsChartInterior .)
Public property BackgroundColorObject
Background color (RGB).
(Inherited from XlsChartInterior .)
Public property BackgroundKnownColor
Background excel color.
(Inherited from XlsChartInterior .)
Public property ForegroundColor
Foreground color.
(Inherited from XlsChartInterior .)
Public property ForegroundColorObject
Foreground color (RGB).
(Inherited from XlsChartInterior .)
Public property ForegroundKnownColor
Foreground excel color.
(Inherited from XlsChartInterior .)
Public property Parent
Reference to Parent object. Read-only.
(Inherited from XlsObject .)
Public property Code example Pattern
Area pattern.
Examples
The following code illustrates the use of Pattern property:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>workbook.LoadFromFile("Sample.xlsx");</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Create chart and set range</para><para>IChart chart = worksheet.Charts.Add();</para><para>chart.DataRange = worksheet.Range["B2:C6"];</para><para>//Set chart type</para><para>chart.ChartType = ExcelChartType.Cone3DClustered;</para><para>//Set the pattern of the chart</para><para>chart.ChartArea.Interior.Pattern = ExcelPatternType.Angle;</para><para>//Save to file</para><para>workbook.SaveToFile("Chart.xlsx");</para>
(Inherited from XlsChartInterior .)
Protected property ReferenceCount
Get quantity of instance references.
(Inherited from XlsObject .)
Public property SwapColorsOnNegative
Foreground and background are swapped when the data value is negative.
(Inherited from XlsChartInterior .)
Public property UseDefaultFormat
Indicates whether use default format.
(Inherited from XlsChartInterior .)
Top
See Also