Click or drag to resize

XlsChartFormatCollection Add Method (XlsChartFormat, Boolean)

Adds or replaces a chart format in the collection based on the specified condition.

Namespace: Spire.Xls.Core.Spreadsheet.Charts
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public XlsChartFormat Add(
	XlsChartFormat format,
	bool bCanReplace
)

Parameters

format
Type: Spire.Xls.Core.Spreadsheet.Charts XlsChartFormat
The chart format to add or replace.
bCanReplace
Type: System Boolean
Indicates whether the existing format can be replaced if it already exists.

Return Value

Type: XlsChartFormat
The added or replaced XlsChartFormat.
See Also