Freigeben über


IVsTextManagerEvents Interface

Definition

Informs users about changes in the text manager.

public interface class IVsTextManagerEvents
public interface class IVsTextManagerEvents
__interface IVsTextManagerEvents
[System.Runtime.InteropServices.Guid("B3175059-C6AA-4519-86C3-1FE594D26C35")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsTextManagerEvents
[System.Runtime.InteropServices.Guid("B3175059-C6AA-4519-86C3-1FE594D26C35")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsTextManagerEvents
[<System.Runtime.InteropServices.Guid("B3175059-C6AA-4519-86C3-1FE594D26C35")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsTextManagerEvents = interface
[<System.Runtime.InteropServices.Guid("B3175059-C6AA-4519-86C3-1FE594D26C35")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsTextManagerEvents = interface
Public Interface IVsTextManagerEvents
Attributes

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.

Methods

OnRegisterMarkerType(Int32)

Fired when an external marker type is registered.

OnRegisterView(IVsTextView)

Fires when a view is registered.

OnUnregisterView(IVsTextView)

Fires when a view is unregistered.

OnUserPreferencesChanged(VIEWPREFERENCES[], FRAMEPREFERENCES[], LANGPREFERENCES[], FONTCOLORPREFERENCES[])

Fires when the user's global preferences are changed.

Applies to