Class SpreadsheetCellRendererBase
Inheritance
System.Object
SpreadsheetCellRendererBase
Implements
System.IDisposable
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()
Assembly: Syncfusion.Spreadsheet.Windows.dll
public class SpreadsheetCellRendererBase : ISpreadsheetCellRenderer, IDisposable
Constructors
Declaration
public SpreadsheetCellRendererBase()
Properties
Determines whether we can edit the cell using formula bar or not
Declaration
public bool AllowEditInFormulaBar { get; set; }
Property Value
Returns the cell's row column index.
Declaration
public RowColumnIndex CurrentCellIndex { get; }
Property Value
Returns the content of the current cell element.
Declaration
public Control CurrentCellRendererElement { get; }
Property Value
Type |
System.Windows.Forms.Control |
Declaration
public IStyle CurrentStyle { get; }
Property Value
Declaration
public SpreadsheetGrid Grid { get; set; }
Property Value
Declaration
public bool HasCurrentCellState { get; }
Property Value
Declaration
public bool IsEditable { get; set; }
Property Value
Declaration
public bool IsFocused { get; set; }
Property Value
Declaration
public bool IsFocusible { get; set; }
Property Value
Declaration
public bool IsInEditing { get; set; }
Property Value
Set as true, when current cell is first time edit the text or directly edit the text if that cell is not in edit mode whether cell is empty or not empty.
And also if true, then only move the current cell when up or down key is pressed otherwise not move.
Otherwise set as false.
Declaration
protected bool MoveCurrentCell { get; set; }
Property Value
PreviewInputText
Declaration
protected dynamic PreviewInputText { get; set; }
Property Value
Methods
Declaration
public virtual bool BeginEdit(RowColumnIndex cellRowColumnIndex, SpreadsheetColumn column)
Parameters
Returns
Declaration
public virtual void ClearRecycleBin()
Declaration
protected virtual void CurrentCellValueChanged(string ChangedText)
Parameters
Type |
Name |
Description |
System.String |
ChangedText |
|
Declaration
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Declaration
public virtual bool EndEdit(RowColumnIndex cellRowColumnIndex, SpreadsheetColumn column)
Parameters
Returns
Declaration
public virtual object GetControlValue()
Returns
GetFormattedText(IStyle)
Declaration
public virtual string GetFormattedText(IStyle style)
Parameters
Type |
Name |
Description |
IStyle |
style |
|
Returns
Declaration
public virtual bool HandlePointerOperations(SpreadsheetColumn column, GridPointerEventArgs e)
Parameters
Returns
Declaration
protected virtual void OnRender(SpreadsheetPaint paint, Rectangle cellRect, Rectangle clipRect, SpreadsheetColumn column)
Parameters
Declaration
protected virtual void OnSaveChanges()
Declaration
protected virtual void OnUpdateEditElement(Control element, Rectangle rect, SpreadsheetColumn column)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Control |
element |
|
System.Drawing.Rectangle |
rect |
|
SpreadsheetColumn |
column |
|
Declaration
public void ProcessKeyEventArgs(KeyPressEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.KeyPressEventArgs |
e |
|
Declaration
public void RaiseSaveChanges()
RefreshContent()
Declaration
public virtual void RefreshContent()
Declaration
public void Render(SpreadsheetPaint paint, Rectangle cellRect, Rectangle clipRect, SpreadsheetColumn column)
Parameters
Declaration
public void ResetCurrentCellState()
Declaration
public virtual bool SetControlValue(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Declaration
public void SetCurrentCellState(RowColumnIndex currentCellIndex, Control currentCellElement, bool isInEditing, bool isFocused)
Parameters
Type |
Name |
Description |
RowColumnIndex |
currentCellIndex |
|
System.Windows.Forms.Control |
currentCellElement |
|
System.Boolean |
isInEditing |
|
System.Boolean |
isFocused |
|
Declaration
public void SetFocus(bool needToFocus)
Parameters
Type |
Name |
Description |
System.Boolean |
needToFocus |
|
Declaration
protected virtual void SetFocus(Control uiElement, bool needToFocus)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Control |
uiElement |
|
System.Boolean |
needToFocus |
|
Declaration
protected virtual bool ShouldGridTryToHandleKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.KeyEventArgs |
e |
|
Returns
Declaration
public void UnloadUIElements()
Declaration
protected void UpdateCurrentCellState(Control currentRendererElement, bool isInEdit)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Control |
currentRendererElement |
|
System.Boolean |
isInEdit |
|
Declaration
public void UpdateEditElement(Control element, Rectangle rect, SpreadsheetColumn column)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Control |
element |
|
System.Drawing.Rectangle |
rect |
|
SpreadsheetColumn |
column |
|
Explicit Interface Implementations
Declaration
bool ISpreadsheetCellRenderer.ShouldGridTryToHandleKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.KeyEventArgs |
e |
|
Returns
Implements
System.IDisposable