Creates a new, initialized instance of a
CommandUI object.
Create new instance of CommandUI object.
Syntax
Visual Basic (Usage) |
Copy Code |
Dim commandName As String
Dim enableImage As Boolean
Dim enableTooltip As Boolean
Dim enableText As Boolean
Dim parameters As String
Dim instance As CommandUI(commandName, enableImage, enableTooltip, enableText, parameters)
|
Parameters
- commandName
- The name of the Command to link this CommandUI instance to.
The Command name to link this CommandUI instance with Command
- enableImage
- Determines whether or not images in the command UI are automatically displayed.
Determines whether or not to show image in control automaticaly
- enableTooltip
- Determines whether or not a tooltip is automatically displayed by the command UI instance.
Determines whether or not to show tooltip in control automaticaly
- enableText
- Determines whether or not text is automatically displayed by the command UI instance.
Determines whether or not to show text in control automaticaly
- parameters
- Determines parameters to be executed by the command UI instance.
Represents the parameters which is passed to command to execute
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also