ITextBufferUndoManagerProvider Interface

Provides an ITextBufferUndoManager for a given ITextBuffer.

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

Syntax

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

The ITextBufferUndoManagerProvider type exposes the following members.

Methods

  Name Description
Public method GetTextBufferUndoManager Gets the cached ITextBufferUndoManager for the specified ITextBuffer.
Public method RemoveTextBufferUndoManager Removes the ITextBufferUndoManager for the specified text buffer.

Top

Remarks

This is a MEF component part, and should be exported with the following attribute:

[Export(NameSource=typeof(ITextBufferUndoManagerProvider))]

This is a cached factory, and only one ITextBufferUndoManager will ever be created for a given ITextBuffer.

See Also

Reference

Microsoft.VisualStudio.Text.Operations Namespace