Xceed Words for .NET v5.0 Documentation
Xceed.Drawing.NET Assembly / Xceed.Drawing Namespace / Pen Class / Pen Constructor / Pen Constructor(Color,Single)
The Pen's Color.
The Pen's Width.


In This Topic
    Pen Constructor(Color,Single)
    In This Topic
    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, 11, 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