Share via


IVsTextStream.CreateTextPoint(Int32, Object) Method

Definition

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

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

Parameters

iPosition
Int32

[in] Starting position in the text buffer 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 IVsTextStream::CreateTextPoint(  
   [in] long iPosition,  
   [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