Cut
Run
Expand Minimize
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.