RibbonManager 类 (2007 system)

更新:2007 年 11 月

管理 Visual Studio Tools for Office 项目中的自定义功能区。

命名空间:  Microsoft.Office.Tools.Ribbon
程序集:  Microsoft.Office.Tools.Common.v9.0(在 Microsoft.Office.Tools.Common.v9.0.dll 中)

语法

声明
Public NotInheritable Class RibbonManager _
    Implements IRibbonExtensibility, IReflect, IDisposable
用法
Dim instance As RibbonManager
public sealed class RibbonManager : IRibbonExtensibility, 
    IReflect, IDisposable

备注

如果在项目中有多个功能区,并且要指定哪个功能区在运行时显示,请使用此类。为此,请重写 ThisAddIn、ThisWorkbook 或 ThisDocument 类的 CreateRibbonExtensibilityObject 方法,并返回一个包含要显示的 OfficeRibbon 对象(对于 Outlook,可以是多个此类对象)的新 RibbonManager 对象。有关更多信息,请参见功能区概述

继承层次结构

System.Object
  Microsoft.Office.Tools.Ribbon.RibbonManager

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

另请参见

参考

RibbonManager 成员

Microsoft.Office.Tools.Ribbon 命名空间

其他资源

功能区概述

功能区对象模型概述