HueCollection Class

A collection of hue values.
public class HueCollection : ICollection<float>, 
	IEnumerable<float>, IEnumerable, IEquatable<HueCollection>, 
	IFormattable
View source
Namespace
Jdenticon.Rendering
Package
PackageJdenticon-net
Inheritance
SystemObject Jdenticon.RenderingHueCollection

Remarks

The collection internally operates on hues in turns in the range [0, 1). It will accept insertion and queries in multiple units, but they will always be converted to turns, and then normalized to the first turn in the range [0, 1).

Queries will always return the internal hue specified in turns.

Constructors

Public methodHueCollection
Creates an empty HueCollection.
Public methodHueCollection(IEnumerableSingle)
Creates a new HueCollection containing the specified hue values specified in turns.
Public methodHueCollection(Single)
Creates a new HueCollection containing the specified hue values specified in turns.

Properties

Public propertyCount
Gets the number of hues in this collection.
Public propertyIsReadOnly
Gets a value indicating whether this is a read-only collection.
Public propertyItem
Gets the hue (in turns, range [0, 1)) at the specified index in this collection.

Methods

Public methodAdd(Single)
Adds a hue to the collection.
Public methodAdd(Single, HueUnit)
Adds a hue to the collection.
Public methodClear
Empties this collection.
Public methodContains(Single)
Checks whether a specified hue exists in this collection.
Public methodContains(Single, HueUnit)
Checks whether a specified hue exists in this collection.
Public methodCopyTo
Copies the hues in this collection to the specified array.
Public methodEquals(Object)
Checks if this style is identical to another object.
Public methodEquals(HueCollection)
Checks whether this HueCollection contains the same hues and the same order as other.
Public methodGetEnumerator
Gets an enumerator for enumerating over the hues (in turns, range [0, 1)) in this collection.
Public methodGetHashCode
Gets a hash code for this HueCollection.
Public methodRemove(Single)
Removes the specified hue from this collection.
Public methodRemove(Single, HueUnit)
Removes the specified hue from this collection.
Public methodToString
Creates a string representation of the hues in this collection. The result can be parsed using Parse(String).
Public methodToString(IFormatProvider)
Creates a culture-specific string representation of the hues in this collection. The result can be parsed using Parse(String, IFormatProvider).

See Also

Reference