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
- textBuffer
Type: Microsoft.VisualStudio.Text.ITextBuffer
The ITextBuffer.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.