TextSelection.SelectAll Method
Selects the entire document.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Sub SelectAll
void SelectAll()
void SelectAll()
abstract SelectAll : unit -> unit
function SelectAll()
Examples
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.