TextSelection.SelectAll Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Selects the entire document.
public:
void SelectAll();
public:
void SelectAll();
void SelectAll();
[System.Runtime.InteropServices.DispId(47)]
public void SelectAll ();
[<System.Runtime.InteropServices.DispId(47)>]
abstract member SelectAll : unit -> unit
Public Sub SelectAll ()
- Attributes
Examples
Sub SelectAllExample()
' Before running this example, open a text document.
Dim objSel As TextSelection = DTE.ActiveDocument.Selection
' Go to first line in document and select it.
objSel.GotoLine(1, True)
objSel.SelectAll()
End Sub