Class StackedHeaderCellRenderer
Implements the renderer part for a textbox cell with ellipsis button
Inheritance
Inherited Members
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class StackedHeaderCellRenderer : GridHeaderCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
StackedHeaderCellRenderer(GridControlBase, GridHeaderCellModel, GridExcelFilter)
Dictionary for filter choices.
Declaration
public StackedHeaderCellRenderer(GridControlBase grid, GridHeaderCellModel cellModel, GridExcelFilter filter)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The GridControlBase that display this cell renderer. |
GridHeaderCellModel | cellModel | The GridHeaderCellModel that holds data for this cell renderer that should be shared among views. |
GridExcelFilter | filter | Indicates the type of filter |
Remarks
References to GridControlBase, and GridTextBoxCellModel will be saved.
Fields
filterRect
Represents the rectangle size and location
Declaration
protected Rectangle filterRect
Field Value
Type |
---|
System.Drawing.Rectangle |
Properties
FilteredIconImage
Gets or sets a Bitmap for the Filtered icon.
Declaration
protected virtual Bitmap FilteredIconImage { get; set; }
Property Value
Type |
---|
System.Drawing.Bitmap |
FilterIconImage
Gets or sets a Bitmap for the Filter icon.
Declaration
protected virtual Bitmap FilterIconImage { get; set; }
Property Value
Type |
---|
System.Drawing.Bitmap |
FilterIconSize
Gets or sets a value indicating the size of the GridExcelFilter's filter icon.
Declaration
protected virtual Size FilterIconSize { get; set; }
Property Value
Type |
---|
System.Drawing.Size |
Methods
OnDraw(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
Overridden to border line.
Declaration
protected override void OnDraw(Graphics g, Rectangle clientRectangle, int rowIndex, int colIndex, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics of a cell. |
System.Drawing.Rectangle | clientRectangle | Text rectangle of a cell. |
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
GridStyleInfo | style | Cell style. |
Overrides
OnDrawDisplayText(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
Overridden to draw the filter icons.
Declaration
protected override void OnDrawDisplayText(Graphics g, Rectangle textRectangle, int rowIndex, int colIndex, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics of a cell. |
System.Drawing.Rectangle | textRectangle | Text rectangle of a cell. |
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
GridStyleInfo | style | Cell style. |
Overrides
OnMouseHoverEnter(Int32, Int32)
Occurs when mouse hover enters the column header.
Declaration
protected override void OnMouseHoverEnter(int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | column index of a cell. |
Overrides
OnMouseHoverLeave(Int32, Int32, EventArgs)
Occurs when mouse hover leaves the column header.
Declaration
protected override void OnMouseHoverLeave(int rowIndex, int colIndex, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | column index of a cell. |
System.EventArgs | e | The System.EventArgs that contains the event data. |