Partager via


IVsTextLines.CreateTextPoint Method

Creates a TextPoint object at the given location in the text buffer.

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

Syntax

'Declaration
Function CreateTextPoint ( _
    iLine As Integer, _
    iIndex As Integer, _
    <OutAttribute> ByRef ppTextPoint As Object _
) As Integer
int CreateTextPoint(
    int iLine,
    int iIndex,
    out Object ppTextPoint
)
int CreateTextPoint(
    [InAttribute] int iLine, 
    [InAttribute] int iIndex, 
    [OutAttribute] Object^% ppTextPoint
)
abstract CreateTextPoint : 
        iLine:int * 
        iIndex:int * 
        ppTextPoint:Object byref -> int
function CreateTextPoint(
    iLine : int, 
    iIndex : int, 
    ppTextPoint : Object
) : int

Parameters

  • iIndex
    Type: System.Int32

    [in] Specified index position within the line to create the TextPoint object.

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 IVsTextLines::CreateTextPoint(
   [in] long iLine,
   [in] CharIndex iIndex,
   [out] IDispatch **ppTextPoint
);

TextPoint objects are similar to EditPoint objects, except that they operate on text displayed in a code window rather than data in the text buffer.

.NET Framework Security

See Also

Reference

IVsTextLines Interface

Microsoft.VisualStudio.TextManager.Interop Namespace