New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class CellEditorBase : ContentControl, ICellEditor, ICommandDescriptorsProvider

Inheritance: objectCellEditorBase

Derived Classes: FormulaBarFunctionEditorCellEditor

Implements: ICellEditorICommandDescriptorsProvider

Constructors

Initializes a new instance of the CellEditorBase class.

C#
public CellEditorBase()

Properties

Gets the command descriptors.

C#
public CommandDescriptors CommandDescriptors { get; }
Property Value:

The command descriptors.

Implements: ICommandDescriptorsProvider.CommandDescriptors

Gets the commands.

C#
public CellEditorCommands Commands { get; }
Property Value:

The commands.

Gets or sets the text.

C#
public string Text { get; set; }
Property Value:

The text value.

Implements: ICellEditor.Text

Methods

Copies the selected text.

C#
public void Copy()

Cuts the selected text.

C#
public void Cut()

Focuses this instance.

C#
public bool Focus()
Returns:

bool

True if succeed.

Implements: ICellEditor.Focus()

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

C#
public void Insert(string text)
Parameters:textstring

The text to be inserted.

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.

C#
public override void OnApplyTemplate()

Called before the event occurs.

C#
protected override void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

The data for the event.

Called when the text is changed.

C#
protected virtual void OnTextChanged()

Pastes the copied text.

C#
public void Paste()

Selects the entire contents.

C#
public void SelectAll()

Implements: ICellEditor.SelectAll()

Events

Occurs when the selection is changed.

C#
public event EventHandler SelectionChanged

Implements: ICellEditor.SelectionChanged

Occurs when text content changes.

C#
public event EventHandler TextChanged

Implements: ICellEditor.TextChanged