IVsTextManagerEvents Interface

Informs users about changes in the text manager.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
<GuidAttribute("B3175059-C6AA-4519-86C3-1FE594D26C35")> _
<InterfaceTypeAttribute()> _
Public Interface IVsTextManagerEvents
[GuidAttribute("B3175059-C6AA-4519-86C3-1FE594D26C35")]
[InterfaceTypeAttribute()]
public interface IVsTextManagerEvents
[GuidAttribute(L"B3175059-C6AA-4519-86C3-1FE594D26C35")]
[InterfaceTypeAttribute()]
public interface class IVsTextManagerEvents
[<GuidAttribute("B3175059-C6AA-4519-86C3-1FE594D26C35")>]
[<InterfaceTypeAttribute()>]
type IVsTextManagerEvents =  interface end
public interface IVsTextManagerEvents

The IVsTextManagerEvents type exposes the following members.

Methods

  Name Description
Public method OnRegisterMarkerType Fired when an external marker type is registered.
Public method OnRegisterView Fires when a view is registered.
Public method OnUnregisterView Fires when a view is unregistered.
Public method OnUserPreferencesChanged Fires when the user's global preferences are changed.

Top

Remarks

There is one text manager in the environment. The text manager manages all of the text buffers that are active at any given point, all of the user settings for the different languages, and any other global preferences related to the core text editor. Implement IVsTextManagerEvents to receive notification of changes to these global settings. Expose this interface to the text manager using the IConnectionPointContainer interface on the text manager to receive notification of line changes from the buffer.

See illustrations of the implementation and/or calling of this interface in the samples Figures Edit and Figures Language Service.

Notes to Implementers

Implement this interface to receive event notification from the text manager.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace