This documentation is archived and is not being maintained.

Color Methods

The methods of the Color structure are listed here. For a complete list of Color structure members, see the Color Members topic.

Public Methods

public methodEquals

Supported by the .NET Compact Framework.

Overridden. Tests whether the specified object is a Color structure and is equivalent to this Color structure.
public methodstatic (Shared in Visual Basic)FromArgb

Supported by the .NET Compact Framework.

Overloaded. Creates a Color structure from the four 8-bit ARGB component (alpha, red, green, and blue) values.
public methodstatic (Shared in Visual Basic)FromKnownColor Creates a Color structure from the specified pre-defined color.
public methodstatic (Shared in Visual Basic)FromName Creates a Color structure from the specified name of a pre-defined color.
public methodGetBrightness Gets the hue-saturation-brightness (HSB) brightness value for this Color structure.
public methodGetHashCode

Supported by the .NET Compact Framework.

Overridden. Returns a hash code for this Color structure.
public methodGetHue Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this Color structure.
public methodGetSaturation Gets the hue-saturation-brightness (HSB) saturation value for this Color structure.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodToArgb

Supported by the .NET Compact Framework.

Gets the 32-bit ARGB value of this Color structure.
public methodToKnownColor Gets the KnownColor value of this Color structure.
public methodToString

Supported by the .NET Compact Framework.

Overridden. Converts this Color structure to a human-readable string.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Color Structure | System.Drawing Namespace

Show: