ITextSelection.SelectionChanged 事件

出现问题,则选中或清除调用,以及,如果选定内容为空,并插入符号移动。 事件发送方的是此 ITextSelection

命名空间:  Microsoft.VisualStudio.Text.Editor
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

声明
Event SelectionChanged As EventHandler
event EventHandler SelectionChanged
event EventHandler^ SelectionChanged {
    void add (EventHandler^ value);
    void remove (EventHandler^ value);
}
abstract SelectionChanged : IEvent<EventHandler,
    EventArgs>
JScript 不支持事件。

备注

此事件不会引发,如果选定缩小或增大,因为其关联的大小缩小或增大。

一个空选择的位置是插入符号的位置。

.NET Framework 安全性

请参阅

参考

ITextSelection 接口

Microsoft.VisualStudio.Text.Editor 命名空间