Style property
Determines whether a toolbar button or menu item shows an icon, a caption, or some combination.
Version added
2000
Syntax
| |
intRet |
Integer. The current style of a toolbar button or menu item. |
object |
Required. An expression that returns a Menu, MenuItem, or ToolbarItem object. |
intExpression |
Required Integer. The new style for a toolbar button or menu item. |
Remarks
If a style consists of different text, line, and fill styles, the Style property returns the fill style. If you set the Style property to a nonexistent style, your program generates an error.
Possible intval and intExpression values are listed in the following table. These constants are declared by the Visio type library in VisUIButtonStyle.
Constant |
Value |
visButtonAutomatic |
0 |
visButtonCaption |
1 |
visButtonIcon |
2 |
visCaptionAndIcon |
3 |