Command BarControl Properties

The Application, Creator, and Parent properties are defined at the beginning of this appendix.

Name

Returns

Description

BeginGroup

Boolean

Set/Get whether the specified CommandBarControl appears at the beginning of a group of controls on the command bar.

BuiltIn

Boolean

Read-only. Returns True if the specified command bar or command bar control is a built-in command bar or control of the container application. Returns False if it's a custom command bar or control, or if it's a built-in control whose OnAction property has been set.

Caption

String

Set/Get the caption text of the CommandBarControl.

Description Text

String

Set/Get the description for a CommandBarControl. The description is not displayed to the user, but it can be useful for documenting the behavior of the control for other developers.

Enabled

Boolean

Set/Get whether the CommandBarControl object is enabled.

Height

Long

Set/Get the height of the CommandBarControl.

HelpContext Id

Long

Set/Get the Help context Id number for the Help topic attached to the CommandBarControl.

HelpFile

String

Set/Get the file name for the Help topic for the Command BarControl.

Id

Long

Read-only. Returns the Id for a built-in CommandBar Control.

Index

Long

Read-only. Returns a Long representing the index number for the CommandBarControl object in the CommandBar-Controls collection.

IsPriority Dropped

Boolean

Read-only. Returns whether the CommandBar 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.) A CommandBarControl with Visible set to True will not be immediately visible on a Personalized menu or toolbar if IsPriorityDropped is True.

Left

Long

Read-only. Returns the horizontal position of the Command BarControl (in pixels) relative to the left edge of the screen. Returns the distance from the left side of the docking area.

OLEUsage

MsoControl OLEUsage

Set/Get the OLE client and OLE server roles in which a CommandBarControl will be used when two Microsoft Office applications are merged.

Name

Returns

Description

OnAction

String

Set/Get the name of a Visual Basic procedure that will run when the user clicks or changes the value of a Command BarControl.

Parameter

String

Set/Get a string that an application can use to execute a command.

Priority

Long

Set/Get the priority of a CommandBarControl.

Tag

String

Set/Get information about the CommandBarControl —for example, data to be used as an argument in procedures.

Tooltip Text

String

Set/Get the text displayed in the CommandBarControl object's ScreenTip.

Top

Long

Read-only. Returns the distance (in pixels) from the top edge of the CommandBarControl to the top edge of the screen.

Type

MsoControl Type

Read-only. Returns the type of CommandBarControl.

Visible

Boolean

Set/Get whether the CommandBarControl is visible.

Width

Long

Set/Get the width (in pixels) of the specified Command BarControl.

Was this article helpful?

0 0
The Accidental Blogging Millionaires

The Accidental Blogging Millionaires

Get Inspired By The Most Popular Bloggers Online! If You Want To Skyrocket Your Success With Business And Improve Your Overall Life You Need To Have A Look At The Accidental Blogging Millionaires! Business can be a fight, particularly when you’re trying to establish one online and like all fights, to succeed you must find the winning techniques and apply them.

Get My Free Ebook


Post a comment