共用方式為


IVsTextLines.CreateTextPoint(Int32, Int32, Object) Method

Definition

Creates a TextPoint object at the given location in the text buffer.

public:
 int CreateTextPoint(int iLine, int iIndex, [Runtime::InteropServices::Out] System::Object ^ % ppTextPoint);
int CreateTextPoint(int iLine, int iIndex, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & ppTextPoint);
public int CreateTextPoint (int iLine, int iIndex, out object ppTextPoint);
abstract member CreateTextPoint : int * int * obj -> int
Public Function CreateTextPoint (iLine As Integer, iIndex As Integer, ByRef ppTextPoint As Object) As Integer

Parameters

iLine
Int32

[in] Specified line to create the TextPoint object.

iIndex
Int32

[in] Specified index position within the line to create the TextPoint object.

ppTextPoint
Object

[out] Pointer to the TextPoint object created.

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::CreateTextPoint(  
   [in] long iLine,  
   [in] CharIndex iIndex,  
   [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.

Applies to