Click or drag to resize

NamedColor Structure

Immutable color value with an optional explicit name and parent color set.
Inheritance Hierarchy
SystemObject
  SystemValueType
    Altaxo.DrawingNamedColor

Namespace: Altaxo.Drawing
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
[SerializableAttribute]
[TypeConverterAttribute(typeof(NamedColorTypeConverter))]
public struct NamedColor : IEquatable<NamedColor>, 
	IEquatable<AxoColor>, IImmutable

The NamedColor type exposes the following members.

Constructors
 NameDescription
Public methodNamedColor(AxoColor) Initializes a new instance of the NamedColor struct with an autogenerated name.
Public methodNamedColor(AxoColor, String) Initializes a new instance of the NamedColor struct with an explicit name.
Public methodNamedColor(NamedColor, IColorSet) Initializes a new instance of the NamedColor struct by copying an existing color and assigning a parent set.
Public methodNamedColor(AxoColor, String, IColorSet) Initializes a new instance of the NamedColor struct with an explicit name and parent color set.
Top
Properties
 NameDescription
Public propertyColor Gets the underlying color value.
Public propertyName Gets the color name.
Public propertyParentColorSet Gets the parent color set, if any.
Top
Methods
 NameDescription
Public methodCoerceParentColorSetToNullIfNotMember Tests if this color is still a member of the parent color set, and sets the parent property to null if it is no longer a member of the parent color set.
Public methodEquals(AxoColor)Indicates whether the current object is equal to another object of the same type.
Public methodEquals(NamedColor)Indicates whether the current object is equal to another object of the same type.
Public methodEquals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodEqualsInNameAndColor Determines whether another named color has the same color value and name.
Public methodStatic memberFromArgb(Byte, Byte, Byte, Byte) Creates a named color from ARGB components.
Public methodStatic memberFromArgb(Byte, Byte, Byte, Byte, String) Creates a named color from ARGB components and an explicit name.
Public methodStatic memberFromScRgb(Single, Single, Single, Single) Creates a named color from ScRGB components.
Public methodStatic memberFromScRgb(Single, Single, Single, Single, String) Creates a named color from ScRGB components and an explicit name.
Public methodStatic memberGetColorName Gets a display name for the specified color value.
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodNewWithAlphaValue Returns a copy of this color with a different alpha value.
Public methodNewWithOpacityInPercent Returns a copy of this color with a different opacity in percent.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(NamedColor, NamedColor) Determines whether two NamedColor values are equal.
Public operatorStatic member(NamedColor to AxoColor) Converts a NamedColor to its underlying AxoColor value.
Public operatorStatic member(NamedColor to Color) Converts a NamedColor to Color.
Public operatorStatic memberInequality(NamedColor, NamedColor) Determines whether two NamedColor values are not equal.
Top
Extension Methods
 NameDescription
Public Extension MethodGetNextPlotColor Gets a color that is located at the next index after the specified color.
(Defined by ColorSetExtensions)
Public Extension MethodGetNextPlotColor Gets a color that is the specified number of steps away from the given color.
(Defined by ColorSetExtensions)
Public Extension MethodGetNextPlotColor Gets a color that is the specified number of steps away from the given color.
(Defined by ColorSetExtensions)
Top
See Also