Coloring Class

Spotfire 14.3 API Reference
Represents a color scheme used to color a visualization. The Coloring class is a list of ColorRules. A Coloring will assign colors to values using first its rules, and if none of them match either the DefaultColor or EmptyColor will be used.
Inheritance Hierarchy

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

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(49, 0)]
public sealed class Coloring : DocumentNode, 
	IEnumerable<ColorRule>, IEnumerable

The Coloring type exposes the following members.

Properties

  NameDescription
Public propertyColorByOther
Gets an object that enables coloring by another expression than the default.
Public propertyContext
Gets the context of this node.
(Inherited from DocumentNode.)
Public propertyCount
Gets the number of ColorRule instances in this Coloring.
Public propertyDefaultColor
Gets or sets the default color. This color is used for values that are non-empty and are not colored by any ColorRule.
Public propertyDisplayName
Gets or sets the display name of this Coloring.
Public propertyEmptyColor
Gets or sets color used for empty values.
Public propertyEvaluatePerColumn
Gets or sets a value indicating whether this Coloring should be evaluated per column.
Public propertyEvaluatePerTrellis
Gets or sets a value indicating whether this Coloring should be evaluated per trellis panel.
Public propertyIsAttached
Gets a value indicating whether this node is attached.
(Inherited from DocumentNode.)
Public propertyItem
Gets the ColorRule at the specified index.
Public propertySetColorOnText
Gets or sets a value indicating whether to set color on cell text or on cell background. This property is used by tabular visualizations.
Public propertyTransactions
Gets a collection of methods for executing transactions on the document.
(Inherited from DocumentNode.)
Top
Methods

  NameDescription
Public methodAddBottomNRule(Int32, Color)
Adds a bottom N rule to the end of the collection.
Public methodAddBottomNRule(ConditionValue, Color)
Adds a bottom N rule to the end of the collection.
Public methodAddCategoricalColorRule
Adds a new categorical color rule with default configuration to the end of the collection.
Public methodAddContinuousColorRule
Adds a new empty continuous rule to the end of the collection.
Public methodAddExpressionRule
Adds a new expression rule to the end of the collection.
Public methodAddRangeRule
Adds a range rule to the end of the collection.
Public methodAddStringColorRule
Adds a string color rule to the end of the collection.
Public methodAddThresholdColorRule
Adds a threshold color rule to the end of the collection.
Public methodAddTopNRule(Int32, Color)
Adds a top N rule to the end of the collection.
Public methodAddTopNRule(ConditionValue, Color)
Adds a top N rule to the end of the collection.
Public methodApply(String)
Applies the template named templateName from the ColoringTemplateCollection to this Coloring.
Public methodApply(Coloring)
Applies the given Coloring as a template. This will clear the current settings and replace them with the settings from the template.
Public methodClear
Clears this collection, removing all ColorRules.
Public methodContains
Determines whether the collection contains a specified rule.
Public methodGetColorForCategory
Gets the categorical color for the given category. The color is taken from the current CategoricalColorRule, or if no such rule is available the DefaultColor of this Coloring is returned.
Public methodGetEnumerator
Returns an enumerator that iterates through the ColorRules in this Coloring.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Determines the index of a specific rule in the collection.
Public methodMove
Moves a rule at the specified index to another location in the collection.
Public methodRemove
Removes the specified rule from the collection.
Public methodSaveAs(Stream)
Saves the Coloring to a stream.
Public methodSaveAs(LibraryItem, String, IEnumerableString)
Saves the coloring as a new item in the library.
Public methodSetColorForCategory
Sets a color for the given category in this Coloring. This will be set in a CategoricalColorRule in this collection. If no such rule is available when this methods is run, it will be added.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Explicit Interface Implementations

  NameDescription
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