Class
CellEditorBase

Provides the base class from which the classes that represent cell editors are derived.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Worksheets

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public class CellEditorBase : ContentControl, ICellEditor, ICommandDescriptorsProvider

Inheritance: objectCellEditorBase

Derived Classes: FormulaBarFunctionEditorCellEditor

Implements: ICellEditorICommandDescriptorsProvider

Constructors

CellEditorBase()

Initializes a new instance of the CellEditorBase class.

Declaration

cs-api-definition
public CellEditorBase()

Properties

CommandDescriptors

Gets the command descriptors.

Declaration

cs-api-definition
public CommandDescriptors CommandDescriptors { get; }

Property Value

CommandDescriptors

The command descriptors.

Implements ICommandDescriptorsProvider.CommandDescriptors

Commands

Gets the commands.

Declaration

cs-api-definition
public CellEditorCommands Commands { get; }

Property Value

CellEditorCommands

The commands.

Text

Gets or sets the text.

Declaration

cs-api-definition
public string Text { get; set; }

Property Value

string

The text value.

Implements ICellEditor.Text

Methods

Copy()

Copies the selected text.

Declaration

cs-api-definition
public void Copy()

Cut()

Cuts the selected text.

Declaration

cs-api-definition
public void Cut()

Focus()

Focuses this instance.

Declaration

cs-api-definition
public bool Focus()

Returns

bool

True if succeed.

Implements ICellEditor.Focus()

Insert(string)

Inserts the specified text at the current caret position. The caret position moves after the inserted text.

Declaration

cs-api-definition
public void Insert(string text)

Parameters

text

string

The text to be inserted.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnKeyDown(KeyEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

The data for the event.

OnTextChanged()

Called when the text is changed.

Declaration

cs-api-definition
protected virtual void OnTextChanged()

Paste()

Pastes the copied text.

Declaration

cs-api-definition
public void Paste()

SelectAll()

Selects the entire contents.

Declaration

cs-api-definition
public void SelectAll()

Implements ICellEditor.SelectAll()

Events

SelectionChanged

Occurs when the selection is changed.

Declaration

cs-api-definition
public event EventHandler SelectionChanged

Event Value

EventHandler

Implements ICellEditor.SelectionChanged

TextChanged

Occurs when text content changes.

Declaration

cs-api-definition
public event EventHandler TextChanged

Event Value

EventHandler

Implements ICellEditor.TextChanged