IVsTextBuffer.GetUndoManager 方法

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

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function GetUndoManager ( _
    <OutAttribute> ByRef ppUndoManager As IOleUndoManager _
) As Integer
int GetUndoManager(
    out IOleUndoManager ppUndoManager
)
int GetUndoManager(
    [OutAttribute] IOleUndoManager^% ppUndoManager
)
abstract GetUndoManager : 
        ppUndoManager:IOleUndoManager byref -> int
function GetUndoManager(
    ppUndoManager : IOleUndoManager
) : int

参数

  • ppUndoManager
    类型:IOleUndoManager%

    [out] 为 IOleUndoManager 接口的指针。

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

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

此方法可能基于缓冲区的基础实现要求严重的资源,。 也就是说,如果它是一个虚拟行面向实现在 Visual Basic 中,计算缓冲区的大小可能很难。

.NET Framework 安全性

请参阅

参考

IVsTextBuffer 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间