Description

Set or get the icon for a menu item, a toolbar button or a shortcut.

Property type

A String value.  

Syntax

object.Icon [= value]

The Icon Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McCommandBarControl.
valueA String value.

Remarks

The icon can only be assigned before the control is created either by Load or Create, the property becomes read-only after that.