This documentation is archived and is not being maintained.

SystemColors Class

Each property of the SystemColors class is a Color structure that is the color of a Windows display element.

For a list of all members of this type, see SystemColors Members.


[Visual Basic]
NotInheritable Public Class SystemColors
public sealed class SystemColors
public __gc __sealed class SystemColors
public class SystemColors

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.


Better performance is achieved through the use of the SystemPens object or SystemBrushes object rather than creating a new pen or brush based on a value from the SystemColors object. For example, use SystemBrushes.Control because it is a brush that already exists, whereas new SolidBrush(SystemColors.Control) creates a new brush.


Namespace: System.Drawing

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

Assembly: System.Drawing (in System.Drawing.dll)

See Also

SystemColors Members | System.Drawing Namespace