GetTextStream Method
The document is archived and information here might be outdated

IVsTextView.GetTextStream Method

Returns a specified stream of text in a string.

Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)

int GetTextStream (
	[InAttribute] int iTopLine,
	[InAttribute] int iTopCol,
	[InAttribute] int iBottomLine,
	[InAttribute] int iBottomCol,
	out string pbstrText
)
int GetTextStream (
	/** @attribute InAttribute() */ int iTopLine, 
	/** @attribute InAttribute() */ int iTopCol, 
	/** @attribute InAttribute() */ int iBottomLine, 
	/** @attribute InAttribute() */ int iBottomCol, 
	/** @attribute OutAttribute() */ /** @ref */ String pbstrText
)
JScript does not support passing value-type arguments by reference.

Parameters

iTopLine

[in] Top line index defining the text stream.

iTopCol

[in]Top line column defining the text stream. Viewcol coordinates may include virtual space.

iBottomLine

[in] Bottom line index defining the text stream.

iBottomCol

[in] Bottom line column defining the text stream. Viewcol coordinates may include virtual space.

pbstrText

[out] Pointer to a string containing the text.

Return Value

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

COM Signature

From textmgr.idl:

HRESULT IVsTextView::GetTextStream(
   [in] long iTopLine,
   [in] ViewCol iTopCol,
   [in] long iBottomLine,
   [in] ViewCol iBottomCol,
   [out] BSTR * pbstrText
);
Show:
© 2016 Microsoft