In This Topic
For a list of all members of this type, see NTextBox members.
Public Methods
| Name | Description |
| CanCopy | Determines whether the copy operation will place anything on the clipboard. |
| CanCut | Determines whether the cut operation will place anything on the clipboard. |
| CanPaste | Determines whether the paste operation can be performed |
| Copy | Copies the selected text to the clipboard. Returns true if any text has been set to the clipboard, otherwise returns false. |
| Cut | Cuts (removes) the selected text, and places it on the clipbard. Returns true if any text has been set to the clipboard, otherwise returns false. |
| DeselectAll | Deselects the selected text, if any |
| EnsureCaretVisible | Ensures that the caret is visible |
| GetCaretPos | Gets the current caret position. |
| InsertReplaceChar | Inserts a character at the current caret position and positions the caret on the next grapheme. If there is a selected text, it is first removed. |
| InsertReplaceText | Inserts text at the current caret position and positions the caret to the end of the inserted text. If there is a selected text, it is first removed. |
| InvalidateMeasure | Overridden. Invalidates the element measure and pools the element for measure validation. |
| IsSelectedRangeEmpty | Returns true, if the text box currently does not have any text selected. |
| MoveCaret | Overloaded. Moves the caret in the specified direction. Resets the selection. |
| Paste | Pastes text from the clipboard and performs an insert-replace text operation. Returns true if any text has been pasted from the clipboard, otherwise returns false. |
| Redo | Redos the last user operation |
| RemoveSelectedText | Removes the currently selected text and positions the caret to the removed range begin. If there is no selection, this method does nothing and returns false. |
| SelectAll | Selects the entire text of the text box |
| SelectRange | Selects the text from the char at index start to the char at index end (i.e. the text in the [start;end] range. |
| SetCaretPos | Overloaded. Sets the caret position. Resets the selection. Updates the caret XGuideCaretPos position. |
| TryGetSelectedRange | Tries to get the selected text of the text. The returned 1D range is valid only when this method returns true. |
| TryGetSelectedText | Tries to get the selected text of the text box. The returned text string is valid only when this method returns true. |
| Undo | Undos the last user operation |
| VisitChildDisplaySubtree | Overridden. Called to propagate the display traversal to the specified child node. This implementation directly calls the VisitDisplaySubtree method of the child node. |
Top
Protected Methods
See Also