This topic has not yet been rated - Rate this topic

IVsTextLayerMarker Interface

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

[GuidAttribute("28C149D2-8FCB-4AB3-8584-9A2747F3F8FC")] 
[InterfaceTypeAttribute(1)] 
public interface IVsTextLayerMarker : IVsTextMarker
/** @attribute GuidAttribute("28C149D2-8FCB-4AB3-8584-9A2747F3F8FC") */ 
/** @attribute InterfaceTypeAttribute(1) */ 
public interface IVsTextLayerMarker extends IVsTextMarker
GuidAttribute("28C149D2-8FCB-4AB3-8584-9A2747F3F8FC") 
InterfaceTypeAttribute(1) 
public interface IVsTextLayerMarker extends IVsTextMarker

This interface is exposed by marker objects that live in an arbitrary layer. They are a more general concept than a buffer marker. Buffer markers are by definition layer markers, but some layers that are not buffers can also originate markers. If you have an IVsTextLineMarker or IVsTextStreamMarker it is guaranteed that you can QueryInterface for IVsTextLayerMarker, but not vice versa. (This will be true for buffer-originated markers however.)

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