System.Windows.Forms.TextBoxBase: Method Members

The methods of System.Windows.Forms.TextBoxBase are listed below. For a list of all members, see the TextBoxBase Members list.

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

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.