IVsTextLineMarker Interface

Definition

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.

public interface class IVsTextLineMarker : Microsoft::VisualStudio::TextManager::Interop::IVsTextMarker
public interface class IVsTextLineMarker : Microsoft::VisualStudio::TextManager::Interop::IVsTextMarker
__interface IVsTextLineMarker : Microsoft::VisualStudio::TextManager::Interop::IVsTextMarker
[System.Runtime.InteropServices.Guid("31E2DCA7-CCFF-4E09-B433-17C739CF69AD")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsTextLineMarker : Microsoft.VisualStudio.TextManager.Interop.IVsTextMarker
[System.Runtime.InteropServices.Guid("31E2DCA7-CCFF-4E09-B433-17C739CF69AD")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsTextLineMarker : Microsoft.VisualStudio.TextManager.Interop.IVsTextMarker
[<System.Runtime.InteropServices.Guid("31E2DCA7-CCFF-4E09-B433-17C739CF69AD")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsTextLineMarker = interface
    interface IVsTextMarker
[<System.Runtime.InteropServices.Guid("31E2DCA7-CCFF-4E09-B433-17C739CF69AD")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsTextLineMarker = interface
    interface IVsTextMarker
Public Interface IVsTextLineMarker
Implements IVsTextMarker
Attributes
Implements

Remarks

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

Methods

DrawGlyph(IntPtr, RECT[])

Draws a glyph in the widget margin given a display context and bounding rectangle.

ExecMarkerCommand(Int32)

Executes a text marker against a text marker.

GetBehavior(UInt32)

Returns a text marker behavior set by the SetBehavior(UInt32) method.

GetCurrentSpan(TextSpan[])

Returns the current position of the text marker.

GetLineBuffer(IVsTextLines)

Provides access to an associated text buffer.

GetMarkerCommandInfo(Int32, String[], UInt32[])

Returns text marker command information.

GetPriorityIndex(Int32)

Returns the text marker priority index, with the highest value getting the topmost placement.

GetTipText(String[])

Returns the text to display in a tip for the marker type.

GetType(Int32)

Returns a text marker type.

GetVisualStyle(UInt32)

Returns the visual style of a marker type.

Invalidate()

Prevents a text marker from appearing in the user interface.

ResetSpan(Int32, Int32, Int32, Int32)

Resets the position of the text marker.

SetBehavior(UInt32)

Sets the behavior of a text marker.

SetType(Int32)

Sets a text marker type.

SetVisualStyle(UInt32)

Sets the visual style of a marker type.

UnadviseClient()

Unadvises the client, if there is one.

Applies to