TClrColor Class

Represents an ARGB (alpha, red, green, blue) color.

Namespace: CNClrLib.Control.Graphics
TPersistent
  CNClrLib.Control.Graphics.TClrColor
type
 TClrColor = class(TPersistent)
 end;

The TClrColor type exposes the following members.

Show:
 NameDescription
Create(Integer)

Overloaded. Initializes a new instance of the TClrColor class from a 32-bit ARGB value.

Create(Integer,Integer,Integer)

Overloaded. Initializes a new instance of the TClrColor class 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.

Create(Integer,Integer,Integer,Integer)

Overloaded. Initializes a new instance of the TClrColor class from the four ARGB component (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.

Create(String)

Overloaded. Initializes a new instance of the TClrColor class from a string representation of the Html color.

Create(TColor)

Overloaded. Initializes a new instance of the TClrColor class from he specified Delphi TColor value.

Create(_Color)

Overloaded. Initializes a new instance of the TClrColor class from .Net Color value.

Top
Show:
 NameDescription
Alpha

Gets or sets the alpha component value of this Color class.

Blue

Gets or sets the blue component value of this Color class. It is a system-defined color that has an ARGB value of #FF0000FF.

Color

Gets or sets the .Net Color object as interface.

Green

Gets or sets the green component value of this Color class. It is a system-defined color that has an ARGB value of #FF008000.

HexCode

Gets or sets the string representation of the Html color to translate.

Name

Gets or sets the name of this Color.

OnChange

Occurs when a property of the Color class changes.

Red

Gets or sets the red component value of this Color class. It is a system-defined color that has an ARGB value of #FFFF0000.

Top
Show:
 NameDescription
AssignTo(TPersistent)

Copies the contents of another, similar object.

Changed

Represents method Changed.

Empty

Represents a color that is null.

IsDefault

Specifies whether the Color class properties have not changed after it was created and initialized.

SetColor(Integer,Integer,Integer)

Overloaded. Sets the instance of the TClrColor class 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.

SetColor(Integer,Integer,Integer,Integer)

Overloaded. Sets the instance of the TClrColor class with the four ARGB component (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.

SetColor(TColor)

Overloaded. Sets the instance of the TClrColor class with a 32-bit ARGB value.

ToArgb

Gets the 32-bit ARGB value of this Color class.

ToHtml

Translates the specified Color class to an HTML string color representation.

ToKnownColor

Gets the CNClrLib.Control.EnumTypes.TKnownColor value of this Color class.

ToOleColor

Translates the Color class to an OLE color which is equivalent to Delphi TColor value.

ToWin32Color

Translates the Color class to a Windows color which is equivalent to Delphi TColor value.

Top