RibbonCollectionBase.GetRibbonContextCollection 方法

定义

重载

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

返回

IList<IRibbonExtension>

注解

若要访问项目中的功能区,请调用 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

适用于