ITextUndoHistoryRegistry Interface
Visual Studio 2015
Maintains the relationship between text buffers and ITextUndoHistory objects.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
| Name | Description | |
|---|---|---|
![]() | AttachHistory(Object, ITextUndoHistory) | Attaches an existing ITextUndoHistory to a text buffer. The buffer must not already be mapped in this registry. |
![]() | GetHistory(Object) | Gets a history associated with the text buffer, but does not create a new one. |
![]() | RegisterHistory(Object) | Gets, and if necessary creates, a history associated with the context. |
![]() | RemoveHistory(ITextUndoHistory) | Removes all mappings to a given ITextUndoHistory in this registry, if any exist. |
![]() | TryGetHistory(Object, ITextUndoHistory) | Gets a history associated with the text buffer, but does not create a new one. |
This is a MEF component part, and should be imported as follows:
[Import] ITextUndoHistoryRegistry registry = null;
Show:
