RibbonControl 接口

定义

提供 Microsoft Office 自定义项中的控件使用的属性。

public interface class RibbonControl : IDisposable, Microsoft::Office::Tools::Ribbon::RibbonComponent, System::ComponentModel::IComponent
[System.Runtime.InteropServices.Guid("19509b89-9091-4063-a495-f688299c8c3a")]
public interface RibbonControl : IDisposable, Microsoft.Office.Tools.Ribbon.RibbonComponent, System.ComponentModel.IComponent
[<System.Runtime.InteropServices.Guid("19509b89-9091-4063-a495-f688299c8c3a")>]
type RibbonControl = interface
    interface RibbonComponent
    interface IComponent
    interface IDisposable
Public Interface RibbonControl
Implements IComponent, IDisposable, RibbonComponent
派生
属性
实现

注解

注意

此接口由 Visual Studio Tools for Office Runtime 实现。 不应在代码中实现此接口。 有关更多信息,请参见 Visual Studio Tools for Office Runtime Overview

使用情况

本文档介绍面向 .NET Framework 4 或更高版本的 Office 项目中所用的此类型的版本。 在面向 .NET Framework 3.5 的项目中,此类型可能具有不同的成员,因此本文档为此类型提供的代码示例可能并不适用。 有关在面向 .NET Framework 3.5 的项目中使用此类型的文档,请参阅 Visual Studio 2008 文档中的以下参考部分:http://go.microsoft.com/fwlink/?LinkId=160658

属性

Enabled

获取或设置一个值,该值指示是否启用此 RibbonControl

Id

获取一个字符串,Microsoft Office 将用其标识此 RibbonControl 对象。

Name

获取或设置此 RibbonComponent 的名称。

(继承自 RibbonComponent)
Parent

获取一个 RibbonComponent,表示此 RibbonComponent 的父级。

(继承自 RibbonComponent)
Ribbon

获取包含控件层次结构的顶级 Ribbon 对象。

(继承自 RibbonComponent)
RibbonUI

获取 Microsoft Office 应用程序提供给功能区扩展性代码的 IRibbonUI 实例。

(继承自 RibbonComponent)
Tag

获取或设置与此 RibbonComponent 关联的应用程序特定的数据。

(继承自 RibbonComponent)
Visible

获取或设置一个值,该值指示此 RibbonControl 是否可见。

方法

PerformDynamicLayout()

如果 RibbonComponent 具有一个动态父级(如动态菜单)且布局未挂起,则调用父控件的 Microsoft.Office.Core.IRibbonUI.InvalidateControl 方法。

(继承自 RibbonComponent)
PerformLayout()

如果 具有一个父级,且布局未挂起,则调用 RibbonComponentMicrosoft.Office.Core.IRibbonUI.InvalidateControl。

(继承自 RibbonComponent)
ResumeLayout()

取消 SuspendLayout() 方法的效果。

(继承自 RibbonComponent)
ResumeLayout(Boolean)

取消 SuspendLayout() 方法的效果。

(继承自 RibbonComponent)
SuspendLayout()

阻止 Microsoft Office 应用程序刷新功能区上的控件状态。

(继承自 RibbonComponent)

适用于