Class PivotGridHeaderCellRenderer
Provides methods used to render header cells.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.PivotAnalysis
Assembly: Syncfusion.PivotAnalysis.Windows.dll
Syntax
public class PivotGridHeaderCellRenderer : GridStaticCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
PivotGridHeaderCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new instance of the PivotGridHeaderCellRenderer class with the specified GridControlBase and GridCellModelBase.
Declaration
public PivotGridHeaderCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The instance of GridControlBase class that display this cell renderer. |
GridCellModelBase | cellModel | The instance of GridCellModelBase class that holds data for this cell renderer that should be shared among views. |
Remarks
References to GridControlBase and GridCellModelBase instances will be saved.
Methods
Dispose(Boolean)
Releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true, if managed resources should be disposed; otherwise, false. |
Overrides
OnDraw(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
Draws the contents of the client bounds for the cell, e.g. the text for a static cell.
Declaration
protected override void OnDraw(Graphics graphics, Rectangle clientRectangle, int rowIndex, int colIndex, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | graphics | Points to the device context. |
System.Drawing.Rectangle | clientRectangle | Specifies the client rectangle without buttons and borders. |
System.Int32 | rowIndex | The row index of the current cell. |
System.Int32 | colIndex | The column index of the current cell. |
GridStyleInfo | style | The GridStyleInfo object that holds the style information for the cell. |
Overrides
OnDrawCellBackground(GridDrawCellBackgroundEventArgs)
Triggered when the cell back ground is drawn.
Declaration
protected override void OnDrawCellBackground(GridDrawCellBackgroundEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GridDrawCellBackgroundEventArgs | e | The GridDrawCellBackgroundEventArgs that contains the event data. |
Overrides
OnDrawDisplayText(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
This method is called from OnDraw(Graphics, Rectangle, Int32, Int32, GridStyleInfo) to draw the face text of the header cell after its background has been drawn.
Declaration
protected virtual void OnDrawDisplayText(Graphics g, Rectangle textRectangle, int rowIndex, int colIndex, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Points to the device context. |
System.Drawing.Rectangle | textRectangle | Specifies the text rectangle. It is the cell rectangle without buttons, borders, or text margins. |
System.Int32 | rowIndex | Specifies the row id. |
System.Int32 | colIndex | Specifies the column id. |
GridStyleInfo | style | A reference to the style object of the cell. |
OnOutlineCurrentCell(Graphics, Rectangle)
Triggered when the outline of the current cell i to be drawn.
Declaration
protected override void OnOutlineCurrentCell(Graphics g, Rectangle r)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics object |
System.Drawing.Rectangle | r | Rectangle bounds of the current cell. |
Overrides
OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs)
Raises the PrepareViewStyleInfo event for custom formatting of a cell by changing its style object.
Declaration
public override void OnPrepareViewStyleInfo(GridPrepareViewStyleInfoEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GridPrepareViewStyleInfoEventArgs | e | The GridPrepareViewStyleInfoEventArgs instance that contains the event data. |
Overrides
UnwireGrid()
Resets up mouse event hooks with the grid.
Declaration
protected static void UnwireGrid()
WireGrid()
Sets up mouse event hooks with the grid.
Declaration
protected static void WireGrid()