IVsTextLines.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
声明
Function CreateEditPoint ( _
iLine As Integer, _
iIndex As Integer, _
<OutAttribute> ByRef ppEditPoint As Object _
) As Integer
int CreateEditPoint(
int iLine,
int iIndex,
out Object ppEditPoint
)
int CreateEditPoint(
[InAttribute] int iLine,
[InAttribute] int iIndex,
[OutAttribute] Object^% ppEditPoint
)
abstract CreateEditPoint :
iLine:int *
iIndex:int *
ppEditPoint:Object byref -> int
function CreateEditPoint(
iLine : int,
iIndex : int,
ppEditPoint : Object
) : int
Parameters
- iLine
Type: System.Int32
[in] Line number of the EditPoint object in the text buffer.
- iIndex
Type: System.Int32
[in] Character index of the EditPoint object within the line.
- ppEditPoint
Type: System.Object%
[out] Pointer to the IDispatch interface.
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::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.
备注
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.