Export (0) Print
Expand All
0 out of 3 rated this helpful - Rate this topic

Color Members

Color overview

Public Fields

public fieldstatic (Shared in Visual Basic)Empty

Supported by the .NET Compact Framework.

Represents a null color.

Public Properties

public propertyA

Supported by the .NET Compact Framework.

Gets the alpha component value of this Color structure.
public propertystatic (Shared in Visual Basic)AliceBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)AntiqueWhite

Supported by the .NET Compact Framework.

Gets a system-defined color .
public propertystatic (Shared in Visual Basic)Aqua

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Aquamarine

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Azure

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertyB

Supported by the .NET Compact Framework.

Gets the blue component value of this Color structure.
public propertystatic (Shared in Visual Basic)Beige

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Bisque

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Black

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)BlanchedAlmond

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Blue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)BlueViolet

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Brown

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)BurlyWood

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)CadetBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Chartreuse

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Chocolate

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Coral

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)CornflowerBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Cornsilk

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Crimson

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Cyan

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkCyan

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkGoldenrod

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkGray

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkKhaki

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkMagenta

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkOliveGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkOrange

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkOrchid

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkRed

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkSalmon

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkSeaGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkSlateBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkSlateGray

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkTurquoise

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DarkViolet

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DeepPink

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DeepSkyBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DimGray

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)DodgerBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Firebrick

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)FloralWhite

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)ForestGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Fuchsia

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertyG

Supported by the .NET Compact Framework.

Gets the green component value of this Color structure.
public propertystatic (Shared in Visual Basic)Gainsboro

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)GhostWhite

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Gold

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Goldenrod

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Gray

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Green

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)GreenYellow

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Honeydew

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)HotPink

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)IndianRed

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Indigo

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertyIsEmpty

Supported by the .NET Compact Framework.

Specifies whether this Color structure is uninitialized.
public propertyIsKnownColor Specifies whether this Color structure is a pre-defined color. Pre-defined colors are represented by the elements of the KnownColor enumeration.
public propertyIsNamedColor Specifies whether this Color structure is a pre-defined color. Pre-defined colors are represented by the elements of the KnownColor enumeration.
public propertyIsSystemColor

Supported by the .NET Compact Framework.

Specifies whether this Color structure is a system color. A system color is a color that is used in a windows display element. System colors are represented by elements of the KnownColor enumeration.
public propertystatic (Shared in Visual Basic)Ivory

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Khaki

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Lavender

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LavenderBlush

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LawnGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LemonChiffon

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LightBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LightCoral

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LightCyan

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LightGoldenrodYellow

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LightGray

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LightGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LightPink

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LightSalmon

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LightSeaGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LightSkyBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LightSlateGray

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LightSteelBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LightYellow

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Lime

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)LimeGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Linen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Magenta

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Maroon

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)MediumAquamarine

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)MediumBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)MediumOrchid

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)MediumPurple

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)MediumSeaGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)MediumSlateBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)MediumSpringGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)MediumTurquoise

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)MediumVioletRed

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)MidnightBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)MintCream

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)MistyRose

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Moccasin

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertyName Gets the name of this Color Name. This will either return the user-defined name of the color, if the color was created from a name, or the name of the known color. For custom colors, the RGB value will be returned.
public propertystatic (Shared in Visual Basic)NavajoWhite

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Navy

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)OldLace

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Olive

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)OliveDrab

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Orange

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)OrangeRed

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Orchid

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)PaleGoldenrod

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)PaleGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)PaleTurquoise

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)PaleVioletRed

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)PapayaWhip

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)PeachPuff

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Peru

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Pink

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Plum

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)PowderBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Purple

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertyR

Supported by the .NET Compact Framework.

Gets the red component value of this Color structure.
public propertystatic (Shared in Visual Basic)Red

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)RosyBrown

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)RoyalBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)SaddleBrown

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Salmon

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)SandyBrown

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)SeaGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)SeaShell

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Sienna

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Silver

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)SkyBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)SlateBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)SlateGray

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Snow

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)SpringGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)SteelBlue

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Tan

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Teal

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Thistle

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Tomato

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Transparent

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Turquoise

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Violet

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Wheat

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)White

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)WhiteSmoke

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)Yellow

Supported by the .NET Compact Framework.

Gets a system-defined color.
public propertystatic (Shared in Visual Basic)YellowGreen

Supported by the .NET Compact Framework.

Gets a system-defined color.

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.

Public Operators

public operatorstatic (Shared in Visual Basic)Equality Operator

Supported by the .NET Compact Framework.

Tests whether two specified Color structures are equivalent.
public operatorstatic (Shared in Visual Basic)Inequality Operator

Supported by the .NET Compact Framework.

Tests whether two specified Color structures are different.

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.