다음을 통해 공유


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)

Syntax

'Declaration
Public Interface ITextUndoHistoryRegistry
public interface ITextUndoHistoryRegistry
public interface class ITextUndoHistoryRegistry
type ITextUndoHistoryRegistry =  interface end
public interface ITextUndoHistoryRegistry

The ITextUndoHistoryRegistry type exposes the following members.

Methods

  Name Description
Public method AttachHistory Attaches an existing ITextUndoHistory to a text buffer. The buffer must not already be mapped in this registry.
Public method GetHistory Gets a history associated with the text buffer, but does not create a new one.
Public method RegisterHistory Gets, and if necessary creates, a history associated with the context.
Public method RemoveHistory Removes all mappings to a given ITextUndoHistory in this registry, if any exist.
Public method TryGetHistory Gets a history associated with the text buffer, but does not create a new one.

Top

Remarks

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

[Import] 
ITextUndoHistoryRegistry registry = null;

See Also

Reference

Microsoft.VisualStudio.Text.Operations Namespace