BCGControlBar Library for .NET
DrawFilterButton Method




The Graphics object.
Specifies filter button bounds.
Visual style of filter button.
Specifies whether filter button is highlighted.
Specifies whether the column header on which the filter box is located currently in "mark selection" state.
Specifies whether the column header on which the filter box is located currently in "show selection" state.
Filter button image.
Called by painting code to draw filter button.
Syntax
'Declaration
 
Public Sub DrawFilterButton( _
   ByVal grph As Graphics, _
   ByVal filterBoxBounds As Rectangle, _
   ByVal filterButtonStyle As FilterButtonVisualStyle, _
   ByVal filterBoxHighlighted As Boolean, _
   ByVal markSelection As Boolean, _
   ByVal showSelectedState As Boolean, _
   ByVal filterImage As Image _
) 
'Usage
 
Dim instance As GridControl
Dim grph As Graphics
Dim filterBoxBounds As Rectangle
Dim filterButtonStyle As FilterButtonVisualStyle
Dim filterBoxHighlighted As Boolean
Dim markSelection As Boolean
Dim showSelectedState As Boolean
Dim filterImage As Image
 
instance.DrawFilterButton(grph, filterBoxBounds, filterButtonStyle, filterBoxHighlighted, markSelection, showSelectedState, filterImage)

Parameters

grph
The Graphics object.
filterBoxBounds
Specifies filter button bounds.
filterButtonStyle
Visual style of filter button.
filterBoxHighlighted
Specifies whether filter button is highlighted.
markSelection
Specifies whether the column header on which the filter box is located currently in "mark selection" state.
showSelectedState
Specifies whether the column header on which the filter box is located currently in "show selection" state.
filterImage
Filter button image.
Remarks

"Mark selection" state means that a column header is filled by different color if at least one cell in the column is selected.

"Show selection" state means that a column header is filled by different color if the column is selected.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridControl Class
GridControl Members

Send Feedback