IVsTextImageEvents.OnTextChange 方法
告知用戶端的檢索映像變更。
命名空間: Microsoft.VisualStudio.TextManager.Interop
組件: Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
語法
'宣告
Sub OnTextChange ( _
taStart As TextAddress, _
taEnd As TextAddress, _
taNewEnd As TextAddress _
)
void OnTextChange(
TextAddress taStart,
TextAddress taEnd,
TextAddress taNewEnd
)
void OnTextChange(
[InAttribute] TextAddress taStart,
[InAttribute] TextAddress taEnd,
[InAttribute] TextAddress taNewEnd
)
abstract OnTextChange :
taStart:TextAddress *
taEnd:TextAddress *
taNewEnd:TextAddress -> unit
function OnTextChange(
taStart : TextAddress,
taEnd : TextAddress,
taNewEnd : TextAddress
)
參數
taStart
類型:Microsoft.VisualStudio.TextManager.Interop.TextAddress[in]文字影像開始位址。
taEnd
類型:Microsoft.VisualStudio.TextManager.Interop.TextAddress[in]結束的文字影像的位址。
taNewEnd
類型:Microsoft.VisualStudio.TextManager.Interop.TextAddress[in]新的文字影像的結束位址。
備註
COM 簽章
從 textmgr.idl:
HRESULT IVsTextImageEvents::OnTextChange(
[in] TextAddress taStart,
[in] TextAddress taEnd,
[in] TextAddress taNewEnd
);
環境將指標傳遞給這個介面,透過呼叫AdviseTextImageEvents。 您可以使用這個方法來通知文字影像的任何變更的環境。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。