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 value of this parameter can be null (Nothing in Visual Basic).

The converter parameter to use.

The value of this parameter can be null (Nothing in Visual Basic).

The culture to use in the converter.

The value of this parameter cannot be null (Nothing in Visual Basic).

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.

The value of this parameter can be null (Nothing in Visual Basic).

parameter
The converter parameter to use.

The value of this parameter can be null (Nothing in Visual Basic).

culture
The culture to use in the converter.

The value of this parameter cannot be null (Nothing in Visual Basic).

Return Value

A converted value.

This method can return null (Nothing in Visual Basic).

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