This topic has not yet been rated - Rate this topic

IVsTextStreamMarker Interface

Provides access to and manipulates the position of a text marker in the text buffer. This interface has methods to retrieve of change one-dimensional, streaming coordinates.

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

[InterfaceTypeAttribute(1)] 
[GuidAttribute("10D17872-91BA-4D65-80CC-E5FC3222AC82")] 
public interface IVsTextStreamMarker : IVsTextMarker
/** @attribute InterfaceTypeAttribute(1) */ 
/** @attribute GuidAttribute("10D17872-91BA-4D65-80CC-E5FC3222AC82") */ 
public interface IVsTextStreamMarker extends IVsTextMarker
InterfaceTypeAttribute(1) 
GuidAttribute("10D17872-91BA-4D65-80CC-E5FC3222AC82") 
public interface IVsTextStreamMarker extends IVsTextMarker

This interface represents the marker itself. The marker is created by calling the CreateStreamMarker method. The IVsTextStreamMarker interface differs from IVsTextLineMarker in that it uses one-dimensional linear coordinates rather two-dimensional [line, index] coordinates. However, IVsTextLineMarker and IVsTextStreamMarker are both implemented by the same underlying object and you can call the 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.

Notes to Implementers Implemented by the text marker.

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