Partager via


IVsTextLayerEvents Interface

Notifies a client that a layer's coordinate mapping is changing.

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

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("CDE3413A-AD8E-495F-A74F-760547294A6F")> _
Public Interface IVsTextLayerEvents
[InterfaceTypeAttribute()]
[GuidAttribute("CDE3413A-AD8E-495F-A74F-760547294A6F")]
public interface IVsTextLayerEvents
[InterfaceTypeAttribute()]
[GuidAttribute(L"CDE3413A-AD8E-495F-A74F-760547294A6F")]
public interface class IVsTextLayerEvents
[<InterfaceTypeAttribute()>]
[<GuidAttribute("CDE3413A-AD8E-495F-A74F-760547294A6F")>]
type IVsTextLayerEvents =  interface end
public interface IVsTextLayerEvents

The IVsTextLayerEvents type exposes the following members.

Methods

  Name Description
Public method OnMappingChange Fires to notify client to convert all of its local coordinates to base buffer coordinates.
Public method OnMappingChangeComplete Fires to notify client to convert to the new local coordinates.

Top

Remarks

Sizing the window changes the word-wrap layer's mapping. The view synchronizes these events to maintain the selection. A client will generally convert all of its local coordinates to base buffer coordinates in OnMappingChange then convert to the new local coordinates in OnMappingChangeComplete. IVsTextLayerEvents are purely changes in coordinate mapping. If there is a change in the data, the layer should fire OnChangeLineText.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace