Click or drag to resize
Color Structure
Describes a color in terms of alpha, red, green, and blue channels.

Namespace: Telerik.WinControls.Spreadsheet.UI
Assembly: Telerik.WinControls.RadSpreadsheet (in Telerik.WinControls.RadSpreadsheet.dll) Version: 2018.3.1016.40 (2018.3.1016.40)
Syntax
[TypeConverterAttribute(typeof(WpfColorConverter))]
public struct Color : IFormattable

The Color type exposes the following members.

Properties
  NameDescription
Public propertyA
Gets or sets the sRGB alpha channel value of the color.
Public propertyB
Gets or sets the sRGB blue channel value of the color.
Public propertyG
Gets or sets the sRGB green channel value of the color.
Public propertyR
Gets or sets the sRGB red channel value of the color.
Public propertyScA
Gets or sets the ScRGB alpha channel value of the color.
Public propertyScB
Gets or sets the ScRGB blue channel value of the color.
Public propertyScG
Gets or sets the ScRGB green channel value of the color.
Public propertyScR
Gets or sets the ScRGB red channel value of the color.
Top
Methods
  NameDescription
Public methodStatic memberAreClose
Compares two Color structures for fuzzy equality.
Public methodClamp
Sets the ScRGB channels of the color to within the gamut of 0 to 1, if they are outside that range.
Public methodEquals(Object)
Tests whether the specified object is a Color structure and is equivalent to the current color.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Color)
Tests whether the specified Color structure is identical to the current color.
Public methodStatic memberEquals(Color, Color)
Tests whether two Color structures are identical.
Public methodStatic memberFromArgb
Creates a new Color structure by using the specified sRGB alpha channel and color channel values.
Public methodStatic memberFromAValues
Creates a new Color structure by using the specified alpha channel, color channel values, and color profile.
Public methodStatic memberFromRgb
Creates a new Color structure by using the specified sRGB color channel values.
Public methodStatic memberFromScRgb
Creates a new Color structure by using the specified ScRGB alpha channel and color channel values.
Public methodStatic memberFromValues
Creates a new Color structure by using the specified color channel values and color profile.
Public methodStatic memberGetComponentsFromPixel
Public methodGetHashCode
Gets a hash code for the current Color structure.
(Overrides ValueTypeGetHashCode.)
Public methodGetNativeColorValues
Gets the color channel values of the color.
Public methodStatic memberMultiply
Multiplies the alpha, red, blue, and green channels of the specified Color structure by the specified value.
Public methodToString
Creates a string representation of the color using the ScRGB channels.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Creates a string representation of the color by using the ScRGB channels and the specified format provider.
Top
Operators
See Also