Skip to main content
.NET Framework Class Library
Color Structure

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

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)
Syntax
<[%$TOPIC/14w97wkc_en-us_VS_110_1_0_0_0_0%]> _
<[%$TOPIC/14w97wkc_en-us_VS_110_1_0_0_0_1%](GetType([%$TOPIC/14w97wkc_en-us_VS_110_1_0_0_0_2%]))> _
Public Structure Color
[[%$TOPIC/14w97wkc_en-us_VS_110_1_0_1_0_0%]]
[[%$TOPIC/14w97wkc_en-us_VS_110_1_0_1_0_1%](typeof([%$TOPIC/14w97wkc_en-us_VS_110_1_0_1_0_2%]))]
public struct Color
[[%$TOPIC/14w97wkc_en-us_VS_110_1_0_2_0_0%]]
[[%$TOPIC/14w97wkc_en-us_VS_110_1_0_2_0_1%](typeof([%$TOPIC/14w97wkc_en-us_VS_110_1_0_2_0_2%]))]
public value class Color
[<[%$TOPIC/14w97wkc_en-us_VS_110_1_0_3_0_0%]>]
[<[%$TOPIC/14w97wkc_en-us_VS_110_1_0_3_0_1%]>]
[<[%$TOPIC/14w97wkc_en-us_VS_110_1_0_3_0_2%](typeof([%$TOPIC/14w97wkc_en-us_VS_110_1_0_3_0_3%]))>]
type Color =  struct end

The Color type exposes the following members.

Properties
  NameDescription
