Leadtools.Medical.Workstation Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
GetWorkstsationControl(String,Control) Method
See Also 
Leadtools.Medical.Workstation.UI.Factory Namespace > WorkstationUIFactory Class > GetWorkstsationControl Method : GetWorkstsationControl(String,Control) Method




name
The name of the control to look at its actual type to create.
defaultControl
The default control to return if the specified name was not mapped to a control.
name
The name of the control to look at its actual type to create.
defaultControl
The default control to return if the specified name was not mapped to a control.
Creates a UI medical workstation control by a given name.

Syntax

Visual Basic (Declaration) 
Overloads Public Function GetWorkstsationControl( _
   ByVal name As String, _
   ByVal defaultControl As Control _
) As Control
Visual Basic (Usage)Copy Code
Dim instance As WorkstationUIFactory
Dim name As String
Dim defaultControl As Control
Dim value As Control
 
value = instance.GetWorkstsationControl(name, defaultControl)
C# 
public Control GetWorkstsationControl( 
   string name,
   Control defaultControl
)
Managed Extensions for C++ 
public: Control GetWorkstsationControl( 
   string* name,
   Control defaultControl
) 
C++/CLI 
public:
Control GetWorkstsationControl( 
   String^ name,
   Control defaultControl
) 

Parameters

name
The name of the control to look at its actual type to create.
defaultControl
The default control to return if the specified name was not mapped to a control.

Remarks

All UI controls in the Medical Workstation are created using this function. This allows developers to override the default controls with their own custom controls. The name parameter is actually the class name of the control.

To provide your own type of a control. All you need to do is to update the WorkstationUISettings section in the application configuration file with the original controls name and the new type you want to use for that control.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

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