Share via


4.816 TextBoxBase

x:Object > DependencyObject > Visual > UIElement > FrameworkElement > Control > TextBoxBase, IInputElement

RichTextBox TextBox

(usage)

None.

(description)

A base type that provides functionality for text editing controls.

[is default constructible]

false

[name property]

Name

[xml lang property]

Language

(properties)

AcceptsReturn

x:Boolean

(description)

A value that indicates how the text editing control responds when the user presses the ENTER key.

AcceptsTab

x:Boolean

(description)

A value that indicates how the text editing control responds when the user presses the TAB key.

AutoWordSelection

x:Boolean

(description)

A value that determines whether when a user selects part of a word by dragging across it with the mouse, the rest of the word is selected.

CaretBrush (4)

Brush

(description)

The brush that is used to paint the caret of the text box.

HorizontalScrollBarVisibility

ScrollBarVisibility

(description)

A value that indicates whether a horizontal scroll bar is shown.

IsReadOnly

x:Boolean

(description)

A value that indicates whether the text editing control is read-only to a user interacting with the control.

IsReadOnlyCaretVisible (4)

x:Boolean

(description)

A value that indicates whether a read-only text box displays a caret.

IsUndoEnabled

x:Boolean

(description)

A value that indicates whether undo support is enabled for the text-editing control.

SelectionBrush (4)

Brush

(description)

The brush that highlights selected text.

SelectionOpacity (4)

x:Double

(description)

The opacity of the SelectionBrush.

UndoLimit

x:Int32

(description)

The number of actions stored in the undo queue.

VerticalScrollBarVisibility

ScrollBarVisibility

(description)

A value that indicates whether a vertical scroll bar is shown.

(events)

SelectionChanged

Occurs when the text selection has changed.

TextChanged

Occurs when content changes in the text element.