Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelChartStylePreset

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

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.

Accepted by parameters 1

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 optional
colorStyleId int = 10 optional
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 required
colorStyleXml string required
styleId int = 251 optional
colorStyleId int = 10 optional
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[] required
colorStyleXmlBytes byte[] required
styleId int = 251 optional
colorStyleId int = 10 optional

Properties

public static ExcelChartStylePreset Default { get; } #

Default chart preset (style 251, color 10).

public int StyleId { get; } #

Gets the chart style id.

public int ColorStyleId { get; } #

Gets the chart color style id.