Freigeben über


IVsTextBuffer.GetUndoManager(IOleUndoManager) Method

Definition

Returns the undo manager for this buffer.

public:
 int GetUndoManager([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IOleUndoManager ^ % ppUndoManager);
public:
 int GetUndoManager([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IOleUndoManager ^ &  ppUndoManager);
int GetUndoManager([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IOleUndoManager const & & ppUndoManager);
public int GetUndoManager (out Microsoft.VisualStudio.OLE.Interop.IOleUndoManager ppUndoManager);
abstract member GetUndoManager : IOleUndoManager -> int
Public Function GetUndoManager (ByRef ppUndoManager As IOleUndoManager) As Integer

Parameters

ppUndoManager
IOleUndoManager

[out] Pointer to the IOleUndoManager interface.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextBuffer::GetUndoManager(  
   [out] IOleUndoManager **ppUndoManager  
);  

This method might require considerable resources, depending upon the underlying implementation of the buffer. That is, it might be very difficult to calculate the size of the buffer if it is a virtual-line-oriented implementation as in Visual Basic.

Applies to