ContextCommandMenu

ContextCommandMenu表示子菜单,类型为RibbonMenu.ContextCommandMenu。
子菜单同样通过快捷菜单的Items属性来获得,例如:

Dim fm As RibbonMenu.ContextCommandMenu = ContextMenus("Cell").Items("Filter")

子菜单中本身也有一个Items,用来返回子菜单中指定名称的项目,例如:

Dim ft As RibbonMenu.ContextCommand = ContextMenus("Cell").Items("Filter").Items("FilterTrue")

Items是子菜单的默认属性,所以上面的代码也可以简化为:

Dim ft As RibbonMenu.ContextCommand = ContextMenus("Cell")("Filter")("FilterTrue")


本页地址:http://www.foxtable.com/webhelp/topics/1333.htm