ITextBufferUndoManagerProvider Interface

Definition

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

C++/CX
public interface class ITextBufferUndoManagerProvider

Remarks

This is a MEF component part, and should be exported with the following attribute: [Export(typeof(ITextBufferUndoManagerProvider))]

Methods

GetTextBufferUndoManager(ITextBuffer)

Gets the ITextBufferUndoManager for the specified ITextBuffer. If no undo manager has been created for this text buffer, a new one is created.

RemoveTextBufferUndoManager(ITextBuffer)

Removes the ITextBufferUndoManager, if any, from textBuffer.

Applies to

Produit Versions
Visual Studio SDK 2015, 2017, 2019, 2022