IVsTextLines.CreateEditPoint(Int32, Int32, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an EditPoint object at the given location in the text buffer.
public:
int CreateEditPoint(int iLine, int iIndex, [Runtime::InteropServices::Out] System::Object ^ % ppEditPoint);
int CreateEditPoint(int iLine, int iIndex, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & ppEditPoint);
public int CreateEditPoint (int iLine, int iIndex, out object ppEditPoint);
abstract member CreateEditPoint : int * int * obj -> int
Public Function CreateEditPoint (iLine As Integer, iIndex As Integer, ByRef ppEditPoint As Object) As Integer
Parameters
- ppEditPoint
- Object
[out] Pointer to the IDispatch interface.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsTextLines::CreateEditPoint(
[in] long iLine,
[in] CharIndex iIndex,
[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.