Xceed Workbooks for .NET v3.0 Documentation
Xceed.Drawing.NET Assembly / Xceed.Drawing Namespace / Pen Class / Pen Constructor / Pen Constructor(Color)
The Pen's Color.


    Pen Constructor(Color)
    Creates a Pen object from a Color.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal penColor As Color _
    )
     
    'Usage
     
    
    Dim penColor As Color
     
    Dim instance As New Pen(penColor)

    Parameters

    penColor
    The Pen's Color.
    Remarks
    Note that the Pen's Width will default to a value of 1.
    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