Click or drag to resize

XlsChartInterior Properties

The XlsChartInterior type exposes the following members.

Properties
Name Description
Public property BackgroundColor
Background color.
Public property BackgroundColorObject
Background color (RGB).
Public property BackgroundKnownColor
Background excel color.
Public property ForegroundColor
Foreground color.
Public property ForegroundColorObject
Foreground color (RGB).
Public property ForegroundKnownColor
Foreground excel color.
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>
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.
Public property UseDefaultFormat
Indicates whether use default format.
Top
See Also