Command Bar Properties

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

Name

Returns

Description

Adaptive Menu

Boolean

Set/Get whether short menus are shown.

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.

Context

String

Set/Get a string that determines where a command bar will be saved. The string is defined and interpreted by the application.

Controls

Read-only. Returns a CommandBarControl object that represents all the controls on a command bar.

Enabled

Boolean

Set/Get whether the CommandBar is enabled. Setting this property to True causes the name of the command bar to appear in the list of available command bars.

Height

Long

Set/Get the height of the CommandBar.

Index

Long

Read-only. Returns the index number for a CommandBar in the CommandBars collection.

Name

Returns

Description

Left

Long

Set/Get the distance (in pixels) of the left edge of the command bar relative to the screen.

Name

String

Set/Get the name of the CommandBar.

NameLocal

String

Set/Get the name of a built-in command bar as it's displayed in the language version of the container application, or the name of a custom command bar.

Position

MsoBar Position

Set/Get the position of the command bar.

Protection

MsoBar Protection

Set/Get the way a command bar is protected from user customization.

RowIndex

Long

Set/Get the docking order of a command bar in relation to other command bars in the same docking area. Can be an integer greater than 0, or either of the following MsoBar Row constants: msoBarRowFirst or msoBarRowLast.

Top

Long

Set/Get the distance (in points) from the top of the command bar to the top edge of the screen.

Type

MsoBar Type

Read-only. Returns the type of command bar.

Visible

Boolean

Set/Get whether the command bar is visible. The Enabled property for a command bar must be set to True before the visible property is set to True.

Width

Long

Set/Get the width (in pixels) of the specified command bar.

Was this article helpful?

+1 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


Responses

  • gimja tesmi
    How to set height CommandBars?
    9 years ago

Post a comment