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

声明
Function CreateTextPoint ( _
    iPosition As Integer, _
    <OutAttribute> ByRef ppTextPoint As Object _
) As Integer
用法
Dim instance As IVsTextStream
Dim iPosition As Integer
Dim ppTextPoint As Object
Dim returnValue As Integer

returnValue = instance.CreateTextPoint(iPosition, _
    ppTextPoint)
int CreateTextPoint(
    int iPosition,
    out Object ppTextPoint
)
int CreateTextPoint(
    [InAttribute] int iPosition, 
    [OutAttribute] Object^% ppTextPoint
)
abstract CreateTextPoint : 
        iPosition:int * 
        ppTextPoint:Object byref -> int 
function CreateTextPoint(
    iPosition : int, 
    ppTextPoint : Object
) : int

Parameters

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 IVsTextStream::CreateTextPoint(
   [in] long iPosition,
   [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

IVsTextStream Interface

IVsTextStream Members

Microsoft.VisualStudio.TextManager.Interop Namespace