CommandBarButton 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
代表命令栏中的一个按钮控件。
public interface class CommandBarButton : Microsoft::Office::Core::_CommandBarButton, Microsoft::Office::Core::_CommandBarButtonEvents_Event
[System.Runtime.InteropServices.Guid("000C030E-0000-0000-C000-000000000046")]
public interface CommandBarButton : Microsoft.Office.Core._CommandBarButton, Microsoft.Office.Core._CommandBarButtonEvents_Event
[<System.Runtime.InteropServices.Guid("000C030E-0000-0000-C000-000000000046")>]
type CommandBarButton = interface
interface _CommandBarButton
interface _CommandBarButtonEvents_Event
Public Interface CommandBarButton
Implements _CommandBarButton, _CommandBarButtonEvents_Event
- 派生
- 属性
- 实现
注解
使用 Controls (index) (其中 index 是控件的索引号)返回 CommandBarButton 对象。 (控件 Type 的 属性必须为 msoControlButton.)
还可以使用 FindControl(Object, Object, Object, Object) 方法返回 CommandBarButton 对象。
属性
| accChild[Object] |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| accChildCount |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| accDefaultAction[Object] |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| accDescription[Object] |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| accFocus |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| accHelp[Object] |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| accHelpTopic[String, Object] |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| accKeyboardShortcut[Object] |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| accName[Object] |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| accParent |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| accRole[Object] |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| accSelection |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| accState[Object] |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| accValue[Object] |
代表命令栏中的一个按钮控件。 (继承自 IAccessible) |
| Application |
返回一个 Application 对象,该对象代表该对象的容器应用程序。 (继承自 CommandBarControl) |
| BeginGroup |
确定指定的命令栏控件是否显示在命令栏上一组控件的开头。 (继承自 CommandBarControl) |
| BuiltIn |
确定指定的命令栏控件是否是容器应用程序的内置控件。 (继承自 CommandBarControl) |
| BuiltInFace |
返回或设置一个值,该值指示命令栏按钮控件的面是否为其原始内置人脸。 (继承自 _CommandBarButton) |
| Caption |
返回或设置命令栏控件的描述文字文本。 (继承自 CommandBarControl) |
| Control |
仅供内部使用。 (继承自 CommandBarControl) |
| Creator |
返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。 (继承自 CommandBarControl) |
| DescriptionText |
返回或设置命令栏控件的说明。 (继承自 CommandBarControl) |
| Enabled |
确定是否启用指定的命令栏控件。 (继承自 CommandBarControl) |
| FaceId |
返回或设置命令栏按钮控件的面的 ID 号。 (继承自 _CommandBarButton) |
| Height |
返回或设置命令栏控件的高度。 (继承自 CommandBarControl) |
| HelpContextId |
返回或设置附加到命令栏控件的帮助主题的帮助上下文 ID 号。 (继承自 CommandBarControl) |
| HelpFile |
返回或设置附加到命令栏控件的帮助主题的文件名。 (继承自 CommandBarControl) |
| HyperlinkType |
返回或设置与指定的命令栏按钮关联的超链接类型。 (继承自 _CommandBarButton) |
| Id |
返回内置命令栏控件的 ID。 (继承自 CommandBarControl) |
| Index |
返回一个 Integer 类型的值,表示集合中对象的索引号。 (继承自 CommandBarControl) |
| InstanceId |
仅供内部使用。 (继承自 CommandBarControl) |
| InstanceIdPtr |
仅供内部使用。 (继承自 _CommandBarButton) |
| IsPriorityDropped |
根据使用情况统计信息和布局空间确定控件当前是否从菜单或工具栏中删除。 (继承自 CommandBarControl) |
| Left |
返回指定命令栏控件 (相对于屏幕左边缘) 的水平位置(以像素为单位)。 (继承自 CommandBarControl) |
| Mask |
返回或设置一个 IPictureDisp 对象,该对象代表对象的掩码图像 _CommandBarButton 。 (继承自 _CommandBarButton) |
| OLEUsage |
返回或设置合并两个 Microsoft Office 应用程序时将使用命令栏控件的 OLE 客户端和 OLE 服务器角色。 (继承自 CommandBarControl) |
| OnAction |
返回或设置在用户单击或更改命令栏控件的值时将运行的过程的名称。 (继承自 CommandBarControl) |
| Parameter |
返回或设置应用程序可用于执行命令的字符串。 (继承自 CommandBarControl) |
| Parent |
返回指定对象的 Parent 对象。 (继承自 CommandBarControl) |
| Picture |
返回或设置表示对象图像的 _CommandBarButtonIPictureDisp 对象。 (继承自 _CommandBarButton) |
| Priority |
返回或设置命令栏控件的优先级。 (继承自 CommandBarControl) |
| ShortcutText |
返回或设置在菜单、子菜单或快捷菜单上显示按钮控件旁边的快捷键文本。 (继承自 _CommandBarButton) |
| State |
返回或设置命令栏按钮控件的外观。 (继承自 _CommandBarButton) |
| Style |
返回或设置命令栏按钮控件的显示方式。 (继承自 _CommandBarButton) |
| Tag |
返回或设置有关命令栏控件的信息,例如可在过程中用作参数的数据,或标识控件的信息。 (继承自 CommandBarControl) |
| TooltipText |
返回或设置命令栏控件的“屏幕提示”中显示的文本。 (继承自 CommandBarControl) |
| Top |
返回从指定命令栏控件的上边缘到屏幕上边缘) (距离(以像素为单位)。 (继承自 CommandBarControl) |
| Type |
返回命令栏控件的类型。 (继承自 CommandBarControl) |
| Visible |
确定指定的对象是否可见。 (继承自 CommandBarControl) |
| Width |
返回或设置指定命令栏控件) 宽度 ((以像素为单位)。 (继承自 CommandBarControl) |
方法
事件
| Click |
当用户单击 CommandBarButton 对象时发生。 (继承自 _CommandBarButtonEvents_Event) |