ColoringTemplateCollectionAddCopy Method (Coloring, String)

Spotfire 15.0 API Reference
Adds a copy of the given Coloring with a new display name.

Namespace:  Spotfire.Dxp.Application.Visuals.ConditionalColoring
Assembly:  Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 71.0.22122.5390 (71.0.22122.5390)
Syntax

C#
public Coloring AddCopy(
	Coloring template,
	string preferredName
)

Parameters

template
Type: Spotfire.Dxp.Application.Visuals.ConditionalColoringColoring
Template to copy.
preferredName
Type: SystemString
The preferred display name that the copy should have. If this name is not unique withing the collection, the added Coloring will have a name that is slightly modified.

Return Value

Type: Coloring
A copy of the provided template that has been inserted to this collection.
Exceptions

ExceptionCondition
ArgumentNullException Thrown if template is null.
Version Information


See Also

Reference