Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Drawing Namespace / Pen Class / Pen Constructor / Pen Constructor(Brush,Double)
A Brush that determines the characteristics of this Pen.
The width of the new Pen.


In This Topic
    Pen Constructor(Brush,Double)
    In This Topic
    Initializes a new instance of the Pen class with the specified brush and width.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal brush As Brush, _
       Optional ByVal width As Double _
    )
    'Usage
     
    
    Dim brush As Brush
    Dim width As Double
     
    Dim instance As New Pen(brush, width)
    public Pen( 
       Brush brush,
       double width
    )

    Parameters

    brush
    A Brush that determines the characteristics of this Pen.
    width
    The width of the new Pen.
    See Also