New to Telerik UI for WinForms? Start a free 30-day trial

Provides TreeView-specific keyboard and focus behavior for text editing in a node.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class TreeViewTextBoxEditor : BaseTextBoxEditor, IInputEditor, IValueEditor, ISupportInitialize

Inheritance: objectBaseInputEditorBaseTextBoxEditorTreeViewTextBoxEditor

Implements: IInputEditorISupportInitializeIValueEditor

Inherited Members BaseTextBoxEditor.selectionStartBaseTextBoxEditor.selectionLengthBaseTextBoxEditor.isAtFirstLineBaseTextBoxEditor.isAtLastLineBaseTextBoxEditor.CreateEditorElement()BaseTextBoxEditor.Initialize(object, object)BaseTextBoxEditor.BeginEdit()BaseTextBoxEditor.EndEdit()BaseTextBoxEditor.ValueBaseTextBoxEditor.NullValueBaseTextBoxEditor.CharacterCasingBaseTextBoxEditor.MultilineBaseTextBoxEditor.MaxLengthBaseTextBoxEditor.AcceptsTabBaseTextBoxEditor.AcceptsReturnBaseTextBoxEditor.TextBoxEditorElementBaseTextBoxEditor.DataTypeBaseTextBoxEditor.IsModifiedBaseInputEditor.isInitializingBaseInputEditor.originalValueBaseInputEditor.Validate()BaseInputEditor.BeginInit()BaseInputEditor.EndInit()BaseInputEditor.OnValueChanging(ValueChangingEventArgs)BaseInputEditor.OnValueChanged()BaseInputEditor.OnValidating(CancelEventArgs)BaseInputEditor.OnValidated()BaseInputEditor.OnValidationError(ValidationErrorEventArgs)BaseInputEditor.IsActiveBaseInputEditor.IsInitalizingBaseInputEditor.IsInBeginEditModeBaseInputEditor.OwnerElementBaseInputEditor.RightToLeftBaseInputEditor.EditorManagerBaseInputEditor.EditorElementBaseInputEditor.ValueChangingBaseInputEditor.ValueChangedBaseInputEditor.ValidatingBaseInputEditor.ValidatedBaseInputEditor.ValidationError...

Constructors

C#
public TreeViewTextBoxEditor()

Methods

Commits with Enter, cancels with Escape, and forwards Up/Down at the editor boundary to tree navigation.

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

The key event data.

Overrides: BaseTextBoxEditor.OnKeyDown(KeyEventArgs)

For multiline text, Up/Down is forwarded only when no text is selected and the caret is on the first or last line, respectively.

Ends node editing when focus leaves the tree control, unless the row is invalid or an edit is already ending.

C#
protected override void OnLostFocus()

Overrides: BaseTextBoxEditor.OnLostFocus()