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
public static Pen FromSystemColor(
 Color c
public: static Pen* FromSystemColor(
 Color c
public static function FromSystemColor(
   c : Color
) : Pen;


The Color structure for the new Pen object.

Return Value

The Pen object this method creates.


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