Public property Supported by the XNA Framework AGets the alpha component value of this Color structure.
Public property Static member Supported by the XNA Framework AliceBlueGets a system-defined color that has an ARGB value of #FFF0F8FF.
Public property Static member Supported by the XNA Framework AntiqueWhiteGets a system-defined color that has an ARGB value of #FFFAEBD7.
Public property Static member Supported by the XNA Framework AquaGets a system-defined color that has an ARGB value of #FF00FFFF.
Public property Static member Supported by the XNA Framework AquamarineGets a system-defined color that has an ARGB value of #FF7FFFD4.
Public property Static member Supported by the XNA Framework AzureGets a system-defined color that has an ARGB value of #FFF0FFFF.
Public property Supported by the XNA Framework BGets the blue component value of this Color structure.
Public property Static member Supported by the XNA Framework BeigeGets a system-defined color that has an ARGB value of #FFF5F5DC.
Public property Static member Supported by the XNA Framework BisqueGets a system-defined color that has an ARGB value of #FFFFE4C4.
Public property Static member Supported by the XNA Framework BlackGets a system-defined color that has an ARGB value of #FF000000.
Public property Static member Supported by the XNA Framework BlanchedAlmondGets a system-defined color that has an ARGB value of #FFFFEBCD.
Public property Static member Supported by the XNA Framework BlueGets a system-defined color that has an ARGB value of #FF0000FF.
Public property Static member Supported by the XNA Framework BlueVioletGets a system-defined color that has an ARGB value of #FF8A2BE2.
Public property Static member Supported by the XNA Framework BrownGets a system-defined color that has an ARGB value of #FFA52A2A.
Public property Static member Supported by the XNA Framework BurlyWoodGets a system-defined color that has an ARGB value of #FFDEB887.
Public property Static member Supported by the XNA Framework CadetBlueGets a system-defined color that has an ARGB value of #FF5F9EA0.
Public property Static member Supported by the XNA Framework ChartreuseGets a system-defined color that has an ARGB value of #FF7FFF00.
Public property Static member Supported by the XNA Framework ChocolateGets a system-defined color that has an ARGB value of #FFD2691E.
Public property Static member Supported by the XNA Framework CoralGets a system-defined color that has an ARGB value of #FFFF7F50.
Public property Static member Supported by the XNA Framework CornflowerBlueGets a system-defined color that has an ARGB value of #FF6495ED.
Public property Static member Supported by the XNA Framework CornsilkGets a system-defined color that has an ARGB value of #FFFFF8DC.
Public property Static member Supported by the XNA Framework CrimsonGets a system-defined color that has an ARGB value of #FFDC143C.
Public property Static member Supported by the XNA Framework CyanGets a system-defined color that has an ARGB value of #FF00FFFF.
Public property Static member Supported by the XNA Framework DarkBlueGets a system-defined color that has an ARGB value of #FF00008B.
Public property Static member Supported by the XNA Framework DarkCyanGets a system-defined color that has an ARGB value of #FF008B8B.
Public property Static member Supported by the XNA Framework DarkGoldenrodGets a system-defined color that has an ARGB value of #FFB8860B.
Public property Static member Supported by the XNA Framework DarkGrayGets a system-defined color that has an ARGB value of #FFA9A9A9.
Public property Static member Supported by the XNA Framework DarkGreenGets a system-defined color that has an ARGB value of #FF006400.
Public property Static member Supported by the XNA Framework DarkKhakiGets a system-defined color that has an ARGB value of #FFBDB76B.
Public property Static member Supported by the XNA Framework DarkMagentaGets a system-defined color that has an ARGB value of #FF8B008B.
Public property Static member Supported by the XNA Framework DarkOliveGreenGets a system-defined color that has an ARGB value of #FF556B2F.
Public property Static member Supported by the XNA Framework DarkOrangeGets a system-defined color that has an ARGB value of #FFFF8C00.
Public property Static member Supported by the XNA Framework DarkOrchidGets a system-defined color that has an ARGB value of #FF9932CC.
Public property Static member Supported by the XNA Framework DarkRedGets a system-defined color that has an ARGB value of #FF8B0000.
Public property Static member Supported by the XNA Framework DarkSalmonGets a system-defined color that has an ARGB value of #FFE9967A.
Public property Static member Supported by the XNA Framework DarkSeaGreenGets a system-defined color that has an ARGB value of #FF8FBC8F.
Public property Static member Supported by the XNA Framework DarkSlateBlueGets a system-defined color that has an ARGB value of #FF483D8B.
Public property Static member Supported by the XNA Framework DarkSlateGrayGets a system-defined color that has an ARGB value of #FF2F4F4F.
Public property Static member Supported by the XNA Framework DarkTurquoiseGets a system-defined color that has an ARGB value of #FF00CED1.
Public property Static member Supported by the XNA Framework DarkVioletGets a system-defined color that has an ARGB value of #FF9400D3.
Public property Static member Supported by the XNA Framework DeepPinkGets a system-defined color that has an ARGB value of #FFFF1493.
Public property Static member Supported by the XNA Framework DeepSkyBlueGets a system-defined color that has an ARGB value of #FF00BFFF.
Public property Static member Supported by the XNA Framework DimGrayGets a system-defined color that has an ARGB value of #FF696969.
Public property Static member Supported by the XNA Framework DodgerBlueGets a system-defined color that has an ARGB value of #FF1E90FF.
Public property Static member Supported by the XNA Framework FirebrickGets a system-defined color that has an ARGB value of #FFB22222.
Public property Static member Supported by the XNA Framework FloralWhiteGets a system-defined color that has an ARGB value of #FFFFFAF0.
Public property Static member Supported by the XNA Framework ForestGreenGets a system-defined color that has an ARGB value of #FF228B22.
Public property Static member Supported by the XNA Framework FuchsiaGets a system-defined color that has an ARGB value of #FFFF00FF.
Public property Supported by the XNA Framework GGets the green component value of this Color structure.
Public property Static member Supported by the XNA Framework GainsboroGets a system-defined color that has an ARGB value of #FFDCDCDC.
Public property Static member Supported by the XNA Framework GhostWhiteGets a system-defined color that has an ARGB value of #FFF8F8FF.
Public property Static member Supported by the XNA Framework GoldGets a system-defined color that has an ARGB value of #FFFFD700.
Public property Static member Supported by the XNA Framework GoldenrodGets a system-defined color that has an ARGB value of #FFDAA520.
Public property Static member Supported by the XNA Framework GrayGets a system-defined color that has an ARGB value of #FF808080.
Public property Static member Supported by the XNA Framework GreenGets a system-defined color that has an ARGB value of #FF008000.
Public property Static member Supported by the XNA Framework GreenYellowGets a system-defined color that has an ARGB value of #FFADFF2F.
Public property Static member Supported by the XNA Framework HoneydewGets a system-defined color that has an ARGB value of #FFF0FFF0.
Public property Static member Supported by the XNA Framework HotPinkGets a system-defined color that has an ARGB value of #FFFF69B4.
Public property Static member Supported by the XNA Framework IndianRedGets a system-defined color that has an ARGB value of #FFCD5C5C.
Public property Static member Supported by the XNA Framework IndigoGets a system-defined color that has an ARGB value of #FF4B0082.
Public property Supported by the XNA Framework IsEmptySpecifies whether this Color structure is uninitialized.
Public property IsKnownColorGets a value indicating whether this Color structure is a predefined color. Predefined colors are represented by the elements of the KnownColor enumeration.
Public property IsNamedColorGets a value indicating whether this Color structure is a named color or a member of the KnownColor enumeration.
Public property Supported by the XNA Framework IsSystemColorGets a value indicating 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 property Static member Supported by the XNA Framework IvoryGets a system-defined color that has an ARGB value of #FFFFFFF0.
Public property Static member Supported by the XNA Framework KhakiGets a system-defined color that has an ARGB value of #FFF0E68C.
Public property Static member Supported by the XNA Framework LavenderGets a system-defined color that has an ARGB value of #FFE6E6FA.
Public property Static member Supported by the XNA Framework LavenderBlushGets a system-defined color that has an ARGB value of #FFFFF0F5.
Public property Static member Supported by the XNA Framework LawnGreenGets a system-defined color that has an ARGB value of #FF7CFC00.
Public property Static member Supported by the XNA Framework LemonChiffonGets a system-defined color that has an ARGB value of #FFFFFACD.
Public property Static member Supported by the XNA Framework LightBlueGets a system-defined color that has an ARGB value of #FFADD8E6.
Public property Static member Supported by the XNA Framework LightCoralGets a system-defined color that has an ARGB value of #FFF08080.
Public property Static member Supported by the XNA Framework LightCyanGets a system-defined color that has an ARGB value of #FFE0FFFF.
Public property Static member Supported by the XNA Framework LightGoldenrodYellowGets a system-defined color that has an ARGB value of #FFFAFAD2.
Public property Static member Supported by the XNA Framework LightGrayGets a system-defined color that has an ARGB value of #FFD3D3D3.
Public property Static member Supported by the XNA Framework LightGreenGets a system-defined color that has an ARGB value of #FF90EE90.
Public property Static member Supported by the XNA Framework LightPinkGets a system-defined color that has an ARGB value of #FFFFB6C1.
Public property Static member Supported by the XNA Framework LightSalmonGets a system-defined color that has an ARGB value of #FFFFA07A.
Public property Static member Supported by the XNA Framework LightSeaGreenGets a system-defined color that has an ARGB value of #FF20B2AA.
Public property Static member Supported by the XNA Framework LightSkyBlueGets a system-defined color that has an ARGB value of #FF87CEFA.
Public property Static member Supported by the XNA Framework LightSlateGrayGets a system-defined color that has an ARGB value of #FF778899.
Public property Static member Supported by the XNA Framework LightSteelBlueGets a system-defined color that has an ARGB value of #FFB0C4DE.
Public property Static member Supported by the XNA Framework LightYellowGets a system-defined color that has an ARGB value of #FFFFFFE0.
Public property Static member Supported by the XNA Framework LimeGets a system-defined color that has an ARGB value of #FF00FF00.
Public property Static member Supported by the XNA Framework LimeGreenGets a system-defined color that has an ARGB value of #FF32CD32.
Public property Static member Supported by the XNA Framework LinenGets a system-defined color that has an ARGB value of #FFFAF0E6.
Public property Static member Supported by the XNA Framework MagentaGets a system-defined color that has an ARGB value of #FFFF00FF.
Public property Static member Supported by the XNA Framework MaroonGets a system-defined color that has an ARGB value of #FF800000.
Public property Static member Supported by the XNA Framework MediumAquamarineGets a system-defined color that has an ARGB value of #FF66CDAA.
Public property Static member Supported by the XNA Framework MediumBlueGets a system-defined color that has an ARGB value of #FF0000CD.
Public property Static member Supported by the XNA Framework MediumOrchidGets a system-defined color that has an ARGB value of #FFBA55D3.
Public property Static member Supported by the XNA Framework MediumPurpleGets a system-defined color that has an ARGB value of #FF9370DB.
Public property Static member Supported by the XNA Framework MediumSeaGreenGets a system-defined color that has an ARGB value of #FF3CB371.
Public property Static member Supported by the XNA Framework MediumSlateBlueGets a system-defined color that has an ARGB value of #FF7B68EE.
Public property Static member Supported by the XNA Framework MediumSpringGreenGets a system-defined color that has an ARGB value of #FF00FA9A.
Public property Static member Supported by the XNA Framework MediumTurquoiseGets a system-defined color that has an ARGB value of #FF48D1CC.
Public property Static member Supported by the XNA Framework MediumVioletRedGets a system-defined color that has an ARGB value of #FFC71585.
Public property Static member Supported by the XNA Framework MidnightBlueGets a system-defined color that has an ARGB value of #FF191970.
Public property Static member Supported by the XNA Framework MintCreamGets a system-defined color that has an ARGB value of #FFF5FFFA.
Public property Static member Supported by the XNA Framework MistyRoseGets a system-defined color that has an ARGB value of #FFFFE4E1.
Public property Static member Supported by the XNA Framework MoccasinGets a system-defined color that has an ARGB value of #FFFFE4B5.
Public property NameGets the name of this Color.
Public property Static member Supported by the XNA Framework NavajoWhiteGets a system-defined color that has an ARGB value of #FFFFDEAD.
Public property Static member Supported by the XNA Framework NavyGets a system-defined color that has an ARGB value of #FF000080.
Public property Static member Supported by the XNA Framework OldLaceGets a system-defined color that has an ARGB value of #FFFDF5E6.
Public property Static member Supported by the XNA Framework OliveGets a system-defined color that has an ARGB value of #FF808000.
Public property Static member Supported by the XNA Framework OliveDrabGets a system-defined color that has an ARGB value of #FF6B8E23.
Public property Static member Supported by the XNA Framework OrangeGets a system-defined color that has an ARGB value of #FFFFA500.
Public property Static member Supported by the XNA Framework OrangeRedGets a system-defined color that has an ARGB value of #FFFF4500.
Public property Static member Supported by the XNA Framework OrchidGets a system-defined color that has an ARGB value of #FFDA70D6.
Public property Static member Supported by the XNA Framework PaleGoldenrodGets a system-defined color that has an ARGB value of #FFEEE8AA.
Public property Static member Supported by the XNA Framework PaleGreenGets a system-defined color that has an ARGB value of #FF98FB98.
Public property Static member Supported by the XNA Framework PaleTurquoiseGets a system-defined color that has an ARGB value of #FFAFEEEE.
Public property Static member Supported by the XNA Framework PaleVioletRedGets a system-defined color that has an ARGB value of #FFDB7093.
Public property Static member Supported by the XNA Framework PapayaWhipGets a system-defined color that has an ARGB value of #FFFFEFD5.
Public property Static member Supported by the XNA Framework PeachPuffGets a system-defined color that has an ARGB value of #FFFFDAB9.
Public property Static member Supported by the XNA Framework PeruGets a system-defined color that has an ARGB value of #FFCD853F.
Public property Static member Supported by the XNA Framework PinkGets a system-defined color that has an ARGB value of #FFFFC0CB.
Public property Static member Supported by the XNA Framework PlumGets a system-defined color that has an ARGB value of #FFDDA0DD.
Public property Static member Supported by the XNA Framework PowderBlueGets a system-defined color that has an ARGB value of #FFB0E0E6.
Public property Static member Supported by the XNA Framework PurpleGets a system-defined color that has an ARGB value of #FF800080.
Public property Supported by the XNA Framework RGets the red component value of this Color structure.
Public property Static member Supported by the XNA Framework RedGets a system-defined color that has an ARGB value of #FFFF0000.
Public property Static member Supported by the XNA Framework RosyBrownGets a system-defined color that has an ARGB value of #FFBC8F8F.
Public property Static member Supported by the XNA Framework RoyalBlueGets a system-defined color that has an ARGB value of #FF4169E1.
Public property Static member Supported by the XNA Framework SaddleBrownGets a system-defined color that has an ARGB value of #FF8B4513.
Public property Static member Supported by the XNA Framework SalmonGets a system-defined color that has an ARGB value of #FFFA8072.
Public property Static member Supported by the XNA Framework SandyBrownGets a system-defined color that has an ARGB value of #FFF4A460.
Public property Static member Supported by the XNA Framework SeaGreenGets a system-defined color that has an ARGB value of #FF2E8B57.
Public property Static member Supported by the XNA Framework SeaShellGets a system-defined color that has an ARGB value of #FFFFF5EE.
Public property Static member Supported by the XNA Framework SiennaGets a system-defined color that has an ARGB value of #FFA0522D.
Public property Static member Supported by the XNA Framework SilverGets a system-defined color that has an ARGB value of #FFC0C0C0.
Public property Static member Supported by the XNA Framework SkyBlueGets a system-defined color that has an ARGB value of #FF87CEEB.
Public property Static member Supported by the XNA Framework SlateBlueGets a system-defined color that has an ARGB value of #FF6A5ACD.
Public property Static member Supported by the XNA Framework SlateGrayGets a system-defined color that has an ARGB value of #FF708090.
Public property Static member Supported by the XNA Framework SnowGets a system-defined color that has an ARGB value of #FFFFFAFA.
Public property Static member Supported by the XNA Framework SpringGreenGets a system-defined color that has an ARGB value of #FF00FF7F.
Public property Static member Supported by the XNA Framework SteelBlueGets a system-defined color that has an ARGB value of #FF4682B4.
Public property Static member Supported by the XNA Framework TanGets a system-defined color that has an ARGB value of #FFD2B48C.
Public property Static member Supported by the XNA Framework TealGets a system-defined color that has an ARGB value of #FF008080.
Public property Static member Supported by the XNA Framework ThistleGets a system-defined color that has an ARGB value of #FFD8BFD8.
Public property Static member Supported by the XNA Framework TomatoGets a system-defined color that has an ARGB value of #FFFF6347.
Public property Static member Supported by the XNA Framework TransparentGets a system-defined color.
Public property Static member Supported by the XNA Framework TurquoiseGets a system-defined color that has an ARGB value of #FF40E0D0.
Public property Static member Supported by the XNA Framework VioletGets a system-defined color that has an ARGB value of #FFEE82EE.
Public property Static member Supported by the XNA Framework WheatGets a system-defined color that has an ARGB value of #FFF5DEB3.
Public property Static member Supported by the XNA Framework WhiteGets a system-defined color that has an ARGB value of #FFFFFFFF.
Public property Static member Supported by the XNA Framework WhiteSmokeGets a system-defined color that has an ARGB value of #FFF5F5F5.
Public property Static member Supported by the XNA Framework YellowGets a system-defined color that has an ARGB value of #FFFFFF00.
Public property Static member Supported by the XNA Framework YellowGreenGets a system-defined color that has an ARGB value of #FF9ACD32.
Top
Methods
  NameDescription
