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
)
Public Function Add (
format As XlsChartFormat,
bCanReplace As Boolean
) As XlsChartFormat
public:
XlsChartFormat^ Add(
XlsChartFormat^ format,
bool bCanReplace
)
member Add :
format : XlsChartFormat *
bCanReplace : bool -> XlsChartFormat
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