Compartir a través de


ITextBufferUndoManagerProvider.GetTextBufferUndoManager(ITextBuffer) Method

Definition

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

public:
 Microsoft::VisualStudio::Text::Operations::ITextBufferUndoManager ^ GetTextBufferUndoManager(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
public:
 Microsoft::VisualStudio::Text::Operations::ITextBufferUndoManager ^ GetTextBufferUndoManager(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
Microsoft::VisualStudio::Text::Operations::ITextBufferUndoManager GetTextBufferUndoManager(Microsoft::VisualStudio::Text::ITextBuffer const & textBuffer);
public Microsoft.VisualStudio.Text.Operations.ITextBufferUndoManager GetTextBufferUndoManager (Microsoft.VisualStudio.Text.ITextBuffer textBuffer);
abstract member GetTextBufferUndoManager : Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.Operations.ITextBufferUndoManager
Public Function GetTextBufferUndoManager (textBuffer As ITextBuffer) As ITextBufferUndoManager

Parameters

textBuffer
ITextBuffer

The ITextBuffer for which to get the ITextBufferUndoManager.

Returns

The ITextBufferUndoManager for textBuffer.

Exceptions

textBuffer is null.

Remarks

If no undo manager has been cached, it creates a new ITextBufferUndoManager and caches it with the specified ITextBuffer.

Applies to