共用方式為


IVsTextLayer.CreateTrackingPoint Method

Creates a zero-length tracking point that is similar to a zero-length marker.

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

Syntax

'宣告
Function CreateTrackingPoint ( _
    iLine As Integer, _
    iIndex As Integer, _
    <OutAttribute> ByRef ppMarker As IVsTextTrackingPoint _
) As Integer
int CreateTrackingPoint(
    int iLine,
    int iIndex,
    out IVsTextTrackingPoint ppMarker
)
int CreateTrackingPoint(
    [InAttribute] int iLine, 
    [InAttribute] int iIndex, 
    [OutAttribute] IVsTextTrackingPoint^% ppMarker
)
abstract CreateTrackingPoint : 
        iLine:int * 
        iIndex:int * 
        ppMarker:IVsTextTrackingPoint byref -> int 
function CreateTrackingPoint(
    iLine : int, 
    iIndex : int, 
    ppMarker : IVsTextTrackingPoint
) : int

Parameters

  • iLine
    Type: System.Int32
    [in] Line where tracking point is inserted.
  • iIndex
    Type: System.Int32
    [in] Character index within the line (must be <= length of line)

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextLayer::CreateTrackingPoint(
   [in] long iLine,
   [in] CharIndex iIndex,
   [out] IVsTextTrackingPoint ** ppMarker
);

.NET Framework Security

See Also

Reference

IVsTextLayer Interface

Microsoft.VisualStudio.TextManager.Interop Namespace