Dundas Chart for Windows Forms
CommandUI Constructor(String,Boolean,Boolean,Boolean,String)
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > CommandUI Class > CommandUI Constructor : CommandUI Constructor(String,Boolean,Boolean,Boolean,String)


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
Creates a new, initialized instance of a CommandUI object.
Create new instance of CommandUI object.

Syntax

Visual Basic (Declaration)  
Public Function New( _
   ByVal commandName As String, _
   ByVal enableImage As Boolean, _
   ByVal enableTooltip As Boolean, _
   ByVal enableText As Boolean, _
   ByVal parameters As String _
)
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)
C#  
public CommandUI( 
   string commandName,
   bool enableImage,
   bool enableTooltip,
   bool enableText,
   string 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

© 2009 All Rights Reserved.