Click or drag to resize

ChartInterior Class

Represents the interior properties of a chart, such as background color and gradient settings.
Inheritance Hierarchy
System Object
Spire.Xls.Core.Spreadsheet XlsObject
Spire.Xls.Core.Spreadsheet.Charts XlsChartInterior
Spire.Xls.Charts ChartInterior

Namespace: Spire.Xls.Charts
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public class ChartInterior : XlsChartInterior

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
Methods
Name Description
Protected method AddReference
Increase the quantity of reference. User must use this method when new wrapper on object is created or reference on object stored.
(Inherited from XlsObject .)
Protected method CheckDisposed
Checks whether object was disposed and throws exception if it was.
(Inherited from XlsObject .)
Public method Clone(Object)
Creates a deep copy of the XlsChartInterior object with the specified parent.
(Inherited from XlsChartInterior .)
Public method Clone(Object, Boolean)
Clones current object.
(Inherited from XlsChartInterior .)
Public method Dispose
Dispose object and free resources.
(Inherited from XlsObject .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Destructor. Call dispose method of current object.
(Inherited from XlsObject .)
Protected method FindParent(Type)
This method is used to find parent with specific type.
(Inherited from XlsObject .)
Protected method FindParent( Type )
Find parent of object.
(Inherited from XlsObject .)
Protected method FindParent(Type, Boolean)
This method is used to find parent with specific type.
(Inherited from XlsObject .)
Protected method FindParents
Finds parent objects.
(Inherited from XlsObject .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method InitForFrameFormat(Boolean, Boolean, Boolean) Obsolete.
Initializes the frame format with specified parameters.
(Inherited from XlsChartInterior .)
Public method InitForFrameFormat(Boolean, Boolean, Boolean, Boolean) Obsolete.
Initialize interior for frame format.
(Inherited from XlsChartInterior .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method OnDispose
Method which can be overriden by users to take any specific actions when object is disposed.
(Inherited from XlsObject .)
Protected method ReleaseReference
Decrease quantity of Reference. User must call this method when freeing resources.
(Inherited from XlsObject .)
Protected method SetParent
Sets parent of the object.
(Inherited from XlsObject .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Fields
Name Description
Protected field m_bIsDisposed
Flag which indicates if the object was disposed or not.
(Inherited from XlsObject .)
Top
See Also