Compartilhar via


ITextView.GotAggregateFocus Event

Occurs when the keyboard focus switches to the view or one of its adornments.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Event GotAggregateFocus As EventHandler
event EventHandler GotAggregateFocus
event EventHandler^ GotAggregateFocus {
    void add (EventHandler^ value);
    void remove (EventHandler^ value);
}
abstract GotAggregateFocus : IEvent<EventHandler,
    EventArgs>
JScript does not support events.

Remarks

This event is raised whenever the rendered text displayed in the text view changes. The text view changes whenever the view does a layout (when DisplayTextLineContainingBufferPosition is called), or in response to text or classification changes. It is also raised when the view scrolls horizontally, or when its size changes.

.NET Framework Security

See Also

Reference

ITextView Interface

Microsoft.VisualStudio.Text.Editor Namespace