IVsTextStream::CreateEditPoint Method (Int32, Object^)
Visual Studio 2015
Creates an EditPoint object at the given location in the text buffer.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- iPosition
-
Type:
System::Int32
[in] Position in the text buffer.
- ppEditPoint
-
Type:
System::Object^
[out] Pointer to the EditPoint object created.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Note |
|---|
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. |
Show:
