System.Windows.Forms.TextBoxBase Members

The members of System.Windows.Forms.TextBoxBase are listed below.

See Also: Inherited members from System.Windows.Forms.Control

Public Properties

AcceptsTabbool.

Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order.

override
AutoSizebool.

Gets or sets a value indicating whether the height of the control automatically adjusts when the font assigned to the control is changed.

override
BackColorSystem.Drawing.Color.

Gets or sets the background color of the control.

override
BackgroundImageSystem.Drawing.Image.

This property is not relevant for this class.

override
BackgroundImageLayoutImageLayout.

This property is not relevant for this class.

BorderStyleBorderStyle.

Gets or sets the border type of the text box control.

[read-only]
CanUndobool.

Gets a value indicating whether the user can undo the previous operation in a text box control.

override
ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the control.

HideSelectionbool.

Gets or sets a value indicating whether the selected text in the text box control remains highlighted when the control loses focus.

Linesstring[].

Gets or sets the lines of text in a text box control.

MaxLengthint.

Gets or sets the maximum number of characters the user can type or paste into the text box control.

Modifiedbool.

Gets or sets a value that indicates that the text box control has been modified by the user since the control was created or its contents were last set.

Multilinebool.

Gets or sets a value indicating whether this is a multiline text box control.

PaddingPadding.

This property is not relevant for this class.

[read-only]
PreferredHeightint.

Gets the preferred height for a text box.

ReadOnlybool.

Gets or sets a value indicating whether text in the text box is read-only.

SelectedTextstring.

Gets or sets a value indicating the currently selected text in the control.

SelectionLengthint.

Gets or sets the number of characters selected in the text box.

SelectionStartint.

Gets or sets the starting point of text selected in the text box.

ShortcutsEnabledbool.

Gets or sets a value indicating whether the defined shortcuts are enabled.

override
Textstring.

Gets or sets the current text in the text box.

[read-only]
TextLengthint.

Gets the length of text in the control.

WordWrapbool.

Indicates whether a multiline text box control automatically wraps words to the beginning of the next line when necessary.

Protected Properties

[read-only]
override
CanEnableImebool.

Gets a value indicating whether the Control.ImeMode property can be set to an active value, to enable IME support.

[read-only]
override
CreateParamsCreateParams. Documentation for this section has not yet been entered.
[read-only]
override
DefaultCursorCursor.

Gets or sets the default cursor for the control.

[read-only]
override
DefaultSizeSystem.Drawing.Size. Documentation for this section has not yet been entered.
override
DoubleBufferedbool.

Gets or sets a value indicating whether control drawing is done in a buffer before the control is displayed. This property is not relevant for this class.

Public Methods

AppendText(string)

Appends text to the current text of a text box.

Clear()

Clears all text from the text box control.

ClearUndo()

Clears information about the most recent operation from the undo buffer of the text box.

Copy()

Copies the current selection in the text box to the Clipboard.

Cut()

Moves the current selection in the text box to the Clipboard.

DeselectAll()

Specifies that the value of the TextBoxBase.SelectionLength property is zero so that no characters are selected in the control.

GetCharFromPosition(System.Drawing.Point) : char

Retrieves the character that is closest to the specified location within the control.

GetCharIndexFromPosition(System.Drawing.Point) : int

Retrieves the index of the character nearest to the specified location.

GetFirstCharIndexFromLine(int) : int

Retrieves the index of the first character of a given line.

GetFirstCharIndexOfCurrentLine() : int

Retrieves the index of the first character of the current line.

GetLineFromCharIndex(int) : int

Retrieves the line number from the specified character position within the text of the control.

GetPositionFromCharIndex(int) : System.Drawing.Point

Retrieves the location within the control at the specified character index.

Paste()

Replaces the current selection in the text box with the contents of the Clipboard.

ScrollToCaret()

Scrolls the contents of the control to the current caret position.

Select(int, int)

Selects a range of text in the text box.

SelectAll()

Selects all text in the text box.

override
ToString() : string

Returns a string that represents the System.Windows.Forms.TextBoxBase control.

Undo()

Undoes the last edit operation in the text box.

Protected Methods

override
CreateHandle()
Documentation for this section has not yet been entered.
override
IsInputKey(Keys) : bool

Determines whether the specified key is an input key or a special key that requires preprocessing.

OnAcceptsTabChanged(EventArgs)

Raises the TextBoxBase.AcceptsTabChanged event.

OnAutoSizeChanged(EventArgs)
Documentation for this section has not yet been entered.
OnBorderStyleChanged(EventArgs)

Raises the TextBoxBase.BorderStyleChanged event.

override
OnFontChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnHandleCreated(EventArgs)
Documentation for this section has not yet been entered.
override
OnHandleDestroyed(EventArgs)
Documentation for this section has not yet been entered.
OnHideSelectionChanged(EventArgs)

Raise the TextBoxBase.HideSelectionChanged event.

OnModifiedChanged(EventArgs)

Raises the TextBoxBase.ModifiedChanged event.

override
OnMouseUp(MouseEventArgs)

Raises the Control.MouseUp event.

OnMultilineChanged(EventArgs)

Raises the TextBoxBase.MultilineChanged event.

override
OnPaddingChanged(EventArgs)

This method is not relevant for this class.

OnReadOnlyChanged(EventArgs)

Raises the TextBoxBase.ReadOnlyChanged event.

override
OnTextChanged(EventArgs)
Documentation for this section has not yet been entered.
override
ProcessCmdKey(ref Message, Keys) : bool
Documentation for this section has not yet been entered.
override
ProcessDialogKey(Keys) : bool
Documentation for this section has not yet been entered.
override
SetBoundsCore(int, int, int, int, BoundsSpecified)

Sets the specified bounds of the System.Windows.Forms.TextBoxBase control.

override
WndProc(ref Message)
Documentation for this section has not yet been entered.

Public Events

AcceptsTabChanged

Occurs when the value of the TextBoxBase.AcceptsTab property has changed.

AutoSizeChanged

This event is not relevant for this class.

BackgroundImageChanged

Occurs when the value of the TextBoxBase.BackgroundImage property changes. This event is not relevant for this class.

BackgroundImageLayoutChanged

Occurs when the value of the TextBoxBase.BackgroundImageLayout property changes. This event is not relevant for this class.

BorderStyleChanged

Occurs when the value of the TextBoxBase.BorderStyle property has changed.

Click

Occurs when the text box is clicked.

HideSelectionChanged

Occurs when the value of the TextBoxBase.HideSelection property has changed.

ModifiedChanged

Occurs when the value of the TextBoxBase.Modified property has changed.

MouseClick

Occurs when the control is clicked by the mouse.

MultilineChanged

Occurs when the value of the TextBoxBase.Multiline property has changed.

PaddingChanged

This event is not relevant for this class.

Paint

Occurs when the control is redrawn. This event is not relevant for this class.

ReadOnlyChanged

Occurs when the value of the TextBoxBase.ReadOnly property has changed.