共用方式為


ITextView.GotAggregateFocus 事件

在鍵盤焦點切換至檢視或其裝飾之一時發生。

命名空間:  Microsoft.VisualStudio.Text.Editor
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

'宣告
Event GotAggregateFocus As EventHandler
event EventHandler GotAggregateFocus
event EventHandler^ GotAggregateFocus {
    void add (EventHandler^ value);
    void remove (EventHandler^ value);
}
abstract GotAggregateFocus : IEvent<EventHandler,
    EventArgs>
JScript 不支援事件。

備註

所呈現的文字顯示在文字檢視的變更時,會引發這個事件。 文字檢視變更時的檢視不會有版面配置 (當DisplayTextLineContainingBufferPosition呼叫),或回應文字或分類的變更。 它也會引發檢視水平捲動時,或它的大小變更時。

.NET Framework 安全性

請參閱

參考

ITextView 介面

Microsoft.VisualStudio.Text.Editor 命名空間