Partager via


IVsTextStream.CreateEditPoint Method

Creates an EditPoint 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

'Déclaration
Function CreateEditPoint ( _
    iPosition As Integer, _
    <OutAttribute> ByRef ppEditPoint As Object _
) As Integer
'Utilisation
Dim instance As IVsTextStream
Dim iPosition As Integer
Dim ppEditPoint As Object
Dim returnValue As Integer

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

Parameters

  • iPosition
    Type: System.Int32
    [in] Position in the text buffer.

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::CreateEditPoint(
   [in] long iPosition,
   [out] IDispatch **ppEditPoint
);

EditPoint objects are an alternate way to write to the buffer, and represent a location in the text buffer. These objects are similar to TextSelection objects, except that they operate on data in the text buffer rather than on text displayed in a Code Window.

Notes

Any operation that attempts to modify a text buffer will fail if it affects any characters that are contained in a read-only block, or if the text buffer itself is read-only.

.NET Framework Security

See Also

Reference

IVsTextStream Interface

IVsTextStream Members

Microsoft.VisualStudio.TextManager.Interop Namespace