SelectAll Method
Visual Studio .NET 2003
Selects the entire document.
[Visual Basic .NET]
Public Sub SelectAll()
[Visual Basic 6]
Sub SelectAll()
[C++]
HRESULT __stdcall SelectAll();
[C#]
public void SelectAll();
[JScript .NET]
public function SelectAll()
Example
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
See Also
Applies To: TextSelection Object