System.Windows.Forms.ToolStripTextBox: Method Members

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

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

Public Methods

AppendText(string)

Appends text to the current text of the System.Windows.Forms.ToolStripTextBox.

Clear()

Clears all text from the System.Windows.Forms.ToolStripTextBox control.

ClearUndo()

Clears information about the most recent operation from the undo buffer of the System.Windows.Forms.ToolStripTextBox.

Copy()

Copies the current selection in the System.Windows.Forms.ToolStripTextBox to the Clipboard.

Cut()

Moves the current selection in the System.Windows.Forms.ToolStripTextBox to the Clipboard.

DeselectAll()

Specifies that the value of the ToolStripTextBox.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.

override
GetPreferredSize(System.Drawing.Size) : System.Drawing.Size
Documentation for this section has not yet been entered.
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.

Undo()

Undoes the last edit operation in the text box.

Protected Methods