public class HueCollection : ICollection<float>, IEnumerable<float>, IEnumerable, IEquatable<HueCollection>, IFormattable
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.
HueCollection |
Creates an empty HueCollection.
| |
HueCollection(IEnumerableSingle) |
Creates a new HueCollection containing the specified hue
values specified in turns.
| |
HueCollection(Single) |
Creates a new HueCollection containing the specified hue
values specified in turns.
|
Count |
Gets the number of hues in this collection.
| |
IsReadOnly |
Gets a value indicating whether this is a read-only collection.
| |
Item |
Gets the hue (in turns, range [0, 1)) at the specified index in this collection.
|
Add(Single) |
Adds a hue to the collection.
| |
Add(Single, HueUnit) |
Adds a hue to the collection.
| |
Clear |
Empties this collection.
| |
Contains(Single) |
Checks whether a specified hue exists in this collection.
| |
Contains(Single, HueUnit) |
Checks whether a specified hue exists in this collection.
| |
CopyTo |
Copies the hues in this collection to the specified array.
| |
Equals(Object) |
Checks if this style is identical to another object.
| |
Equals(HueCollection) |
Checks whether this HueCollection contains the same
hues and the same order as other.
| |
GetEnumerator |
Gets an enumerator for enumerating over the hues (in turns, range [0, 1)) in this collection.
| |
GetHashCode |
Gets a hash code for this HueCollection.
| |
Remove(Single) |
Removes the specified hue from this collection.
| |
Remove(Single, HueUnit) |
Removes the specified hue from this collection.
| |
ToString |
Creates a string representation of the hues in this collection.
The result can be parsed using Parse(String).
| |
ToString(IFormatProvider) |
Creates a culture-specific string representation of the hues in this collection.
The result can be parsed using Parse(String, IFormatProvider).
|