Edit this page

Properties

Property Description
ListElement Gets the auto-complete list element.
UseSystemPasswordChar Gets or sets a value indicating whether the text in view should appear as the default password character.
PasswordChar Gets or sets the character used to mask characters of a password in a single-line
HideSelection Gets or sets a value indicating whether the selected text in the text box control remains highlighted when the element loses focus.
CaretIndex Gets or sets the caret position.
SelectionLength Gets or sets the number of characters selected in the text box.
TextLength The length of the text.
MaxLength Gets or sets the maximum number of characters the user can type or paste into the text box element.
Text Gets or sets the current text in the text box element.
NullText Gets or sets the prompt text that is displayed when the text box contains no text.
NullTextColor Gets or sets the color of the null text.
TextAlign Gets or sets how the text is horizontally aligned in the element.
Lines Gives access to the lines collection
SelectedText Gets or sets a value indicating the currently selected text in the text box.
AcceptsTab Gets or sets a value indicating whether pressing the TAB key in a multiline text box element types a TAB character in the element instead of moving the focus to the next element in the tab order.
AcceptsReturn Gets or sets a value indicating whether pressing ENTER in a multiline TextBox control creates a new line of text in the control or activates the default button for the form.
Multiline Gets or sets a value indicating whether this is a multiline text box.
WordWrap Indicates whether a multiline text box control automatically wraps words to the beginning of the next line when necessary.
SelectionColor Gets or sets the color of the selection.
SelectionOpacity Gets or sets the selection opacity.
IsReadOnly Gets or sets a value indicating whether text in the text box is read-only.
IsReadOnlyCaretVisible Gets or sets a value indicating whether the caret is visible in read only mode.
ShowClearButton Gets or sets a value indicating whether the clear button is shown.

Since R1 2017 RadTextBoxControl can show a clear button when there is some text in the editor. This is controlled by the ShowClearButton property.

editors-textboxcontrol-properties 001

Events

Event Description
SelectionChanging Occurs when text selection is changing.
SelectionChanged Occurs when text selection is changed.
TextChanging Occurs when the text is changing.
TextBlockFormatting Use this event to change the styles of the words.
CreateTextBlock Occurs when an instance of ITextBlock instance is created.
ContextMenuOpening Occurs before the default context menu is opened.

See Also