Class OleContainerCellRenderer
Implements a cell renderer for the OleContainerCell.
Inheritance
System.Object
OleContainerCellRenderer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class OleContainerCellRenderer : GridGenericControlCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
OleContainerCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new instance of the OleContainerCellRenderer class.
Declaration
public OleContainerCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The GridControlBase to add cell model. |
GridCellModelBase | cellModel | The GridCellModelBase. |
Methods
OnClick(Int32, Int32, MouseEventArgs)
Action performed while clicking on the cell.
Declaration
protected override void OnClick(int rowIndex, int colIndex, MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row Index of a cell. |
System.Int32 | colIndex | Column Index of a cell. |
System.Windows.Forms.MouseEventArgs | e | The System.Windows.Forms.MouseEventArgs that contains the event data. |
Overrides
OnDraw(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
Overridden to draw the PictureBox.
Declaration
protected override void OnDraw(Graphics g, Rectangle clientRectangle, int rowIndex, int colIndex, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The graphics of a cell. |
System.Drawing.Rectangle | clientRectangle | Cell rectangle. |
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
GridStyleInfo | style | Cell style. |
Overrides
OnGetCursor(Int32, Int32)
Gets the cursor in the grid.
Declaration
protected override Cursor OnGetCursor(int rowIndex, int colIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
Returns
Type | Description |
---|---|
System.Windows.Forms.Cursor | Cursor type. |
Overrides
OnLayout(Int32, Int32, GridStyleInfo, Rectangle, Rectangle[])
Overridden to inflate the bound.
Declaration
protected override Rectangle OnLayout(int rowIndex, int colIndex, GridStyleInfo style, Rectangle innerBounds, Rectangle[] buttonsBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
GridStyleInfo | style | Cell style. |
System.Drawing.Rectangle | innerBounds | Rectangle of a cell. |
System.Drawing.Rectangle[] | buttonsBounds | Bounds of a button in a cell. |
Returns
Type | Description |
---|---|
System.Drawing.Rectangle | Inflated bounds. |
Overrides
Implements
System.IDisposable