Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / IPaintingContext Interface / ToGdiPen Method
The pen data.
The painting rectangle.


In This Topic
    ToGdiPen Method
    In This Topic
    Gets the corresponding GDI+ pen.
    Syntax
    'Declaration
     
    
    Function ToGdiPen( _
       ByVal pen As Pen, _
       ByVal rect As Rectangle _
    ) As Pen
    'Usage
     
    
    Dim instance As IPaintingContext
    Dim pen As Pen
    Dim rect As Rectangle
    Dim value As Pen
     
    value = instance.ToGdiPen(pen, rect)
    Pen ToGdiPen( 
       Pen pen,
       Rectangle rect
    )

    Parameters

    pen
    The pen data.
    rect
    The painting rectangle.

    Return Value

    A System.Drawing.Pen object represents the corresponding GDI+ brush.
    See Also