IVsTextImage.GetSpanLength 方法
傳回文字範圍的字元數。
命名空間: Microsoft.VisualStudio.TextManager.Interop
組件: Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
語法
'宣告
Function GetSpanLength ( _
pts As TextSpan(), _
<OutAttribute> ByRef pcch As Integer _
) As Integer
int GetSpanLength(
TextSpan[] pts,
out int pcch
)
int GetSpanLength(
[InAttribute] array<TextSpan>^ pts,
[OutAttribute] int% pcch
)
abstract GetSpanLength :
pts:TextSpan[] *
pcch:int byref -> int
function GetSpanLength(
pts : TextSpan[],
pcch : int
) : int
參數
pts
類型:array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][in]指標TextSpan結構。
pcch
類型:Int32%[] out指標之文字範圍的字元數。
傳回值
類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。
備註
COM 簽章
從 textmgr.idl:
HRESULT IVsTextImage::GetSpanLength(
[in] const TextSpan * pts,
[out, retval] LONG * pcch
);
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。