Partager via


IVsTextView.GetTextStream(Int32, Int32, Int32, Int32, String) Method

Definition

Returns a specified stream of text in a string.

public:
 int GetTextStream(int iTopLine, int iTopCol, int iBottomLine, int iBottomCol, [Runtime::InteropServices::Out] System::String ^ % pbstrText);
int GetTextStream(int iTopLine, int iTopCol, int iBottomLine, int iBottomCol, [Runtime::InteropServices::Out] std::wstring const & & pbstrText);
public int GetTextStream (int iTopLine, int iTopCol, int iBottomLine, int iBottomCol, out string pbstrText);
abstract member GetTextStream : int * int * int * int * string -> int
Public Function GetTextStream (iTopLine As Integer, iTopCol As Integer, iBottomLine As Integer, iBottomCol As Integer, ByRef pbstrText As String) As Integer

Parameters

iTopLine
Int32

[in] Top line index defining the text stream.

iTopCol
Int32

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

iBottomLine
Int32

[in] Bottom line index defining the text stream.

iBottomCol
Int32

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

pbstrText
String

[out] Pointer to a string containing the text.

Returns

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

Remarks

COM Signature

From textmgr.idl:

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

Applies to