IVsTextLineMarker.GetCurrentSpan 方法
傳回目前位置的文字標記。
命名空間: Microsoft.VisualStudio.TextManager.Interop
組件: Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
語法
'宣告
Function GetCurrentSpan ( _
<OutAttribute> pSpan As TextSpan() _
) As Integer
int GetCurrentSpan(
TextSpan[] pSpan
)
int GetCurrentSpan(
[OutAttribute] array<TextSpan>^ pSpan
)
abstract GetCurrentSpan :
pSpan:TextSpan[] byref -> int
function GetCurrentSpan(
pSpan : TextSpan[]
) : int
參數
pSpan
類型:array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][] out指標,該標記所涵蓋的文字範圍。 標記的文字範圍是一組的兩個 [對齊],建立索引] 座標。 這個結構是由呼叫端配置。
傳回值
類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。
備註
COM 簽章
從 textmgr.idl:
HRESULT IVsTextLineMarker::GetCurrentSpan(
[out] TextSpan *pSpan
);
您可以使用這個方法,決定目前的標記。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。