Partager via


ITextBufferUndoManagerProvider.GetTextBufferUndoManager Method

Gets the cached ITextBufferUndoManager for the specified ITextBuffer.

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

Syntax

'Déclaration
Function GetTextBufferUndoManager ( _
    textBuffer As ITextBuffer _
) As ITextBufferUndoManager
ITextBufferUndoManager GetTextBufferUndoManager(
    ITextBuffer textBuffer
)
ITextBufferUndoManager^ GetTextBufferUndoManager(
    ITextBuffer^ textBuffer
)
abstract GetTextBufferUndoManager : 
        textBuffer:ITextBuffer -> ITextBufferUndoManager 
function GetTextBufferUndoManager(
    textBuffer : ITextBuffer
) : ITextBufferUndoManager

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Operations.ITextBufferUndoManager
The cached ITextBufferUndoManager for textBuffer.

Exceptions

Exception Condition
ArgumentNullException

textBuffer is nulla null reference (Nothing in Visual Basic).

Remarks

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

.NET Framework Security

See Also

Reference

ITextBufferUndoManagerProvider Interface

Microsoft.VisualStudio.Text.Operations Namespace