IVsTextView.GetTextStream 方法
傳回指定的文字串,字串中。
命名空間: Microsoft.VisualStudio.TextManager.Interop
組件: Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
語法
'宣告
Function GetTextStream ( _
iTopLine As Integer, _
iTopCol As Integer, _
iBottomLine As Integer, _
iBottomCol As Integer, _
<OutAttribute> ByRef pbstrText As String _
) As Integer
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
參數
iTopLine
類型:Int32[in]定義文字資料流的最上層的行索引。
iTopCol
類型:Int32[in]定義文字資料流的第一行資料行。 Viewcol 座標可能包括虛擬空間。
iBottomLine
類型:Int32[in]定義文字資料流的下一行索引。
iBottomCol
類型:Int32[in]定義文字資料流的下一行資料行。 Viewcol 座標可能包括虛擬空間。
pbstrText
類型:String%[] out字串,包含的文字指標。
傳回值
類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。
備註
COM 簽章
從 textmgr.idl:
HRESULT IVsTextView::GetTextStream(
[in] long iTopLine,
[in] ViewCol iTopCol,
[in] long iBottomLine,
[in] ViewCol iBottomCol,
[out] BSTR * pbstrText
);
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。