Leadtools.Dicom.Common Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AddCommand(String,Boolean,EventHandler) Method
See Also 
Leadtools.Dicom.Common.Editing Namespace > DicomEditableObject Class > AddCommand Method : AddCommand(String,Boolean,EventHandler) Method



name
The name of the command.
enable
if set to true enable the command.
handler
The handler to be invoked when the command is selected.
name
The name of the command.
enable
if set to true enable the command.
handler
The handler to be invoked when the command is selected.
Adds the command.

Syntax

Visual Basic (Declaration) 
Overloads Public Function AddCommand( _
   ByVal name As String, _
   ByVal enable As Boolean, _
   ByVal handler As EventHandler _
) As CommandID
Visual Basic (Usage)Copy Code
Dim instance As DicomEditableObject
Dim name As String
Dim enable As Boolean
Dim handler As EventHandler
Dim value As CommandID
 
value = instance.AddCommand(name, enable, handler)
C# 
public CommandID AddCommand( 
   string name,
   bool enable,
   EventHandler handler
)
C++/CLI 
public:
CommandID^ AddCommand( 
   String^ name,
   bool enable,
   EventHandler^ handler
) 

Parameters

name
The name of the command.
enable
if set to true enable the command.
handler
The handler to be invoked when the command is selected.

Return Value

System.ComponentModel.CommandID of the new command.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Dicom.Common requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features