Represents a text editor.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class BaseTextBoxControlEditor : BaseInputEditor, IInputEditor, IValueEditor, ISupportInitialize
Inheritance: objectBaseInputEditorBaseTextBoxControlEditor
Derived Classes:
Implements:
Inherited Members
Constructors
Creates the editor and prevents its hosted text-box element from stretching vertically.
public BaseTextBoxControlEditor()
Fields
Indicates whether the caret was on the first line when the derived key-down hook ran.
protected bool isAtFirstLine
Indicates whether the caret was on the last line when the derived key-down hook ran.
protected bool isAtLastLine
Stores the selected text length captured before the derived key-down hook runs.
protected int selectionLength
Stores the text selection start captured before the derived key-down hook runs.
protected int selectionStart
Properties
Gets or sets whether the editor accepts Enter as a new line in multiline mode.
public bool AcceptsReturn { get; set; }
Gets or sets wheather the editor accepts tha tab key in multiline mode
public bool AcceptsTab { get; set; }
Indicates if all charactes should be left alone or converted to upper or lower case
public CharacterCasing CharacterCasing { get; set; }
Gets string, the type of values produced by this text editor.
public override Type DataType { get; }
Overrides:
Specifies the maximum length of characters which could be entered
public int MaxLength { get; set; }
The text could span more than a line when the value is true
public bool Multiline { get; set; }
Gets the hosted text-box control element used by this editor.
protected RadTextBoxControlElement TextBox { get; }
Methods
Selects and focuses the text, then subscribes to text, key, and property-change events for the edit session.
public override void BeginEdit()
Overrides:
Creates the RadTextBoxControlElement that hosts the editor's text input.
Unsubscribes edit-session handlers, clears the text and selection, and completes the base edit lifecycle.
public override bool EndEdit()
The result of the base editor's end-edit operation.
Overrides:
Provides a key-down hook after the current selection and caret-line state have been captured for derived editors.
Provides a hook invoked when the text box's focus state changes to unfocused.
protected virtual void OnLostFocus()