IVsTextMarker Interface

Provides methods for managing text markers.

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


<InterfaceTypeAttribute()> _
<GuidAttribute("950122D9-1A51-43CA-8CED-B5D9E42DE1B5")> _
Public Interface IVsTextMarker
Dim instance As IVsTextMarker
public interface IVsTextMarker
public interface class IVsTextMarker
type IVsTextMarker =  interface end
public interface IVsTextMarker


The text marker tracks edits in its owning text buffer and maintains the position data so that interested parties can query the new position information post-edit.


If any part of the text range specified in the text marker is involved in an edit, the marker becomes invalid.

There are several ways that you can access IVsTextMarker:

See illustrations of the calling of this interface in the sample Figures Language Service.

Notes to Callers

Call IVsTextMarker when you need to track positional and edit information in the text buffer.

See Also


IVsTextMarker Members

Microsoft.VisualStudio.TextManager.Interop Namespace