Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / IPaintingContext Interface / ToGdiBrush Method / ToGdiBrush(Fill,Rectangle,Boolean) Method
The brush data.
The painting rectangle.
true if the brush can be disposable; otherwise, false.


In This Topic
    ToGdiBrush(Fill,Rectangle,Boolean) Method
    In This Topic
    Gets the corresponding GDI+ brush.
    Syntax
    'Declaration
     
    
    Overloads Function ToGdiBrush( _
       ByVal fill As Fill, _
       ByVal rect As Rectangle, _
       ByRef disposable As Boolean _
    ) As Brush
    'Usage
     
    
    Dim instance As IPaintingContext
    Dim fill As Fill
    Dim rect As Rectangle
    Dim disposable As Boolean
    Dim value As Brush
     
    value = instance.ToGdiBrush(fill, rect, disposable)
    Brush ToGdiBrush( 
       Fill fill,
       Rectangle rect,
       out bool disposable
    )

    Parameters

    fill
    The brush data.
    rect
    The painting rectangle.
    disposable
    true if the brush can be disposable; otherwise, false.

    Return Value

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