TreeView for WinForms | ComponentOne
C1.Framework Namespace / BackgroundBrushProvider Class / GetBrush Method
Rectangle used to build the gradient brush if the BackgroundBrushProvider.GradientMode property is set to a value other than None.

In This Topic
    GetBrush Method (BackgroundBrushProvider)
    In This Topic
    Gets an updated BackgroundBrushProvider.Brush that can be used to fill a given System.Drawing.Rectangle.
    Syntax
    'Declaration
     
    
    Public Function GetBrush( _
       ByVal rc As Rectangle _
    ) As Brush
    public Brush GetBrush( 
       Rectangle rc
    )

    Parameters

    rc
    Rectangle used to build the gradient brush if the BackgroundBrushProvider.GradientMode property is set to a value other than None.

    Return Value

    A BackgroundBrushProvider.Brush that can be used to paint an element's background.
    See Also