ColoringTemplateCollectionAddCopy Method (Coloring, String)

TIBCO Spotfire 11.4 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: 51.0.16121.3915 (51.0.16121.3915)
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 slightely 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

Supported in: 11.4, 11.3, 11.2, 11.1, 11.0, 10.10, 7.11
See Also

Reference