Class PivotGridTotalCellRenderer
Provides methods used to render the total cell.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.PivotAnalysis
Assembly: Syncfusion.PivotAnalysis.Windows.dll
Syntax
public class PivotGridTotalCellRenderer : GridTextBoxCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
PivotGridTotalCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new instance of the PivotGridTotalCellRenderer class with the specified GridControlBase and GridCellModelBase.
Declaration
public PivotGridTotalCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The instance of the GridControlBase class. |
GridCellModelBase | cellModel | The instance of the GridCellModelBase class. |
Methods
OnClick(Int32, Int32, MouseEventArgs)
Triggered when the click is called.
Declaration
protected override void OnClick(int rowIndex, int colIndex, MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index. |
System.Int32 | colIndex | Column index. |
System.Windows.Forms.MouseEventArgs | e | The System.Windows.Forms.MouseEventArgs that contains the event data. |
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 background is drawn.
Declaration
protected override void OnDrawCellBackground(GridDrawCellBackgroundEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GridDrawCellBackgroundEventArgs | e | The GridDrawCellBackgroundEventArgs that contains the event data. |
Overrides
OnOutlineCurrentCell(Graphics, Rectangle)
Triggered when the outline of the current cell is rendered.
Declaration
protected override void OnOutlineCurrentCell(Graphics g, Rectangle r)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | GDI+ surface. |
System.Drawing.Rectangle | r | Represents the location and size of the rectangle. |