ChartPlotArea Class |
Namespace: Spire.Xls.Charts
The ChartPlotArea type exposes the following members.
Name | Description | |
---|---|---|
![]() |
BackGroundColor |
Represents foreground known color.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
BackGroundColorObject |
Represents background color.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
BackGroundKnownColor |
Represents the known color used for the background in Excel.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
Border |
Represents chart border. Read only.
|
![]() ![]() |
Fill |
Represents XlsFill gradient format. Read only.
(Inherited from
XlsChartFrameFormat
.)
![]()
The following code illustrates the use of Fill 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.Column3DClustered;</para><para>//Gets fill options for the chart element</para><para>IShapeFill fillChart = chart.ChartArea.Fill;</para><para>fillChart.FillType = ShapeFillType.Gradient;</para><para>fillChart.BackColor = Color.FromArgb(205, 217, 234);</para><para>fillChart.ForeColor = Color.White;</para><para>//Save to file</para><para>workbook.SaveToFile("Chart.xlsx");</para>
|
![]() |
ForeGroundColor |
Represents foreground known color.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
ForeGroundColorObject |
Represents foreground color.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
ForeGroundKnownColor |
Represents foreground known color.
(Inherited from
XlsChartFrameFormat
.)
|
![]() ![]() |
Format3D |
Gets the chart3 D properties.
(Inherited from
XlsChartFrameFormat
.)
![]()
The following code illustrates the use of Shadow 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.Column3DClustered;</para><para>//Gets shadow formatting properties for the chart element</para><para>ChartShadow shadowChart = chart.ChartArea.Shadow;</para><para>shadowChart.ShadowPrespectiveType = XLSXChartPrespectiveType.Below;</para><para>shadowChart.Color = Color.Aqua;</para><para>shadowChart.Blur = 22;</para><para>//Save to file</para><para>workbook.SaveToFile("Chart.xlsx");</para>
|
![]() |
HasFormat3D |
This property Indicates whether the Shadow object has been created(which includes the 3D properties)
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
HasInterior |
Indicates whether interior object was created. Read-only.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
HasLineProperties |
Indicates whether border formatting object was created. Read-only.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
HasManualLayout |
Obsolete.
Indicates whether border formatting object was created. Read-only.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
HasShadow |
This property indicates whether the shadow object has been created
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
Height |
Y-size. 1/4000 of chart plot. IsHMode Shall set to True
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
InnerLayoutTarget |
Obsolete.
Gets or sets the inner layout target. Note: This property is obsolete and the get and set operations are not implemented.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
Interior |
Represents frame interior. Read only
|
![]() |
IsAutomaticFormat |
Represents if use automatic format.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
IsAutoPosition |
Calculates position automatically.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
IsAutoSize |
Calculates size automatically.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
IsBorderCornersRound |
Gets or sets if border corners is round.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
IsHMode |
false value Specifies that the Height shall be interpreted
as the Bottom of the chart element..
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
IsWMode |
false value Specifies that the Width shall be interpreted
as the Right of the chart element..
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
IsXMode |
true value Specifies that the X shall be interpreted
as the Left of the chart element..
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
IsYMode |
true value Specifies that the Y shall be interpreted
as the Top of the chart element..
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
LineProperties |
Gets chart border. Read-only.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
Parent |
Reference to Parent object. Read-only.
(Inherited from
XlsObject
.)
|
![]() |
Pattern |
Represents pattern.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
RectangleStyle |
Obsolete.
Rectangle style.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
ReferenceCount |
Get quantity of instance references.
(Inherited from
XlsObject
.)
|
![]() ![]() |
Shadow |
Gets the shadow properties.
(Inherited from
XlsChartFrameFormat
.)
![]()
The following code illustrates the use of Shadow 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.Column3DClustered;</para><para>//Gets shadow formatting properties for the chart element</para><para>ChartShadow shadowChart = chart.ChartArea.Shadow;</para><para>shadowChart.ShadowPrespectiveType = XLSXChartPrespectiveType.Below;</para><para>shadowChart.Color = Color.Aqua;</para><para>shadowChart.Blur = 22;</para><para>//Save to file</para><para>workbook.SaveToFile("Chart.xlsx");</para>
|
![]() |
Visible |
Represents visiblity.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
Width |
X-size. 1/4000 of chart plot. IsWMode Shall set to True
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
Workbook |
Represents a new workbook instance.
|
![]() |
X |
X-position of upper-left corner. 1/4000 of chart plot.
IsXMode Shall set to True
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
Y |
Y-position of upper-left corner. 1/4000 of chart plot.
IsYMode Shall set to True
(Inherited from
XlsChartFrameFormat
.)
|
Name | Description | |
---|---|---|
![]() |
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
.)
|
![]() |
CheckDisposed |
Checks whether object was disposed and throws exception if it was.
(Inherited from
XlsObject
.)
|
![]() |
Clear |
Obsolete.
Clears objects.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
Clone |
Obsolete.
Clone current Record.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
Dispose |
Dispose object and free resources.
(Inherited from
XlsObject
.)
|
![]() |
Equals |
Determines whether the specified object is equal to the current object.
(Inherited from
Object
.)
|
![]() |
Finalize |
Destructor. Call dispose method of current object.
(Inherited from
XlsObject
.)
|
![]() |
FindParent(Type) |
This method is used to find parent with specific type.
(Inherited from
XlsObject
.)
|
![]() |
FindParent( Type ) |
Find parent of object.
(Inherited from
XlsObject
.)
|
![]() |
FindParent(Type, Boolean) |
This method is used to find parent with specific type.
(Inherited from
XlsObject
.)
|
![]() |
FindParents |
Finds parent objects.
(Inherited from
XlsObject
.)
|
![]() |
GetHashCode |
Serves as the default hash function.
(Inherited from
Object
.)
|
![]() |
GetType |
Gets the
Type
of the current instance.
(Inherited from
Object
.)
|
![]() |
MemberwiseClone |
Creates a shallow copy of the current
Object
.
(Inherited from
Object
.)
|
![]() |
OnDispose |
Method which can be overriden by users to take any specific actions when
object is disposed.
(Inherited from
XlsObject
.)
|
![]() |
ReleaseReference |
Decrease quantity of Reference. User must call this method
when freeing resources.
(Inherited from
XlsObject
.)
|
![]() |
SetDefaultValues |
Obsolete.
Set variable to the default state.
(Inherited from
XlsChartFrameFormat
.)
|
![]() |
SetParent |
Sets parent of the object.
(Inherited from
XlsObject
.)
|
![]() |
ToString |
Returns a string that represents the current object.
(Inherited from
Object
.)
|
Name | Description | |
---|---|---|
![]() |
m_bIsDisposed |
Flag which indicates if the object was disposed or not.
(Inherited from
XlsObject
.)
|