Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TextSelection.SelectAll Method

Selects the entire document.

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

void SelectAll ()
void SelectAll ()
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)
   objSel.SelectAll()
End Sub
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.