OPC Studio User's Guide and Reference
Convert Method (StatusToColorConverter)



OpcLabs.BaseLibComponents Assembly > OpcLabs.BaseLib.Components Namespace > StatusToColorConverter Class : Convert Method
The value to be converted.
The converter parameter to use.
The culture to use in the converter.
Convert a value.
Syntax
'Declaration
 
Public Function Convert( _
   ByVal value As Object, _
   ByVal parameter As Object, _
   ByVal culture As CultureInfo _
) As Object
'Usage
 
Dim instance As StatusToColorConverter
Dim value As Object
Dim parameter As Object
Dim culture As CultureInfo
Dim value As Object
 
value = instance.Convert(value, parameter, culture)

Parameters

value
The value to be converted.
parameter
The converter parameter to use.
culture
The culture to use in the converter.

Return Value

A converted value.
Exceptions
ExceptionDescription
When the value is not of any of the supported types.
Remarks
Values are converted to colors according to following rules:
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