VsTextBufferClass.CreateLineMarker Method

Creates a marker of a given type over the specified region.

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

Syntax

声明
Public Overridable Function CreateLineMarker ( _
    iMarkerType As Integer, _
    iStartLine As Integer, _
    iStartIndex As Integer, _
    iEndLine As Integer, _
    iEndIndex As Integer, _
    pClient As IVsTextMarkerClient, _
    <OutAttribute> ppMarker As IVsTextLineMarker() _
) As Integer
用法
Dim instance As VsTextBufferClass
Dim iMarkerType As Integer
Dim iStartLine As Integer
Dim iStartIndex As Integer
Dim iEndLine As Integer
Dim iEndIndex As Integer
Dim pClient As IVsTextMarkerClient
Dim ppMarker As IVsTextLineMarker()
Dim returnValue As Integer

returnValue = instance.CreateLineMarker(iMarkerType, _
    iStartLine, iStartIndex, iEndLine, _
    iEndIndex, pClient, ppMarker)
public virtual int CreateLineMarker(
    int iMarkerType,
    int iStartLine,
    int iStartIndex,
    int iEndLine,
    int iEndIndex,
    IVsTextMarkerClient pClient,
    IVsTextLineMarker[] ppMarker
)
public:
virtual int CreateLineMarker(
    [InAttribute] int iMarkerType, 
    [InAttribute] int iStartLine, 
    [InAttribute] int iStartIndex, 
    [InAttribute] int iEndLine, 
    [InAttribute] int iEndIndex, 
    [InAttribute] IVsTextMarkerClient^ pClient, 
    [OutAttribute] array<IVsTextLineMarker^>^ ppMarker
)
abstract CreateLineMarker : 
        iMarkerType:int * 
        iStartLine:int * 
        iStartIndex:int * 
        iEndLine:int * 
        iEndIndex:int * 
        pClient:IVsTextMarkerClient * 
        ppMarker:IVsTextLineMarker[] byref -> int 
override CreateLineMarker : 
        iMarkerType:int * 
        iStartLine:int * 
        iStartIndex:int * 
        iEndLine:int * 
        iEndIndex:int * 
        pClient:IVsTextMarkerClient * 
        ppMarker:IVsTextLineMarker[] byref -> int 
public function CreateLineMarker(
    iMarkerType : int, 
    iStartLine : int, 
    iStartIndex : int, 
    iEndLine : int, 
    iEndIndex : int, 
    pClient : IVsTextMarkerClient, 
    ppMarker : IVsTextLineMarker[]
) : int

Parameters

  • iMarkerType
    Type: System.Int32
    [in] Type of marker to create.
  • iStartIndex
    Type: System.Int32
    [in] Starting character index within the line. Must be less than or equal to the length of the line.
  • iEndIndex
    Type: System.Int32
    [in] Ending character index within the line. Must be less than or equal to the length of the line.

Return Value

Type: System.Int32

Implements

IVsTextLines.CreateLineMarker(Int32, Int32, Int32, Int32, Int32, IVsTextMarkerClient, array<IVsTextLineMarker[])

.NET Framework Security

See Also

Reference

VsTextBufferClass Class

VsTextBufferClass Members

Microsoft.VisualStudio.TextManager.Interop Namespace