Public method Supported by the XNA Framework EqualsTests whether the specified object is a Color structure and is equivalent to this Color structure. (Overrides ValueTypeEquals(Object).)
Public method Static member Supported by the XNA Framework FromArgb(Int32)Creates a Color structure from a 32-bit ARGB value.
Public method Static member FromArgb(Int32, Color)Creates a Color structure from the specified Color structure, but with the new specified alpha value. Although this method allows a 32-bit value to be passed for the alpha value, the value is limited to 8 bits.
Public method Static member Supported by the XNA Framework FromArgb(Int32, Int32, Int32)Creates a Color structure 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.
Public method Static member FromArgb(Int32, Int32, Int32, Int32)Creates a Color structure 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.
Public method Static member FromKnownColorCreates a Color structure from the specified predefined color.
Public method Static member FromNameCreates a Color structure from the specified name of a predefined color.
Public method GetBrightnessGets the hue-saturation-brightness (HSB) brightness value for this Color structure.
Public method Supported by the XNA Framework GetHashCodeReturns a hash code for this Color structure. (Overrides ValueTypeGetHashCode.)
Public method GetHueGets the hue-saturation-brightness (HSB) hue value, in degrees, for this Color structure.
Public method GetSaturationGets the hue-saturation-brightness (HSB) saturation value for this Color structure.
Public method Supported by the XNA Framework GetTypeGets the Type of the current instance. (Inherited from Object.)
Public method Supported by the XNA Framework ToArgbGets the 32-bit ARGB value of this Color structure.
Public method ToKnownColorGets the KnownColor value of this Color structure.
Public method Supported by the XNA Framework ToStringConverts this Color structure to a human-readable string. (Overrides ValueTypeToString.)

