Class GridProgressBarCellRenderer
Represents the class that used for drawing the Progress Bar cell.
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)
System.Object.ToString()
Namespace: Syncfusion.WinForms.DataGrid.Renderers
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class GridProgressBarCellRenderer : GridCellRendererBase, IGridCellRenderer<TableControl>, IDisposable
Constructors
GridProgressBarCellRenderer(ProgressBarAdv)
Initializes a new instance of the GridProgressBarCellRenderer class.
Declaration
public GridProgressBarCellRenderer(ProgressBarAdv progressBar)
Parameters
Type | Name | Description |
---|---|---|
ProgressBarAdv | progressBar | The instance of the Progress bar |
Properties
ProgressBar
Gets the ProgressBarAdv control used to draw the progress bar.
Declaration
protected ProgressBarAdv ProgressBar { get; }
Property Value
Type |
---|
ProgressBarAdv |
Methods
OnKeyDown(DataColumnBase, RowColumnIndex, KeyEventArgs)
Occurs when the key is pressed while the cell has focus.
Declaration
protected override void OnKeyDown(DataColumnBase dataColumn, RowColumnIndex rowColumnIndex, KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | The DataColumnBase of the cell. |
RowColumnIndex | rowColumnIndex | The row and column index of the cell. |
System.Windows.Forms.KeyEventArgs | e | The System.Windows.Forms.KeyEventArgs that contains the event data. |
Overrides
OnRender(Graphics, Rectangle, String, CellStyleInfo, DataColumnBase, RowColumnIndex)
Overridden to draw the Progress bar of the cell.
Declaration
protected override void OnRender(Graphics paint, Rectangle cellRect, string cellValue, CellStyleInfo style, DataColumnBase column, RowColumnIndex rowColumnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | paint | The System.Drawing.Graphics that used to draw the Progress bar. |
System.Drawing.Rectangle | cellRect | The cell rectangle. |
System.String | cellValue | The cell value. |
CellStyleInfo | style | The CellStyleInfo of the cell. |
DataColumnBase | column | The DataColumnBase of the cell. |
RowColumnIndex | rowColumnIndex | The row and column index of the cell. |
Overrides
Implements
System.IDisposable