Class XlsChartInterior
- Namespace
- Spire.Xls.Core.Spreadsheet.Charts
- Assembly
- Spire.XLS.dll
public class XlsChartInterior : XlsObject, IExcelApplication, IDisposable, IChartInterior, ICloneParent
- Inheritance
-
XlsChartInterior
- Implements
- Derived
- Inherited Members
Properties
BackgroundColor
Background color.
public Color BackgroundColor { get; set; }
Property Value
BackgroundColorObject
Background color (RGB).
public OColor BackgroundColorObject { get; }
Property Value
BackgroundKnownColor
Background excel color.
public ExcelColors BackgroundKnownColor { get; set; }
Property Value
ForegroundColor
Foreground color.
public Color ForegroundColor { get; set; }
Property Value
ForegroundColorObject
Foreground color (RGB).
public OColor ForegroundColorObject { get; }
Property Value
ForegroundKnownColor
Foreground excel color.
public ExcelColors ForegroundKnownColor { get; set; }
Property Value
Pattern
Area pattern.
//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 chart type
chart.ChartType = ExcelChartType.Cone3DClustered;
//Set the pattern of the chart
chart.ChartArea.Interior.Pattern = ExcelPatternType.Angle;
//Save to file
workbook.SaveToFile("Chart.xlsx");
public ExcelPatternType Pattern { get; set; }
Property Value
SwapColorsOnNegative
Foreground and background are swapped when the data value is negative.
public bool SwapColorsOnNegative { get; set; }
Property Value
UseDefaultFormat
Indicates whether use default format.
public bool UseDefaultFormat { get; set; }
Property Value
Methods
Clone(object)
public XlsChartInterior Clone(object parent)
Parameters
parent
object
Returns
Clone(object, bool)
public XlsChartInterior Clone(object parent, bool isFrameClone)
Parameters
Returns
InitForFrameFormat(bool, bool, bool)
[Obsolete("the method is not implemented")]
public void InitForFrameFormat(bool bIsAutoSize, bool bIs3DChart, bool bIsInteriorGray)
Parameters
InitForFrameFormat(bool, bool, bool, bool)
[Obsolete("the method is not implemented")]
public void InitForFrameFormat(bool bIsAutoSize, bool bIs3DChart, bool bIsInteriorGray, bool bIsGray50)