IVsTextStream::CreateTextPoint Method (Int32, Object^)

 

Creates a TextPoint 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)

int CreateTextPoint(
	int iPosition,
	[OutAttribute] Object^% ppTextPoint
)

Parameters

iPosition
Type: System::Int32

[in] Starting position in the text buffer to create the TextPoint object.

ppTextPoint
Type: System::Object^

[out] Pointer to the TextPoint object created.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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.

Return to top
Show: