TextSelection.SelectAll 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
选择整个文档。
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