共用方式為


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

Definition

Returns a specified stream of text in a string.

public:
 virtual int GetTextStream(int iTopLine, int iTopCol, int iBottomLine, int iBottomCol, [Runtime::InteropServices::Out] System::String ^ % pbstrText) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::GetTextStream;
public:
 virtual int GetTextStream(int iTopLine, int iTopCol, int iBottomLine, int iBottomCol, [Runtime::InteropServices::Out] System::String ^ % pbstrText);
 virtual int GetTextStream(int iTopLine, int iTopCol, int iBottomLine, int iBottomCol, [Runtime::InteropServices::Out] std::wstring const & & pbstrText);
public virtual int GetTextStream (int iTopLine, int iTopCol, int iBottomLine, int iBottomCol, out string pbstrText);
abstract member GetTextStream : int * int * int * int * string -> int
override this.GetTextStream : int * int * int * int * string -> int
Public Overridable 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.

Implements

Applies to