TextBox


Summary

Represents the text box class.

Syntax

public class TextBox : Control

Members

NameTypeSummary
AcceptsReturn PropertyGets or sets a value that indicates how the text editing control responds when the user presses the ENTER key.
AcceptsTab PropertyGets or sets a value that indicates how the text editing control responds when the user presses the TAB key.
BorderColor PropertyGets or sets the color of the text box border.
BorderThickness PropertyGets or sets the border thickness. Property value can be set using Thickness, number, or a string new Thickness(5), new Thickness(1, 2, 3, 4), 5, "5", "1 2 3 4".
CaretColor PropertyGets or sets the color of the insertion caret.
CharacterCasing PropertyGets or sets whether the TextBox control modifies the case of characters as they are typed.
HorizontalScrollBarVisibility PropertyDefines the horizontal scroll bar visibility.
IsReadOnly PropertyGets or sets a value indicating whether the current text box is read-only.
IsReadOnlyCaretVisible PropertyGets or sets a value that indicates whether a read-only text box displays a caret.
MaxLength PropertyGets or sets the maximum number of characters that can be manually entered into the text box.
MaxLines PropertyGets or sets the maximum number of visible lines.
MinLines PropertyGets or sets the minimum number of visible lines.
SelectionColor PropertyGets or sets the text color of the current text selection.
SelectionOpacity PropertyGets or sets the opacity of the selected text.
Text PropertyGets or sets the text.
TextAlignment PropertyGets or sets a value that indicates the horizontal alignment of text content.
TextBox MethodInitializes a new instance of the TextBox class.
TextChanged EventOccurs when the text has changed.
TextWrapping PropertyGets or sets how the text box should wrap text.
VerticalScrollBarVisibility PropertyDefines the vertical scroll bar visibility.
Reference