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)
Syntax
'Declaration
<GuidAttribute("31E2DCA7-CCFF-4E09-B433-17C739CF69AD")> _
<InterfaceTypeAttribute()> _
Public Interface IVsTextLineMarker _
Inherits IVsTextMarker
[GuidAttribute("31E2DCA7-CCFF-4E09-B433-17C739CF69AD")]
[InterfaceTypeAttribute()]
public interface IVsTextLineMarker : IVsTextMarker
[GuidAttribute(L"31E2DCA7-CCFF-4E09-B433-17C739CF69AD")]
[InterfaceTypeAttribute()]
public interface class IVsTextLineMarker : IVsTextMarker
[<GuidAttribute("31E2DCA7-CCFF-4E09-B433-17C739CF69AD")>]
[<InterfaceTypeAttribute()>]
type IVsTextLineMarker =
interface
interface IVsTextMarker
end
public interface IVsTextLineMarker extends IVsTextMarker
The IVsTextLineMarker type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
DrawGlyph(IntPtr, array<RECT[]) | Draws a glyph in the widget margin given a display context and bounding rectangle. |
![]() |
DrawGlyph(IntPtr, array<RECT[]) | Draws a glyph in the widget margin given a display context and bounding rectangle. (Inherited from IVsTextMarker.) |
![]() |
ExecMarkerCommand(Int32) | Executes a text marker against a text marker. |
![]() |
ExecMarkerCommand(Int32) | Executes a text marker command against a marker. (Inherited from IVsTextMarker.) |
![]() |
GetBehavior(UInt32%) | Returns a text marker behavior set by the SetBehavior method. |
![]() |
GetBehavior(UInt32%) | Returns a text marker behavior set by the SetBehavior method. (Inherited from IVsTextMarker.) |
![]() |
GetCurrentSpan | Returns the current position of the text marker. |
![]() |
GetLineBuffer | Provides access to an associated text buffer. |
![]() |
GetMarkerCommandInfo(Int32, array<String[], array<UInt32[]) | Returns text marker command information. |
![]() |
GetMarkerCommandInfo(Int32, array<String[], array<UInt32[]) | Returns text marker command information. (Inherited from IVsTextMarker.) |
![]() |
GetPriorityIndex(Int32%) | Returns the text marker priority index, with the highest value getting the topmost placement. |
![]() |
GetPriorityIndex(Int32%) | Returns the text marker priority index, with the highest value getting the topmost placement. (Inherited from IVsTextMarker.) |
![]() |
GetTipText(array<String[]) | Returns the text to display in a tip for the marker type. |
![]() |
GetTipText(array<String[]) | Returns the text to display in a tip for the marker type. (Inherited from IVsTextMarker.) |
![]() |
GetType(Int32%) | Returns a text marker type. |
![]() |
GetType(Int32%) | Returns a text marker type. (Inherited from IVsTextMarker.) |
![]() |
GetVisualStyle(UInt32%) | Returns the visual style of a marker type. |
![]() |
GetVisualStyle(UInt32%) | Returns the visual style of a marker type. (Inherited from IVsTextMarker.) |
![]() |
Invalidate() | Prevents a text marker from appearing in the user interface. |
![]() |
Invalidate() | Prevents a text marker from appearing in the user interface. (Inherited from IVsTextMarker.) |
![]() |
ResetSpan | Resets the position of the text marker. |
![]() |
SetBehavior(UInt32) | Sets the behavior of a text marker. |
![]() |
SetBehavior(UInt32) | Sets the behavior of a text marker. (Inherited from IVsTextMarker.) |
![]() |
SetType(Int32) | Sets a text marker type. |
![]() |
SetType(Int32) | Sets a text marker type. (Inherited from IVsTextMarker.) |
![]() |
SetVisualStyle(UInt32) | Sets the visual style of a marker type. |
![]() |
SetVisualStyle(UInt32) | Sets the visual style of a marker type. (Inherited from IVsTextMarker.) |
![]() |
UnadviseClient() | Unadvises the client, if there is one. |
![]() |
UnadviseClient() | Unadvises the client, if there is one. (Inherited from IVsTextMarker.) |
Top
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).