ITextUndoHistoryRegistry Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Maps context objects to ITextUndoHistory objects and is meant to be exposed by a component part.
public interface class ITextUndoHistoryRegistry
public interface class ITextUndoHistoryRegistry
__interface ITextUndoHistoryRegistry
public interface ITextUndoHistoryRegistry
type ITextUndoHistoryRegistry = interface
Public Interface ITextUndoHistoryRegistry
Remarks
This is a MEF component part, and should be imported as follows:
[Import]
ITextUndoHistoryRegistry registry = null;
Methods
AttachHistory(Object, ITextUndoHistory) |
Attaches an existing ITextUndoHistory to a new context. The context must not already be mapped in this registry. |
GetHistory(Object) |
Gets a history associated with the context, 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 context, but does not create a new one. |