Table of contents
TOC
折叠目录
展开目录

CommandBarPopup 成员 (办公室)CommandBarPopup Members (Office)

office 365 dev account|上次更新日期: 2017/9/25
|
1 参与者

代表命令栏上的一个弹出式控件。Represents a pop-up control on a command bar.

代表命令栏上的一个弹出式控件。Represents a pop-up control on a command bar.

方法Methods

名称Name说明Description
CopyCopy将一个命令栏弹出式控件复制到已有的命令栏中。Copies a command bar popup control to an existing command bar.
删除Delete从集合中删除CommandBarPopup对象。Deletes the CommandBarPopup object from its collection.
ExecuteExecute运行过程或分配给指定的CommandBarPopup控件的内置命令。Runs the procedure or built-in command assigned to the specified CommandBarPopup control.
MoveMove将指定的CommandBarPopup控件移动到已有的命令栏。Moves the specified CommandBarPopup control to an existing command bar.
ResetReset将内置的CommandBarPopup控件重置为其原始的函数和图符。Resets a built-in CommandBarPopup control to its original function and face.
SetFocusSetFocus将键盘焦点移到指定的CommandBarPopup控件。如果弹出式菜单被禁用或不可见,则此方法将失败。Moves the keyboard focus to the specified CommandBarPopup control. If the popup is disabled or isn't visible, this method will fail.

属性Properties

名称Name描述Description
ApplicationApplication获取表示CommandBarPopup对象 (可对一个自动化对象使用该属性来返回该对象的容器应用程序) 的容器应用程序的应用程序对象。只读的。Gets an Application object that represents the container application for the CommandBarPopup object (you can use this property with an Automation object to return that object's container application). Read-only.
快捷BeginGroup如果指定的命令栏控件显示在命令栏上控件组的开头,则获取True 。读/写。Gets True if the specified command bar control appears at the beginning of a group of controls on the command bar. Read/write.
内建BuiltIn如果指定的命令栏弹出式控件是容器应用程序的内置命令栏,则为True 。如果它是一个自定义命令栏,则返回False 。只读的。Is True if the specified command bar popup is a built-in command bar of the container application. Returns False if it's a custom command bar. Read-only.
CaptionCaption获取或设置命令栏控件的标题文字。可读写。Gets or sets the caption text for a command bar control. Read/write.
命令栏CommandBar获取表示指定弹出式控件所显示的菜单的命令栏对象。只读的。Gets a CommandBar object that represents the menu displayed by the specified pop-up control. Read-only.
ControlsControls获取一个CommandBarControls对象,该对象表示一个弹出式控件上的所有控件。只读的。Gets a CommandBarControls object that represents all the controls on a pop-up control. Read-only.
CreatorCreator获取一个 32 位整数,它指示在其中创建CommandBarPopup对象的应用程序。只读的。Gets a 32-bit integer that indicates the application in which the CommandBarPopup object was created. Read-only.
描述DescriptionText获取或设置命令栏弹出式控件的说明。可读写。Gets or sets the description for a command barpopup control. Read/write.
EnabledEnabled如果启用了CommandBarPopup ,则为True 。读/写。Is True if the CommandBarPopup is enabled. Read/write.
HeightHeight获取或设置CommandBarPopup控件的高度。读/写。Gets or sets the height of a CommandBarPopup control. Read/write.
帮助上下文 IdHelpContextId获取或设置的帮助上下文 Id 号附加到CommandBarPopup控件的帮助主题。读/写。Gets or sets the Help context Id number for the Help topic attached to the CommandBarPopup control. Read/write.
帮助文件HelpFile获取或设置文件的名称附加到CommandBarPopup控件的帮助主题。读/写。Gets or sets the file name for the Help topic attached to the CommandBarPopup control. Read/write.
IdId获取内置CommandBarPopup控件的 ID。只读的。Gets the ID for a built-in CommandBarPopup control. Read-only.
IndexIndex获取一个LongCommandBarPopup对象在集合中的索引号。只读的。Gets a Long representing the index number for a CommandBarPopup object in the collection. Read-only.
IsPriorityDroppedIsPriorityDropped如果CommandBarPopup控件从菜单或工具栏根据使用统计和布局空间将中略去,则获取True 。(请注意,这不是控件的可见性由可见性属性设置为相同)。只读的。Gets True if the CommandBarPopup control is currently dropped from the menu or toolbar based on usage statistics and layout space. (Note that this is not the same as the control's visibility, as set by the Visible property). Read-only.
LeftLeft获取指定的CommandBarPopup控件的水平位置 (以像素为单位),相对于屏幕左边缘。返回与固定区域的左边的距离。只读的。Gets the horizontal position of the specified CommandBarPopup control (in pixels) relative to the left edge of the screen. Returns the distance from the left side of the docking area. Read-only.
OLEMenuGroupOLEMenuGroup获取或设置一个MsoOLEMenuGroup常量,该常量表示,在合并 OLE 服务器菜单组与 OLE 客户端菜单组时指定的命令栏弹出式控件所属的菜单组 (也就是说,当容器的对象应用程序类型嵌入在其他应用程序)。读/写。Gets or sets a MsoOLEMenuGroup constant that represents the menu group that the specified command bar pop-up control belongs to when the menu groups of the OLE server are merged with the menu groups of an OLE client (that is, when an object of the container application type is embedded in another application). Read/write.
OLEUsageOLEUsage获取或设置 OLE 客户端和合并两个 Microsoft Office 应用程序时的CommandBarPopup控件使用的 OLE 服务器角色。读/写。Gets or sets the OLE client and OLE server roles in which a CommandBarPopup control is used when two Microsoft Office applications are merged. Read/write.
OnActionOnAction获取或设置当用户单击按钮或更改CommandBarPopup控件的值时,将运行 Visual Basic 过程的名称。读/写。Gets or sets the name of a Visual Basic procedure that will run when the user clicks or changes the value of a CommandBarPopup control. Read/write.
参数Parameter获取或设置一个字符串,应用程序可以使用CommandBarPopup控件中执行命令。读/写。Gets or sets a string that an application can use to execute a command from a CommandBarPopup control. Read/write.
ParentParent获取对象的CommandBarPopup对象。只读的。Gets the Parent object for the CommandBarPopup object. Read-only.
PriorityPriority获取或设置CommandBarPopup控件的优先级。读/写。Gets or sets the priority of a CommandBarPopup control. Read/write.
TagTag获取或设置CommandBarPopup控件,如可以用作在过程中,参数的数据或用于识别该控件的信息的信息。读/写。Gets or sets information about the CommandBarPopup control, such as data that can be used as an argument in procedures, or information that identifies the control. Read/write.
工具提示文字TooltipText获取或设置CommandBarPopup 的屏幕提示中显示的文本。读/写。Gets or sets the text displayed in a CommandBarPopup'sScreenTip. Read/write.
TopTop获取从指定的CommandBarPopup控件的上边缘到屏幕的上边缘的距离 (以像素为单位)。只读的。Gets the distance (in pixels) from the top edge of the specified CommandBarPopup control to the top edge of the screen. Read-only.
类型Type获取的CommandBarPopup控件的类型。只读的。Gets the type of CommandBarPopup control. Read-only.
VisibleVisible获取或设置CommandBarPopup控件的Visible属性。读/写。Gets or sets the Visible property of the CommandBarPopup control. Read/write.
WidthWidth获取或设置指定的CommandBarPopup控件的宽度 (以像素为单位)。读/写。Gets or sets the width (in pixels) of the specified CommandBarPopup control. Read/write.
© 2018 Microsoft