Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

TextSelection.SelectAll Method

Selects the entire document.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

void 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)
   objSel.SelectAll()
End Sub

Community Additions

ADD
Show:
© 2015 Microsoft