Spread WinForms 15
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)

Parameters

pen
The pen data.
rect
The painting rectangle.

Return Value

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