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

属性值

类型:EnvDTE.TextSelection

一个 TextSelection 对象。

权限

另请参见

参考

TextDocument 接口

TextDocument 成员

EnvDTE 命名空间

其他资源

如何:编译和运行自动化对象模型代码示例