ITextUndoHistoryRegistry.AttachHistory(Object, ITextUndoHistory) Method

Definition

Attaches an existing ITextUndoHistory to a text buffer. The buffer must not already be mapped in this registry.

public void AttachHistory (object context, Microsoft.VisualStudio.Text.Operations.ITextUndoHistory history);
Parameters
context
Object

This object should always be an ITextBuffer.

history
ITextUndoHistory

An ITextUndoHistory object to associate with the text buffer.

Remarks

Only a weak reference is held to the buffer.

Applies to