In XNA Framework 3.0, this member is inherited from Object ToString.
Top
Operators
  NameDescription
Public operator Static member Supported by the XNA Framework EqualityTests whether two specified Color structures are equivalent.
Public operator Static member Supported by the XNA Framework InequalityTests whether two specified Color structures are different.
Top
Fields
  NameDescription
Public field Static member Supported by the XNA Framework EmptyRepresents a color that is .
Top
Remarks

Named colors are represented by using the properties of the Color structure. For more information about these colors, see Colors by Name.

The color of each pixel is represented as a 32-bit number: 8 bits each for alpha, red, green, and blue (ARGB). Each of the four components is a number from 0 through 255, with 0 representing no intensity and 255 representing full intensity. The alpha component specifies the transparency of the color: 0 is fully transparent, and 255 is fully opaque. To determine the alpha, red, green, or blue component of a color, use the A, R, G, or B property, respectively. You can create a custom color by using one of the FromArgb methods.

Examples

The following code example demonstrates the A, R, G, and B properties of a Color, and the member.

This example is designed to be used with a Windows Form. Paste the code into the form and call the ShowPropertiesOfSlateBlue method from the form's Paint event-handling method, passing e as PaintEventArgs.

Private Sub ShowPropertiesOfSlateBlue(ByVal e As PaintEventArgs)
    Dim slateBlue As Color = Color.FromName("SlateBlue")
    Dim g As Byte = slateBlue.G
    Dim b As Byte = slateBlue.B
    Dim r As Byte = slateBlue.R
    Dim a As Byte = slateBlue.A
    Dim text As String = _
    String.Format("Slate Blue has these ARGB values: Alpha:{0}, " _
       & "red:{1}, green: {2}, blue {3}", New Object() {a, r, g, b})
    e.Graphics.DrawString(text, New Font(Me.Font, FontStyle.Italic), _
        New SolidBrush(slateBlue), _
        New RectangleF(New PointF(0.0F, 0.0F), _
        Size.op_Implicit(Me.Size)))
