TextSelection.SelectAll 方法

定义

选择整个文档。

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 ()
属性

示例

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  

适用于