次の方法で共有


TextSelection.SelectAll Method

Definition

Selects the entire document.

public:
 void SelectAll();
public:
 void SelectAll();
void SelectAll();
[System.Runtime.InteropServices.DispId(47)]
public void SelectAll ();
[<System.Runtime.InteropServices.DispId(47)>]
abstract member SelectAll : unit -> unit
Public Sub SelectAll ()
Attributes

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  

Applies to