共用方式為


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
)

參數

備註

COM 簽章

從 textmgr.idl:

HRESULT IVsTextImageEvents::OnTextChange(
   [in] TextAddress taStart,
   [in] TextAddress taEnd,
   [in] TextAddress taNewEnd
);

環境將指標傳遞給這個介面,透過呼叫AdviseTextImageEvents。 您可以使用這個方法來通知文字影像的任何變更的環境。

.NET Framework 安全性

請參閱

參考

IVsTextImageEvents 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間