Class GridImageCellRenderer
Implements the renderer part of an image cell.
Inheritance
System.Object
GridImageCellRenderer
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.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridImageCellRenderer : GridStaticCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Remarks
There can be several renderers associated with one GridImageCellModel if several views display the same GridModel.
Constructors
GridImageCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new instance of the GridImageCellRenderer class for the given instance of the GridControlBase class. and an instance of GridCellModelBase class.
Declaration
public GridImageCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The GridControlBase that display this cell renderer. |
GridCellModelBase | cellModel | The GridCellModelBase that holds data for this cell renderer that should be shared among views. |
Remarks
References to GridControlBase, and GridCellModelBase will be saved.
Methods
OnDraw(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
Draw the image in a cell.
Declaration
protected override void OnDraw(Graphics g, Rectangle clientRectangle, int rowIndex, int colIndex, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | clientRectangle | |
System.Int32 | rowIndex | |
System.Int32 | colIndex | |
GridStyleInfo | style |
Overrides
Implements
System.IDisposable