QuickOPC User's Guide and Reference
StatusToColorConverter Constructor(Color,Color,Color,Color)



OpcLabs.BaseLibComponents Assembly > OpcLabs.BaseLib.Components Namespace > StatusToColorConverter Class > StatusToColorConverter Constructor : StatusToColorConverter Constructor(Color,Color,Color,Color)
The color returned for Unknown status.
The color returned for Normal status.
The color returned for Warning status.
The color returned for Error status.
Initializes an instance of the StatusToColorConverter class.
Syntax
'Declaration
 
Public Function New( _
   ByVal unknownColor As Color, _
   ByVal normalColor As Color, _
   ByVal warningColor As Color, _
   ByVal errorColor As Color _
)
'Usage
 
Dim unknownColor As Color
Dim normalColor As Color
Dim warningColor As Color
Dim errorColor As Color
 
Dim instance As New StatusToColorConverter(unknownColor, normalColor, warningColor, errorColor)
public StatusToColorConverter( 
   Color unknownColor,
   Color normalColor,
   Color warningColor,
   Color errorColor
)
public:
StatusToColorConverter( 
   Color unknownColor,
   Color normalColor,
   Color warningColor,
   Color errorColor
)

Parameters

unknownColor
The color returned for Unknown status.
normalColor
The color returned for Normal status.
warningColor
The color returned for Warning status.
errorColor
The color returned for Error status.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also