End Sub
private void ShowPropertiesOfSlateBlue(PaintEventArgs e)
{
    Color slateBlue = Color.FromName("SlateBlue");
    byte g = slateBlue.G;
    byte b = slateBlue.B;
    byte r = slateBlue.R;
    byte a = slateBlue.A;
    string text = String.Format("Slate Blue has these ARGB values: Alpha:{0}, " +
        "red:{1}, green: {2}, blue {3}", new object[]{a, r, g, b});
    e.Graphics.DrawString(text, 
        new Font(this.Font, FontStyle.Italic), 
        new SolidBrush(slateBlue), 
        new RectangleF(new PointF(0.0F, 0.0F), this.Size));
}
void ShowPropertiesOfSlateBlue( PaintEventArgs^ e )
{
   Color slateBlue = Color::FromName( "SlateBlue" );
   Byte g = slateBlue.G;
   Byte b = slateBlue.B;
   Byte r = slateBlue.R;
   Byte a = slateBlue.A;
   array<Object^>^temp0 = {a,r,g,b};
   String^ text = String::Format( "Slate Blue has these ARGB values: Alpha:{0}, " 
   "red:{1}, green: {2}, blue {3}", temp0 );
   e->Graphics->DrawString( text, gcnew System::Drawing::Font( this->Font,FontStyle::Italic ), gcnew SolidBrush( slateBlue ), RectangleF(PointF(0.0F,0.0F),this->Size) );
}
Version Information

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Platforms

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.