This documentation is archived and is not being maintained.

SystemPens.FromSystemColor Method

Creates a Pen object from the specified Color structure.

[Visual Basic]
Public Shared Function FromSystemColor( _
   ByVal c As Color _
) As Pen
[C#]
public static Pen FromSystemColor(
 Color c
);
[C++]
public: static Pen* FromSystemColor(
 Color c
);
[JScript]
public static function FromSystemColor(
   c : Color
) : Pen;

Parameters

c
The Color structure for the new Pen object.

Return Value

The Pen object this method creates.

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

SystemPens Class | SystemPens Members | System.Drawing Namespace

Show: