The CommandBarControls interface supports two properties, count and item.
count | |
Access | Read-only |
Type | Long |
Description | Returns the number of CommandBarControl objects in this collection. |
Usage | |
JScript | CommandBarControls_object.count; |
VBScript | CommandBarControls_object.count |
Example |
// SoftQuad Script Language JSCRIPT: var cmdBars = Application.CommandBars; var cmdBar = cmdBars.item("Standard"); Application.alert(cmdBar.Controls.count); |
item(variantIndex) | |
Access | Read/write |
Type | CommandBarControl |
Description | Returns the CommandBarControl corresponding to variantIndex. Allowed values for variantIndex are 1 to count, or a control name. |
Usage | |
JScript |
CommandBarControls_object.item(variantIndex); |
VBScript |
CommandBarControls_object.item(variantIndex) |
Example |
// SoftQuad Script Language JSCRIPT: var cmdBars = Application.CommandBars; var cmdBar = cmdBars.item("Standard"); Application.alert(cmdBar.Controls.item(1).TooltipText); |
Copyright © SoftQuad Software Inc. 1999