ColoringTemplateCollection AddCopy Method (Coloring, String) TIBCO Spotfire 6.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: 13.19.7018.3940 (13.19.7018.3940)
Syntax

public Coloring AddCopy(
	Coloring template,
	string preferredName
)

Parameters

template
Type: Spotfire.Dxp.Application.Visuals.ConditionalColoring Coloring
Template to copy.
preferredName
Type: System String
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 slightely modified.

Return Value

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

ExceptionCondition
System ArgumentNullException Thrown if template is null.
See Also