Class ColorProvider
Provides different sets of colors
Inheritance
System.Object
ColorProvider
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class ColorProvider
Constructors
ColorProvider()
Declaration
public ColorProvider()
Properties
BasicColors
Gets the set of basic colors
Declaration
public static Color[] BasicColors { get; }
Property Value
System.Drawing.Color[]
|
NamedColors
Gets the set of named colors
Declaration
public static Color[] NamedColors { get; }
Property Value
System.Drawing.Color[]
|
SystemColors
Gets the set of system colors
Declaration
public static Color[] SystemColors { get; }
Property Value
System.Drawing.Color[]
|
Methods
ColorToHex(Color)
Gets the hex value for the color
Declaration
public static string ColorToHex(Color color)
Parameters
System.Drawing.Color
color
|
Returns
System.String
|
HexToColor(String)
Gets the color correspoding to a hex value
Declaration
public static Color HexToColor(string color)
Parameters
System.String
color
|
Returns
System.Drawing.Color
|
Round(Double)
Gets the rounded value
Declaration
public static int Round(double val)
Parameters
System.Double
val
|
Returns
System.Int32
|