This documentation is archived and is not being maintained.

IVsTextLineMarker Interface

Provides access to and manipulates the positioning of a text marker within a buffer. This interface has methods to retrieve or change two-dimensional coordinates.

Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)

[InterfaceTypeAttribute(1)] 
[GuidAttribute("31E2DCA7-CCFF-4E09-B433-17C739CF69AD")] 
public interface IVsTextLineMarker : IVsTextMarker
/** @attribute InterfaceTypeAttribute(1) */ 
/** @attribute GuidAttribute("31E2DCA7-CCFF-4E09-B433-17C739CF69AD") */ 
public interface IVsTextLineMarker extends IVsTextMarker
InterfaceTypeAttribute(1) 
GuidAttribute("31E2DCA7-CCFF-4E09-B433-17C739CF69AD") 
public interface IVsTextLineMarker extends IVsTextMarker

This interface represents the marker itself. The marker is created by calling the CreateLineMarker method. The IVsTextLineMarker interface differs from IVsTextStreamMarker in that it uses two-dimensional [line, index] coordinates rather one-dimensional linear coordinates. However, IVsTextLineMarker and IVsTextStreamMarker are both implemented by the same underlying object and you can call the IUnknown::QueryInterface method between them.

A marker floats over the text region specified when it is created. If the text is deleted, the marker is deleted. If the text grows or shrinks, the marker grows or shrinks accordingly.

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

Notes to Implementers Implemented by the text marker.

Notes to Callers Called by VSPackages (or any text buffer client).

Show: