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.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Thetype exposes the following members.
|DrawGlyph||Draws a glyph in the widget margin given a display context and bounding rectangle.|
|ExecMarkerCommand||Executes a text marker against a text marker.|
|GetBehavior||Returns a text marker behavior set by the SetBehavior method.|
|GetCurrentSpan||Returns the current position of the text marker.|
|GetLineBuffer||Provides access to an associated text buffer.|
|GetMarkerCommandInfo||Returns text marker command information.|
|GetPriorityIndex||Returns the text marker priority index, with the highest value getting the topmost placement.|
|GetTipText||Returns the text to display in a tip for the marker type.|
|GetType||Returns a text marker type.|
|GetVisualStyle||Returns the visual style of a marker type.|
|Invalidate||Prevents a text marker from appearing in the user interface.|
|ResetSpan||Resets the position of the text marker.|
|SetBehavior||Sets the behavior of a text marker.|
|SetType||Sets a text marker type.|
|SetVisualStyle||Sets the visual style of a marker type.|
|UnadviseClient||Unadvises the client, if there is one.|
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).