IVsTextSpanSet.GetAt 方法
傳回所要求的文字範圍。
命名空間: Microsoft.VisualStudio.TextManager.Interop
組件: Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
語法
'宣告
Function GetAt ( _
iEl As Integer, _
<OutAttribute> pSpan As TextSpan() _
) As Integer
int GetAt(
int iEl,
TextSpan[] pSpan
)
int GetAt(
[InAttribute] int iEl,
[OutAttribute] array<TextSpan>^ pSpan
)
abstract GetAt :
iEl:int *
pSpan:TextSpan[] byref -> int
function GetAt(
iEl : int,
pSpan : TextSpan[]
) : int
參數
iEl
類型:Int32[in]整數,其中包含的文字跨越元素數目。
pSpan
類型:array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][] out為文字的指標範圍物件。
傳回值
類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。
備註
COM 簽章
從 textmgr.idl:
HRESULT IVsTextSpanSet::GetAt(
[in] LONG iEl,
[out, retval] TextSpan * pSpan
);
iEl參數是以零起始的索引小於計數傳回到GetCount。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。