ColoringCollection Class

Spotfire 14.3 API Reference
Manages a set of Coloring instances, and mappings between CategoryKey values and Coloring instances. CrossTablePlot, TablePlot and HeatMap uses a ColoringCollection to assign colors.
Inheritance Hierarchy

SystemObject
  Node
    Spotfire.Dxp.Framework.DocumentModelDocumentNode
      Spotfire.Dxp.Application.Visuals.ConditionalColoringColoringCollection

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

C#
[SerializableAttribute]
[PersistenceVersionAttribute(9, 0)]
public sealed class ColoringCollection : DocumentNode, 
	IEnumerable<Coloring>, IEnumerable

The ColoringCollection type exposes the following members.

Properties

  NameDescription
Public propertyContext
Gets the context of this node.
(Inherited from DocumentNode.)
Public propertyCount
Gets the number of items in the collection.
Public propertyDefaultBooleanReference
Gets or sets the default coloring for Boolean datatypes, the fallback if no mapping exists for an inquiry. When set, the given coloring must be owned by this ColoringCollection.
Public propertyDefaultDateReference
Gets or sets the default coloring for date datatypes, the fallback if no mapping exists for an inquiry. When set, the given coloring must be owned by this ColoringCollection.
Public propertyDefaultDateTimeReference
Gets or sets the default coloring for date time datatypes, the fallback if no mapping exists for an inquiry. When set, the given coloring must be owned by this ColoringCollection.
Public propertyDefaultNumericReference
Gets or sets the default coloring for numeric datatypes, the fallback if no mapping exists for an inquiry. When set, the given coloring must be owned by this ColoringCollection.
Public propertyDefaultStringReference
Gets or sets the default coloring for string datatypes, the fallback if no mapping exists for an inquiry. When set, the given coloring must be owned by this ColoringCollection.
Public propertyDefaultTimeReference
Gets or sets the default coloring for time datatypes, the fallback if no mapping exists for an inquiry. When set, the given coloring must be owned by this ColoringCollection.
Public propertyDefaultTimeSpanReference
Gets or sets the default coloring for TimeSpan datatypes, the fallback if no mapping exists for an inquiry. When set, the given coloring must be owned by this ColoringCollection.
Public propertyIsAttached
Gets a value indicating whether this node is attached.
(Inherited from DocumentNode.)
Public propertyItem
Gets the Coloring at the given index.
Public propertyLegendItem
Gets the legend item used to display information about this ColoringCollection.
Public propertyTransactions
Gets a collection of methods for executing transactions on the document.
(Inherited from DocumentNode.)
Top
Methods

  NameDescription
Public methodAddCopy
Adds a copy of the given color rule collection with a new display name.
Public methodAddMapping
Adds a mapping between the specified Coloring instance and the specified CategoryKey value. This means that the specified category will be colored by the specified coloring.
Public methodAddNew
Adds a new Coloring instance to this ColoringCollection.
Public methodAddNew(String)
Adds a new Coloring instance to this ColoringCollection.
Public methodClear
Clears all Coloring instances and mappings in this ColoringCollection.
Public methodContains
Determines whether the given coloring exists in this collection.
Public methodGetCategories
Gets all CategoryKey values that are currently mapped to any Coloring managed by this ColoringCollection.
Public methodGetCategoriesForColoring
Gets the CategoryKey values that are mapped to the specified Coloring, otherwise an empty list.
Public methodGetColoringForCategory
Gets the Coloring instance that is mapped to the specified CategoryKey value, otherwise the default coloring for the category's data type. If no type can be established for the given category, or if no default has been set, null is returned.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemove
Removes the specified Coloring instance and any mappings to it.
Public methodRemoveAt
Removes the item at the given index.
Public methodRemoveMapping
Removes the mapping between the specified Coloring instance and the specified CategoryKey value.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implementationPrivate methodIEnumerableColoringGetEnumerator
Returns an enumerator that iterates through this collection.
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through this collection.
Explicit interface implementationPrivate methodINodeContextGetAncestorT (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodINodeContextGetServiceT (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodINodeContextIsDescendantOf (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsBeginAggregatedTransaction (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsExecuteInvisibleTransaction (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsExecuteInvisibleTransaction2
Implements ExecuteInvisibleTransaction(Executor) for the Action Mods API.
(Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsExecuteStickyTransaction (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsExecuteStickyTransaction2
Implements ExecuteStickyTransaction(Guid, Executor) for the Action Mods API.
(Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsExecuteTransaction (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsExecuteTransaction2
Implements ExecuteTransaction(Executor) for the Action Mods API.
(Inherited from DocumentNode.)
Top
Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference