TextDocument.Selection 属性
更新:2007 年 11 月
获取表示 TextDocument 对象上当前选定内容的对象。
命名空间: EnvDTE
程序集: EnvDTE(在 EnvDTE.dll 中)
语法
声明
ReadOnly Property Selection As TextSelection
用法
Dim instance As TextDocument
Dim value As TextSelection
value = instance.Selection
TextSelection Selection { get; }
property TextSelection^ Selection {
TextSelection^ get ();
}
function get Selection () : TextSelection
属性值
一个 TextSelection 对象。
权限
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。