The Color class represents an ARGB color value.

System.Object
  System.ValueType
    Docentric.Documents.ObjectModel.Color

Namespace: Docentric.Documents.ObjectModel
Assembly: Docentric.Documents.ObjectModel (in Docentric.Documents.ObjectModel.dll)
public struct Color

The Color type exposes the following members.

Name Description
Public member A Gets the alpha (transparency) part of the RGB Color. The values is in the range between 0 to 255.
Public member B Gets the blue part of the Color. The values is in the range between 0 to 255.
Public member G Gets the green part of the Color. The values is in the range between 0 to 255.
Public member IsEmpty Specifies whether this Color structure is uninitialized.
Public member R Gets the red part of the Color. The values is in the range between 0 to 255.
Name Description
Public fieldStatic member Empty Represents a color that is null.
Name Description
Public method Equals(Object) Determines whether the specified Object is equal to this Color instance. (Overrides Color.Equals)
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType)
Public methodStatic member FromArgb(Byte, Byte, Byte) Creates a Color structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits.
Public methodStatic member FromArgb(Byte, Byte, Byte, Byte) Creates a Color structure from the four ARGB component (alpha, red, green, and blue) values.
Public methodStatic member FromArgb(Byte, Color) Creates a Color structure from the base color and the alpha value.
Public methodStatic member FromHex Creates a Color structure from the specified hex color string.
Public method GetHashCode() Gets the ARGB value that this Color instance represents. (Overrides Color.GetHashCode)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType)
Public method GetType Gets the Type of the current instance. (Inherited from Object)
Public method ToArgb Returns the ARGB value for this color structure.
Public method ToString() Writes the Color object in its hexadecimal value. (Overrides Color.ToString)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType)
Public methodStatic member TryGetFromName