This documentation is archived and is not being maintained.

SelectAll Method

Visual Studio .NET 2003

Selects the entire document.

[Visual Basic .NET]
Public Sub SelectAll() 
[Visual Basic 6]
Sub SelectAll() 
HRESULT __stdcall SelectAll();
public void SelectAll();
[JScript .NET]
public function SelectAll()


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)
End Sub

See Also

Applies To: TextSelection Object