This topic has not yet been rated - Rate this topic

ITextUndoHistoryRegistry Interface

Maintains the relationship between text buffers and ITextUndoHistory objects.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
public interface ITextUndoHistoryRegistry

The ITextUndoHistoryRegistry type exposes the following members.

  NameDescription
Public methodAttachHistoryAttaches an existing ITextUndoHistory to a text buffer. The buffer must not already be mapped in this registry.
Public methodGetHistoryGets a history associated with the text buffer, but does not create a new one.
Public methodRegisterHistoryGets, and if necessary creates, a history associated with the context.
Public methodRemoveHistoryRemoves all mappings to a given ITextUndoHistory in this registry, if any exist.
Public methodTryGetHistoryGets a history associated with the text buffer, but does not create a new one.
Top

This is a MEF component part, and should be imported as follows:

[Import] 
ITextUndoHistoryRegistry registry = null;
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.