ITextBufferUndoManagerProvider::GetTextBufferUndoManager Method (ITextBuffer^)
Visual Studio 2015
Gets the cached ITextBufferUndoManager for the specified ITextBuffer.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Parameters
- textBuffer
-
Type:
Microsoft.VisualStudio.Text::ITextBuffer^
The ITextBuffer.
Return Value
Type: Microsoft.VisualStudio.Text.Operations::ITextBufferUndoManager^The cached ITextBufferUndoManager for textBuffer.
| Exception | Condition |
|---|---|
| ArgumentNullException | textBuffer is null. |
If no undo manager has been cached, it creates a new ITextBufferUndoManager and caches it with the specified ITextBuffer.
Show: