Class PictureBoxCellRenderer
Implements a cell renderer for PictureBox cell.
Inheritance
System.Object
PictureBoxCellRenderer
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 PictureBoxCellRenderer : GridGenericControlCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
PictureBoxCellRenderer(GridControlBase, GridCellModelBase)
Initializes a new instance of the PictureBoxCellRenderer class.
Declaration
public PictureBoxCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The grid control. |
GridCellModelBase | cellModel | The cell model. |
Methods
Dispose(Boolean)
Destroys the object.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Indicates whether picture box should be disposed. |
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
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