# OpcText Members

> Reference: Represents a human readable string value optionally associated with a Culture and localization relevant information.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcText</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

## Constructors

### OpcText

<span class="api-meta">3 overloads</span>

| Overload | Description |
|---|---|
| [OpcText(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#opctext-system-string) | Initializes a new instance of the [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) class using the `value`. |
| [OpcText(string, string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#opctext-system-string-system-string) | Initializes a new instance of the [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) class using the `value` and the `cultureName` of the `value`. |
| [OpcText(string, string, string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#opctext-system-string-system-string-system-string) | Initializes a new instance of the [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) class using the `value`, `cultureName` and `key` of the `value`. |

#### OpcText(string)

Initializes a new instance of the [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) class using the `value`.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcText(string value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(value As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The value to represent. |

#### OpcText(string, string)

Initializes a new instance of the [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) class using the `value` and the `cultureName` of the `value`.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcText(string value, string cultureName)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(value As String, cultureName As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The value to represent. |
| `cultureName` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The name of the culture used to localize the `value`. |

#### OpcText(string, string, string)

Initializes a new instance of the [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) class using the `value`, `cultureName` and `key` of the `value`.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcText(string value, string cultureName, string key)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(value As String, cultureName As String, key As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The value to represent. |
| `cultureName` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The name of the culture used to localize the value. |
| `key` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The key information associated with the `value` which can be used to look up alternative localizations. |

## Properties

### Culture

Gets the culture which is used to localize the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#value).

<div class="api-signature" data-lang="csharp">

```csharp
public CultureInfo Culture { get; }
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public ReadOnly Property Culture As CultureInfo
```

</div>

**Property value**

[CultureInfo](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo)

An instance of the [CultureInfo](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo) if [CultureName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#culturename) references to a known culture; otherwise the [InvariantCulture](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo.invariantculture).

### CultureName

Gets the name of the culture used to localize the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#value).

<div class="api-signature" data-lang="csharp">

```csharp
public string CultureName { get; }
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public ReadOnly Property CultureName As String
```

</div>

**Property value**

[String](https://learn.microsoft.com/dotnet/api/system.string)

The [Name](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo.name) of the culture used to localize the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#value).

### IsNull

Gets a value indicating whether the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#value) represented is a null reference (Nothing in Visual Basic).

<div class="api-signature" data-lang="csharp">

```csharp
public bool IsNull { get; }
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public ReadOnly Property IsNull As Boolean
```

</div>

**Property value**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#value) is a null reference (Nothing in Visual Basic); otherwise the value false.

### Key

Gets the key information associated with the [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) which can be used to look up alternative localizations of the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#value).

<div class="api-signature" data-lang="csharp">

```csharp
public string Key { get; }
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public ReadOnly Property Key As String
```

</div>

**Property value**

[String](https://learn.microsoft.com/dotnet/api/system.string)

A key used to look up alternative localizations of the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#value).

### Null

<span class="api-meta">static</span>

Gets a value used to identify an undefined [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/).

<div class="api-signature" data-lang="csharp">

```csharp
public static OpcText Null { get; }
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared ReadOnly Property Null As OpcText
```

</div>

**Property value**

[OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/)

An instance of the [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) class.

### Value

Gets the value represented.

<div class="api-signature" data-lang="csharp">

```csharp
public string Value { get; }
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public ReadOnly Property Value As String
```

</div>

**Property value**

[String](https://learn.microsoft.com/dotnet/api/system.string)

The value associated with the metadata represented.

## Methods

### CompareTo

<span class="api-meta">2 overloads</span>

| Overload | Description |
|---|---|
| [CompareTo(object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#compareto-system-object) | Compares the current [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) with the `other`. |
| [CompareTo(OpcText)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#compareto-opc-uafx-opctext) | Compares the current [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) with another [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/). |

#### CompareTo(object)

Compares the current [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) with the `other`.

<div class="api-signature" data-lang="csharp">

```csharp
public int CompareTo(object other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function CompareTo(other As Object) As Integer
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) to compare with this [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/). |

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

A 32-bit signed integer that indicates the relative order of the objects being compared ([CompareTo(object)](https://learn.microsoft.com/dotnet/api/system.icomparable.compareto)).

**Implements**

[CompareTo(object)](https://learn.microsoft.com/dotnet/api/system.icomparable.compareto)

#### CompareTo(OpcText)

Compares the current [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) with another [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/).

<div class="api-signature" data-lang="csharp">

```csharp
public int CompareTo(OpcText other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function CompareTo(other As OpcText) As Integer
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) to compare with this [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/). |

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

A 32-bit signed integer that indicates the relative order of the objects being compared ([CompareTo(T)](https://learn.microsoft.com/dotnet/api/system.icomparable-1.compareto)).

### Equals

<span class="api-meta">2 overloads</span>

| Overload | Description |
|---|---|
| [Equals(object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#equals-system-object)<span class="api-meta">override</span> | Determines whether the specified `other` is equal to this [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/). |
| [Equals(OpcText)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#equals-opc-uafx-opctext) | Determines whether the specified `other` is equal to this [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/). |

#### Equals(object)

<span class="api-meta">override</span>

Determines whether the specified `other` is equal to this [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/).

<div class="api-signature" data-lang="csharp">

```csharp
public override bool Equals(object other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function Equals(other As Object) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) to compare to the current [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/). |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the specified [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) is equal to the current [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/); otherwise the value false.

**Overrides**

[Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals%28system-object%29)

#### Equals(OpcText)

Determines whether the specified `other` is equal to this [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/).

<div class="api-signature" data-lang="csharp">

```csharp
public bool Equals(OpcText other)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function Equals(other As OpcText) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) to compare to the current [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/). |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the specified [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) is equal to the current [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/); otherwise the value false.

### Format

Replaces the format items in this [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) with the string representation of a corresponding object in the specified array.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcText Format(params object[] args)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Function Format(ParamArray args As Object()) As OpcText
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `args` | params [Object](https://learn.microsoft.com/dotnet/api/system.object)[] | An object array that contains zero or more objects to format. |

**Returns**

[OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/)

A new instance of the [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) class with the same metadata as this [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) instance with its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#value) formatted with the `args` specified.

### GetHashCode

<span class="api-meta">override</span>

Retrieves a hash code for this [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/).

<div class="api-signature" data-lang="csharp">

```csharp
public override int GetHashCode()
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function GetHashCode() As Integer
```

</div>

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

An [int](https://learn.microsoft.com/dotnet/api/system.int32) that contains the hash code for the [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/).

**Overrides**

[GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)

### ToString

<span class="api-meta">2 overloads</span>

| Overload | Description |
|---|---|
| [ToString()](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#tostring-noparams)<span class="api-meta">override</span> | Converts the value of this instance to its equivalent string representation. |
| [ToString(string, IFormatProvider)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#tostring-system-string-system-iformatprovider)<span class="api-meta">virtual</span> | Converts the value of this instance to its equivalent string representation using the specified format and culture-specific format information. |

#### ToString()

<span class="api-meta">override</span>

Converts the value of this instance to its equivalent string representation.

<div class="api-signature" data-lang="csharp">

```csharp
public override string ToString()
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function ToString() As String
```

</div>

**Returns**

[String](https://learn.microsoft.com/dotnet/api/system.string)

The string representation of the value of this instance.

**Overrides**

[ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

#### ToString(string, IFormatProvider)

<span class="api-meta">virtual</span>

Converts the value of this instance to its equivalent string representation using the specified format and culture-specific format information.

<div class="api-signature" data-lang="csharp">

```csharp
public virtual string ToString(string format, IFormatProvider formatProvider)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overridable Function ToString(
    format As String,
    formatProvider As IFormatProvider) As String
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `format` | [String](https://learn.microsoft.com/dotnet/api/system.string) | A standard or custom format string. |
| `formatProvider` | [IFormatProvider](https://learn.microsoft.com/dotnet/api/system.iformatprovider) | An object that supplies culture-specific formatting information. |

**Returns**

[String](https://learn.microsoft.com/dotnet/api/system.string)

The string representation of the value of this instance as specified by format and provider.

**Exceptions**

| Exception | Condition |
|---|---|
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `format` is invalid or not supported. |

**Implements**

[ToString(string, IFormatProvider)](https://learn.microsoft.com/dotnet/api/system.iformattable.tostring)

## Operators

### Equality

<span class="api-meta">static</span>

Returns a value indicating whether two instance of [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) are equal.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator ==(OpcText left, OpcText right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator =(left As OpcText, right As OpcText) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The first [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) to compare. |
| `right` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The second [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) to compare. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if left and right are equal; otherwise the value false.

### GreaterThan

<span class="api-meta">static</span>

Determines whether the first specified [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object is greater than the second specified [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator >(OpcText left, OpcText right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator >(left As OpcText, right As OpcText) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The first [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object. |
| `right` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The second [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is greater than `right`; otherwise, false.

### GreaterThanOrEqual

<span class="api-meta">static</span>

Determines whether the first specified [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object is greater than or equal to the second specified [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator >=(OpcText left, OpcText right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator >=(left As OpcText, right As OpcText) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The first [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object. |
| `right` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The second [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is greater than or equal to `right`; otherwise, false.

### Implicit

<span class="api-meta">static · 4 overloads</span>

| Overload | Description |
|---|---|
| [implicit operator OpcText(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#op-implicit-system-string-opc-uafx-opctext)<span class="api-meta">static</span> | Converts a [string](https://learn.microsoft.com/dotnet/api/system.string) to an [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object. |
| [implicit operator OpcText(LocalizedText)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#op-implicit-opc-ua-localizedtext-opc-uafx-opctext)<span class="api-meta">static</span> | Converts a <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.LocalizedText">LocalizedText</abbr> to an [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object. |
| [implicit operator LocalizedText(OpcText)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#op-implicit-opc-uafx-opctext-opc-ua-localizedtext)<span class="api-meta">static</span> | Converts a [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) to an <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.LocalizedText">LocalizedText</abbr> object. |
| [implicit operator string(OpcText)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/members#op-implicit-opc-uafx-opctext-system-string)<span class="api-meta">static</span> | Converts a [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) to an <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.LocalizedText">LocalizedText</abbr> object. |

#### implicit operator OpcText(string)

<span class="api-meta">static</span>

Converts a [string](https://learn.microsoft.com/dotnet/api/system.string) to an [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator OpcText(string value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As String) As OpcText
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | A [string](https://learn.microsoft.com/dotnet/api/system.string) that represents the value. |

**Returns**

[OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/)

An instance of the [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) class initialized from the `value`.

#### implicit operator OpcText(LocalizedText)

<span class="api-meta">static</span>

Converts a <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.LocalizedText">LocalizedText</abbr> to an [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator OpcText(LocalizedText value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As LocalizedText) As OpcText
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.LocalizedText">LocalizedText</abbr> | A <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.LocalizedText">LocalizedText</abbr> that represents the value. |

**Returns**

[OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/)

An instance of the [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) class initialized from the `value`.

#### implicit operator LocalizedText(OpcText)

<span class="api-meta">static</span>

Converts a [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) to an <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.LocalizedText">LocalizedText</abbr> object.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator LocalizedText(OpcText value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As OpcText) As LocalizedText
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | A [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) that represents the value. |

**Returns**

<abbr title="OPC Foundation stack type, not documented here: Opc.Ua.LocalizedText">LocalizedText</abbr>

An instance of the <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.LocalizedText">LocalizedText</abbr> class initialized from the `value`.

#### implicit operator string(OpcText)

<span class="api-meta">static</span>

Converts a [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) to an <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.LocalizedText">LocalizedText</abbr> object.

<div class="api-signature" data-lang="csharp">

```csharp
public static implicit operator string(OpcText value)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Widening Operator CType(value As OpcText) As String
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | A [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) that represents the value. |

**Returns**

[String](https://learn.microsoft.com/dotnet/api/system.string)

An instance of the <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.LocalizedText">LocalizedText</abbr> class initialized from the `value`.

### Inequality

<span class="api-meta">static</span>

Returns a value indicating whether two instances of [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) are not equal.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator !=(OpcText left, OpcText right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator <>(left As OpcText, right As OpcText) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The first [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) to compare. |
| `right` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The second [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) to compare. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if left and right are not equal; otherwise the value false.

### LessThan

<span class="api-meta">static</span>

Determines whether the first specified [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object is less than the second specified [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator <(OpcText left, OpcText right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator <(left As OpcText, right As OpcText) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The first [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object. |
| `right` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The second [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is less than `right`; otherwise the value false.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `left` is a null reference (Nothing in Visual Basic). |

### LessThanOrEqual

<span class="api-meta">static</span>

Determines whether the first specified [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object is less than or equal to the second [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object.

<div class="api-signature" data-lang="csharp">

```csharp
public static bool operator <=(OpcText left, OpcText right)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Shared Operator <=(left As OpcText, right As OpcText) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The first [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object. |
| `right` | [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) | The second [OpcText](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctext/) object. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is less than or equal to `right`; otherwise the value false.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `left` is a null reference (Nothing in Visual Basic). |
