RibbonCollectionBase.GetRibbonContextCollection 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| GetRibbonContextCollection(Object, Type) | |
| GetRibbonContextCollection<TRibbonCollection>(Object) |
GetRibbonContextCollection(Object, Type)
public System.Collections.Generic.IList<Microsoft.Office.Tools.Ribbon.IRibbonExtension> GetRibbonContextCollection (object contextWindow, Type customRibbonType);
参数
- contextWindow
- Object
- customRibbonType
- Type
返回
注解
若要访问项目中的功能区,请调用 Ribbons 类的属性 Globals 。 有关详细信息,请参阅 Accessing the Ribbon at Run Time。
适用于
GetRibbonContextCollection<TRibbonCollection>(Object)
public TRibbonCollection GetRibbonContextCollection<TRibbonCollection> (object contextWindow);
类型参数
- TRibbonCollection
参数
- contextWindow
- Object
返回
- TRibbonCollection
注解
若要访问项目中的功能区,请调用 Ribbons 类的属性 Globals 。 有关详细信息,请参阅 Accessing the Ribbon at Run Time。