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

Represents a text editor.

Definition

Constructors

Creates the editor and prevents its hosted text-box element from stretching vertically.

C#
public BaseTextBoxControlEditor()

Fields

Indicates whether the caret was on the first line when the derived key-down hook ran.

C#
protected bool isAtFirstLine

Indicates whether the caret was on the last line when the derived key-down hook ran.

C#
protected bool isAtLastLine

Stores the selected text length captured before the derived key-down hook runs.

C#
protected int selectionLength

Stores the text selection start captured before the derived key-down hook runs.

C#
protected int selectionStart

Properties

Gets or sets whether the editor accepts Enter as a new line in multiline mode.

C#
public bool AcceptsReturn { get; set; }

Gets or sets wheather the editor accepts tha tab key in multiline mode

C#
public bool AcceptsTab { get; set; }

Indicates if all charactes should be left alone or converted to upper or lower case

C#
public CharacterCasing CharacterCasing { get; set; }

Gets string, the type of values produced by this text editor.

C#
public override Type DataType { get; }

Overrides: BaseInputEditor.DataType

Specifies the maximum length of characters which could be entered

C#
public int MaxLength { get; set; }

The text could span more than a line when the value is true

C#
public bool Multiline { get; set; }

Gets or sets the null text for the editor.

C#
public string NullText { get; set; }

Gets the hosted text-box control element used by this editor.

C#
protected RadTextBoxControlElement TextBox { get; }

Gets the text-box text. Assigning a value converts it to text with ToString(object).

C#
public override object Value { get; set; }

Overrides: BaseInputEditor.Value

Methods

Selects and focuses the text, then subscribes to text, key, and property-change events for the edit session.

C#
public override void BeginEdit()

Overrides: BaseInputEditor.BeginEdit()

Creates the RadTextBoxControlElement that hosts the editor's text input.

C#
protected override RadElement CreateEditorElement()
Returns:

RadElement

Overrides: BaseInputEditor.CreateEditorElement()

Unsubscribes edit-session handlers, clears the text and selection, and completes the base edit lifecycle.

C#
public override bool EndEdit()
Returns:

bool

The result of the base editor's end-edit operation.

Overrides: BaseInputEditor.EndEdit()

Provides a key-down hook after the current selection and caret-line state have been captured for derived editors.

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

The key event data.

Provides a hook invoked when the text box's focus state changes to unfocused.

C#
protected virtual void OnLostFocus()