IVsTextLines.GetUndoManager(IOleUndoManager) 方法

定义

返回此缓冲区的撤消管理器。

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

参数

ppUndoManager
IOleUndoManager

弄指向接口的指针 IOleUndoManager

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

实现

注解

COM 签名

从 textmgr:

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

此方法可能需要大量资源,具体取决于缓冲区的基础实现。 也就是说,如果缓冲区的大小是面向虚拟行的实现(如中所示),则可能非常困难 Visual Basic 。

适用于