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)

Syntax

‘선언
Function GetTextStream ( _
    iTopLine As Integer, _
    iTopCol As Integer, _
    iBottomLine As Integer, _
    iBottomCol As Integer, _
    <OutAttribute> ByRef pbstrText As String _
) As Integer
‘사용 방법
Dim instance As IVsTextView
Dim iTopLine As Integer
Dim iTopCol As Integer
Dim iBottomLine As Integer
Dim iBottomCol As Integer
Dim pbstrText As String
Dim returnValue As Integer

returnValue = instance.GetTextStream(iTopLine, _
    iTopCol, iBottomLine, iBottomCol, _
    pbstrText)
int GetTextStream(
    int iTopLine,
    int iTopCol,
    int iBottomLine,
    int iBottomCol,
    out string pbstrText
)
int GetTextStream(
    [InAttribute] int iTopLine, 
    [InAttribute] int iTopCol, 
    [InAttribute] int iBottomLine, 
    [InAttribute] int iBottomCol, 
    [OutAttribute] String^% pbstrText
)
abstract GetTextStream : 
        iTopLine:int * 
        iTopCol:int * 
        iBottomLine:int * 
        iBottomCol:int * 
        pbstrText:string byref -> int 
function GetTextStream(
    iTopLine : int, 
    iTopCol : int, 
    iBottomLine : int, 
    iBottomCol : int, 
    pbstrText : String
) : int

Parameters

  • iTopLine
    Type: System.Int32
    [in] Top line index defining the text stream.
  • iTopCol
    Type: System.Int32
    [in]Top line column defining the text stream. Viewcol coordinates may include virtual space.
  • iBottomLine
    Type: System.Int32
    [in] Bottom line index defining the text stream.
  • iBottomCol
    Type: System.Int32
    [in] Bottom line column defining the text stream. Viewcol coordinates may include virtual space.
  • pbstrText
    Type: System.String%
    [out] Pointer to a string containing the text.

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsTextView Interface

IVsTextView Members

Microsoft.VisualStudio.TextManager.Interop Namespace