Class TopLeftCellRenderer
Provides methods used to render the top left cell.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.PivotAnalysis
Assembly: Syncfusion.PivotAnalysis.Windows.dll
Syntax
public class TopLeftCellRenderer : GridGenericControlCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
TopLeftCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new instance of the TopLeftCellRenderer class with the specified GridControlBase and GridCellModelBase.
Declaration
public TopLeftCellRenderer(GridControlBase gridControl, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | gridControl | The grid control that holds the top left cell. |
GridCellModelBase | cellModel | The data or model part of a cell type. |
Methods
OnClick(Int32, Int32, MouseEventArgs)
Called when the user clicks inside a cell.
Declaration
protected override void OnClick(int rowIndex, int colIndex, MouseEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The row index. |
System.Int32 | colIndex | The column index. |
System.Windows.Forms.MouseEventArgs | args | A 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
OnOutlineCurrentCell(Graphics, Rectangle)
Highlights the current cell by inverting the cells border or drawing a thick border.
Declaration
protected override void OnOutlineCurrentCell(Graphics graphics, Rectangle clientRectangle)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | graphics | Points to the device context. |
System.Drawing.Rectangle | clientRectangle | Specifies the cell rectangle. |
Overrides
Remarks
This method can be overridden to avoid highlighting cells.
ProcessKeyEventArgs(ref Message)
Allows to process keyboard events before the GridControlBase gets the actual KeyDown / KeyUp event.
Declaration
protected override bool ProcessKeyEventArgs(ref Message message)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | message | The System.Windows.Forms.Message containing the data of the keyboard event. |
Returns
Type | Description |
---|---|
System.Boolean | true if the key is handled; otherwise, false. |