BaseTextBoxEditor
Represents a text editor.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class BaseTextBoxEditor : BaseInputEditor, IInputEditor, IValueEditor, ISupportInitialize
Inheritance: objectBaseInputEditorBaseTextBoxEditor
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the BaseTextBoxEditor class.
public BaseTextBoxEditor()
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:
Gets whether the value differs from its initialized value or initialization could not preserve the assigned text exactly.
public override bool IsModified { 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 specialized text-box element used by this editor, or null when its element has another type.
protected BaseTextBoxEditorElement TextBoxEditorElement { get; }
Methods
Configures and focuses the text input, selects its current text, and subscribes to edit-session events. Theme and multiline settings also determine the text item's background and vertical stretching.
public override void BeginEdit()
Overrides:
Creates the text-box element that hosts this editor's text input.
Unsubscribes edit-session handlers and clears the text and selection before completing 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 hosted text box loses focus.
protected virtual void OnLostFocus()