Class
ExcelChartStylePreset
OfficeIMO.Excel
Defines chart style/color presets for Excel charts.
Inheritance
- object
- ExcelChartStylePreset
Usage
Explore 3 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property ExcelChartStylePreset.Default
- Property ExcelDocument.DefaultChartStylePreset
Accepted by parameters 1
- Method ExcelChart.ApplyStylePreset
Constructors
ExcelChartStylePreset 3 overloads
public ExcelChartStylePreset(int styleId = 251, int colorStyleId = 10) #Creates a preset that uses built-in chart style/color resources.
Parameters
- styleId int = 251
- colorStyleId int = 10
public ExcelChartStylePreset(string styleXml, string colorStyleXml, int styleId = 251, int colorStyleId = 10) #Creates a preset from custom chart style and color XML.
Parameters
- styleXml string
- colorStyleXml string
- styleId int = 251
- colorStyleId int = 10
public ExcelChartStylePreset(byte[] styleXmlBytes, byte[] colorStyleXmlBytes, int styleId = 251, int colorStyleId = 10) #Creates a preset from custom chart style and color XML bytes.
Parameters
- styleXmlBytes byte[]
- colorStyleXmlBytes byte[]
- styleId int = 251
- colorStyleId int = 10
Inherited Methods
Properties
public static ExcelChartStylePreset Default { get; } #Default chart preset (style 251, color 10).