This documentation is archived and is not being maintained.

Color.Name Property

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.

[Visual Basic]
Public ReadOnly Property Name As String
[C#]
public string Name {get;}
[C++]
public: __property String* get_Name();
[JScript]
public function get Name() : String;

Property Value

The name of this Color.

Remarks

This method returns either 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 is returned.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Color Structure | Color Members | System.Drawing Namespace

Show: