Xceed Workbooks for .NET v2.0 Documentation
Pen Constructor(Color,Single)


Xceed.Drawing.NET Assembly > Xceed.Drawing Namespace > Pen Class > Pen Constructor : Pen Constructor(Color,Single)
The Pen's Color.
The Pen's Width.
Creates a Pen object from a Color & a specific Width.
Syntax
'Declaration
 
Public Function New( _
   ByVal penColor As Color, _
   ByVal penWidth As Single _
)
'Usage
 
Dim penColor As Color
Dim penWidth As Single
 
Dim instance As New Pen(penColor, penWidth)
public Pen( 
   Color penColor,
   float penWidth
)

Parameters

penColor
The Pen's Color.
penWidth
The Pen's Width.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Pen Class
Pen Members
Overload List