Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

[GuidAttribute("31E2DCA7-CCFF-4E09-B433-17C739CF69AD")]
[InterfaceTypeAttribute()]
public interface IVsTextLineMarker : IVsTextMarker

The IVsTextLineMarker type exposes the following members.

  NameDescription
Public methodDrawGlyphDraws a glyph in the widget margin given a display context and bounding rectangle.
Public methodExecMarkerCommandExecutes a text marker against a text marker.
Public methodGetBehaviorReturns a text marker behavior set by the SetBehavior method.
Public methodGetCurrentSpanReturns the current position of the text marker.
Public methodGetLineBufferProvides access to an associated text buffer.
Public methodGetMarkerCommandInfoReturns text marker command information.
Public methodGetPriorityIndexReturns the text marker priority index, with the highest value getting the topmost placement.
Public methodGetTipTextReturns the text to display in a tip for the marker type.
Public methodGetTypeReturns a text marker type.
Public methodGetVisualStyleReturns the visual style of a marker type.
Public methodInvalidatePrevents a text marker from appearing in the user interface.
Public methodResetSpanResets the position of the text marker.
Public methodSetBehaviorSets the behavior of a text marker.
Public methodSetTypeSets a text marker type.
Public methodSetVisualStyleSets the visual style of a marker type.
Public methodUnadviseClientUnadvises the client, if there is one.
Top

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.

Notes to Implementers

Implemented by Visual Studio text markers.

Notes to Callers

Called by VSPackages (or any text buffer client).

Show:
© 2015 Microsoft