Freigeben über


IVsTextLayerMarker Interface

Provides marker object management in an arbitrary layer.

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

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("28C149D2-8FCB-4AB3-8584-9A2747F3F8FC")> _
Public Interface IVsTextLayerMarker _
    Inherits IVsTextMarker
[InterfaceTypeAttribute()]
[GuidAttribute("28C149D2-8FCB-4AB3-8584-9A2747F3F8FC")]
public interface IVsTextLayerMarker : IVsTextMarker
[InterfaceTypeAttribute()]
[GuidAttribute(L"28C149D2-8FCB-4AB3-8584-9A2747F3F8FC")]
public interface class IVsTextLayerMarker : IVsTextMarker
[<InterfaceTypeAttribute()>]
[<GuidAttribute("28C149D2-8FCB-4AB3-8584-9A2747F3F8FC")>]
type IVsTextLayerMarker =  
    interface 
        interface IVsTextMarker 
    end
public interface IVsTextLayerMarker extends IVsTextMarker

The IVsTextLayerMarker type exposes the following members.

Methods

  Name Description
Public method DrawGlyph Draws a glyph in the given DC & RECT.
Public method DrawGlyphEx Draws a glyph in the given DC & RECT.
Public method ExecMarkerCommand Executes the specified marker command.
Public method GetBehavior Returns marker behavior.
Public method GetCurrentSpan Returns the current span position.
Public method GetMarkerCommandInfo Gets the marker command information.
Public method GetPriorityIndex Returns the priority index.
Public method GetTextLayer Gets the text layer.
Public method GetTipText Returns tool tip text.
Public method GetType Returns marker type.
Public method GetVisualStyle Returns the visual style of a marker.
Public method Invalidate Prevents a marker from appearing in the UI, even if there are lingering references to it.
Public method IsInvalidated Determines whether a marker was invalidated.
Public method QueryClientInterface Gets the client interface specified.
Public method ResetSpan Resets marker position.
Public method SetBehavior Sets the marker behavior.
Public method SetType Sets the marker type.
Public method SetVisualStyle Sets the marker visual style.
Public method UnadviseClient Unadvise the client, if any.

Top

Remarks

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.)

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace