共用方式為


ITextUndoHistoryRegistry.AttachHistory 方法

附加現有的ITextUndoHistory在緩衝區中的文字。 緩衝區必須已對應此登錄中。

命名空間:  Microsoft.VisualStudio.Text.Operations
組件:  Microsoft.VisualStudio.Text.Logic (在 Microsoft.VisualStudio.Text.Logic.dll 中)

語法

'宣告
Sub AttachHistory ( _
    context As Object, _
    history As ITextUndoHistory _
)
void AttachHistory(
    Object context,
    ITextUndoHistory history
)
void AttachHistory(
    Object^ context, 
    ITextUndoHistory^ history
)
abstract AttachHistory : 
        context:Object * 
        history:ITextUndoHistory -> unit
function AttachHistory(
    context : Object, 
    history : ITextUndoHistory
)

參數

  • context
    類型:Object

    這個物件應永遠排在ITextBuffer

備註

弱式參考會保存至緩衝區。

.NET Framework 安全性

請參閱

參考

ITextUndoHistoryRegistry 介面

Microsoft.VisualStudio.Text.Operations 命名空間