Click or drag to resize

ColorSet Class

[Missing <summary> documentation for "T:Altaxo.Drawing.ColorManagement.ColorSet"]

Inheritance Hierarchy
SystemObject
  Altaxo.Drawing.ColorManagementColorSet
    Altaxo.DrawingNamedColors

Namespace: Altaxo.Drawing.ColorManagement
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class ColorSet : IColorSet, IStyleList<NamedColor>, 
	IReadOnlyList<NamedColor>, IReadOnlyCollection<NamedColor>, IEnumerable<NamedColor>, 
	IEnumerable, IImmutable

The ColorSet type exposes the following members.

Constructors
 NameDescription
Public methodColorSet Creates a new collection of plot colors with a given name. The initial items will be copied from another plot color collection.
Top
Properties
 NameDescription
Public propertyCount 
Public propertyIsReadOnly 
Public propertyItem 
Public propertyName Gets the name of this collection of plot colors (without prefix like 'Application', 'Project' etc.). Note that the name can not be changed. To change the name, create a new plot color collection and copy the items to it.
Top
Methods
 NameDescription
Public methodAdd 
Public methodClear 
Public methodContains 
Public methodCopyTo 
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetEnumerator 
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetSerializationRegistrationKey Gets a key that is used during serialization to decide whether or not a color set was already serialized. Use the returned key to retrieve a string from the properties of the serialization info. If the returned property string is null, then the color set needs to be serialized; otherwise, it was already serialized before.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIndexOf(AxoColor) Get the index of the given color in the ColorSet.
Public methodIndexOf(NamedColor) Get the index of the given color in the ColorSet.
Public methodInsert 
Public methodIsStructuralEquivalentTo 
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRemove 
Public methodRemoveAt 
Public methodToArray Copies all color items to an array.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetValue(AxoColor, NamedColor) Tries to find a color with a given color value.
Public methodTryGetValue(String, NamedColor) Tries to find a color with a given name.
Public methodTryGetValue(AxoColor, String, NamedColor) Tries to find a color with the color and the name of the given named color.
Public methodWithName 
Top
Fields
Extension Methods
 NameDescription
Public Extension MethodElementsAtNamedColor
(Defined by VectorMath)
Public Extension MethodElementsWhereNamedColor
(Defined by VectorMath)
Public Extension MethodElementsWhereNamedColor
(Defined by VectorMath)
Public Extension MethodFirstOrNamedColor Returns the first value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions)
Public Extension MethodFlattenFromRootToLeavesNamedColor Converts a recursive data structure into a flat list. The root element is enumerated before its corresponding child element(s).
(Defined by EnumerableExtensions)
Public Extension MethodForEachDoNamedColor Executes an action for each element of the sequence.
(Defined by EnumerableExtensions)
Public Extension MethodGetNextPlotColorIndex Gets the index in the plot color set that is the specified number of steps away from the given color index.
(Defined by ColorSetExtensions)
Public Extension MethodGetPossibleStepsToMoveTowardsHigherIndicesNamedColor Return the number of steps that selected items can be moved towards higher indices. The selected item with the highest index determines that value.
(Defined by ListExtensions)
Public Extension MethodGetPossibleStepsToMoveTowardsLowerIndicesNamedColor Return the number of steps that selected items can be moved towards lower indices. The selected item with the lowest index determines that value.
(Defined by ListExtensions)
Public Extension MethodHasSingleElementNamedColor Determines whether the specified enumeration has exactly one element.
(Defined by EnumerableExtensions)
Public Extension MethodIndexOfNamedColor Gets the index of an item in a enumeration or list.
(Defined by ListExtensions)
Public Extension MethodIndexOfFirstNamedColor Gets the index the of first item in list that fulfills the predicate predicate
(Defined by ListExtensions)
Public Extension MethodIndexOfFirstNamedColor Gets the index the of first item in list that fulfills the predicate predicate
(Defined by ListExtensions)
Public Extension MethodIndexOfMaxNamedColorReturn the index of the element with the maximum value in an enumerable. If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned.
(Defined by EnumerableExtensions)
Public Extension MethodIndexOfMinNamedColorReturn the index of the element with the minimum value in an enumerable. If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32AndValuesWhereNamedColor Returns tuples of index and element of all elements in an enumeration which fullfill a given condition, given by the element's value.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32AndValuesWhereNamedColor Returns tuples of index and element of all elements in an enumeration which fullfill a given condition, given by the element's value and its index.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32WhereNamedColor Returns the indices of the elements which fullfill a given condition, given by the element's value.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32WhereNamedColor Returns the indices of the elements which fullfill a given condition, given by the element's value and its index.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesOfMinMaxNamedColorReturn the index of the element with the minimum value in an enumerable. If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned.
(Defined by EnumerableExtensions)
Public Extension MethodIsEmptyNamedColor Determines whether the specified enumeration is empty.
(Defined by EnumerableExtensions)
Public Extension MethodJoinConditionalNamedColor, T2 Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions)
Public Extension MethodJoinConditionalNamedColor, T2, TResult Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions)
Public Extension MethodLastOrNamedColor Returns the last value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions)
Public Extension MethodMaxElementNamedColor, M Gets the element of a IEnumerabe that evaluates by means of a conversion function to the maximal value. This is different from Select(x => conversion(x)).Max() insofar as it not returns the maximum value, but the original element x which converts to the maximum value.
(Defined by EnumerableExtensions)
Public Extension MethodMaxOrDefaultNamedColor, M Evaluates the maximum of a enumeration of elements, or returns a default value if the series is empty.
(Defined by EnumerableExtensions)
Public Extension MethodSelectCombinationNamedColor Select a random combination, without repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics)
Public Extension MethodSelectCombinationWithRepetitionNamedColor Select a random combination, with repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics)
Public Extension MethodSelectPermutationNamedColor Select a random permutation from a data sequence by returning the provided data in random order. Implemented using Fisher-Yates Shuffling.
(Defined by Combinatorics)
Public Extension MethodSelectVariationNamedColor Select a random variation, without repetition, from a data sequence by randomly selecting k elements in random order. Implemented using partial Fisher-Yates Shuffling.
(Defined by Combinatorics)
Public Extension MethodSelectVariationWithRepetitionNamedColor Select a random variation, with repetition, from a data sequence by randomly selecting k elements in random order.
(Defined by Combinatorics)
Public Extension MethodTakeAllButLastNamedColor Takes all elements of the enumeration except the last element.
(Defined by EnumerableExtensions)
Public Extension MethodThisOrEmptyNamedColor Returns either the provided enumeration, or if it is null, an empty enumeration.
(Defined by EnumerableExtensions)
Public Extension MethodTryGetFirstAndLastNamedColor Returns true and the first and last value of the enumeration, or, if the enumeration is empty, returns false.
(Defined by EnumerableExtensions)
Public Extension MethodTryGetSingleElementNamedColor Try to get the one and only element of the collection.
(Defined by EnumerableExtensions)
Top
See Also