共用方式為


IVsTextLines.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.

Implements

Remarks

COM Signature

From textmgr.idl:

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

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

Applies to