Class PivotGridExpandCellCellRenderer
Provides methods used to render the expand cell.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.PivotAnalysis
Assembly: Syncfusion.PivotAnalysis.Windows.dll
Syntax
public class PivotGridExpandCellCellRenderer : GridStaticCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
PivotGridExpandCellCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new instance of the PivotGridExpandCellCellRenderer class with the specified GridControlBase and GridCellModelBase.
Declaration
public PivotGridExpandCellCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The instance of GridControlBase class. |
GridCellModelBase | cellModel | The instance of GridCellModelBase class. |
Methods
OnButtonClicked(Int32, Int32, Int32)
Called when the user clicks on a button inside the cell.
Declaration
protected override void OnButtonClicked(int rowIndex, int colIndex, int button)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The row index. |
System.Int32 | colIndex | The column index. |
System.Int32 | button | The button clicked. |
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 background of the cell is drawn.
Declaration
protected override void OnDrawCellBackground(GridDrawCellBackgroundEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GridDrawCellBackgroundEventArgs | e | The GridDrawCellBackgroundEventArgs that contains the event data. |
Overrides
OnDrawCellButton(GridCellButton, Graphics, Int32, Int32, Boolean, GridStyleInfo)
Triggered when the button drawn in the cell.
Declaration
protected override void OnDrawCellButton(GridCellButton button, Graphics g, int rowIndex, int colIndex, bool bActive, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
GridCellButton | button | Used to cell renderer. |
System.Drawing.Graphics | g | GDI+ surfaces. |
System.Int32 | rowIndex | The row index of the current cell. |
System.Int32 | colIndex | The column index of the current cell. |
System.Boolean | bActive | Represents boolean value. |
GridStyleInfo | style | Stores information about the cell |
Overrides
OnDrawCellButtonBackground(GridCellButton, Graphics, Rectangle, ButtonState, GridStyleInfo)
Triggered when the background of the cell button is drawn.
Declaration
protected override void OnDrawCellButtonBackground(GridCellButton button, Graphics g, Rectangle rect, ButtonState buttonState, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
GridCellButton | button | Used for cell renderer. |
System.Drawing.Graphics | g | GDI+ surfaces. |
System.Drawing.Rectangle | rect | Represents the rectangle size and location. |
System.Windows.Forms.ButtonState | buttonState | Specifies the appearance of cell. |
GridStyleInfo | style | Stores information about the cell. |
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. |
OnLayout(Int32, Int32, GridStyleInfo, Rectangle, Rectangle[])
Triggered when the layout of the grid is rendered.
Declaration
protected override Rectangle OnLayout(int rowIndex, int colIndex, GridStyleInfo style, Rectangle innerBounds, Rectangle[] buttonsBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | row index value. |
System.Int32 | colIndex | column index value. |
GridStyleInfo | style | Stores the information about the cell |
System.Drawing.Rectangle | innerBounds | Represents the inner bounds of the rectangle. |
System.Drawing.Rectangle[] | buttonsBounds | Represents the bounds of the rectangle. |
Returns
Type | Description |
---|---|
System.Drawing.Rectangle | Inner bounds of the layout. |
Overrides
OnOutlineCurrentCell(Graphics, Rectangle)
Triggered when the outline of the current cell is to be drawn.
Declaration
protected override void OnOutlineCurrentCell(Graphics g, Rectangle r)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics object. |
System.Drawing.Rectangle | r | The rectangle bounds of the current cell. |
Overrides
OnPushButtonClick(Int32, Int32)
Raises PushButtonClick event when the user presses the push button.
Declaration
protected virtual void OnPushButtonClick(int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The row index of the current cell. |
System.Int32 | colIndex | The column index of the current cell. |
OnQueryShowButtons(Int32, Int32, GridStyleInfo)
Overrides and provides the information regarding the buttons to be displayed or not.
Declaration
protected override bool OnQueryShowButtons(int rowIndex, int colIndex, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The row index. |
System.Int32 | colIndex | The column index. |
GridStyleInfo | style | The Style objects which holds the style properties. |
Returns
Type | Description |
---|---|
System.Boolean | true if the buttons are visible; otherwise, false. |