ToolbarSet.Caption Property
Visio Automation Reference |
Gets or sets the caption for an object. Read/write.
Version Information
Version Added: Visio 4.0
Syntax
expression.Caption
expression A variable that represents a ToolbarSet object.
Return Value
String
Remarks
Visio does not use the Caption property of a MenuSet or ToolbarSet object.
- Use an ampersand (&) in the string to cause the next character in the string to become the shortcut key for that menu or menu item. For example, the string "F*&o*rmat" causes o to become the shortcut key for that menu item in that one menu.
- Use "" in the string to display a double quotation mark on the menu.
- Use && in the string to display an ampersand on the menu.
Example
The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the Caption property. It adds a menu and menu item to the drawing window menu set and sets the menu and menu item's Caption properties.
To restore the built-in menus in Microsoft Office Visio after you run this macro, call the ThisDocument.ClearCustomMenus method.
Visual Basic for Applications |
---|
|
See Also