# OpcValueRange Class

<dl class="api-definition">
<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>Members</dt>
<dd><a href="./members">OpcValueRange Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Defines the range for a value.

## Syntax

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

```csharp
public class OpcValueRange
```

</div>

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

```vbnet
Public Class OpcValueRange
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → **OpcValueRange**

## Remarks

An instance travels as the structure Range (OPC 10000-8), also as the value of a variable or an argument of a method whose data type is the abstract Structure.

## Constructors

| Name | Description |
|---|---|
| [OpcValueRange](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvaluerange/members#opcvaluerange)<span class="api-meta">3 overloads</span> | Initializes a new instance of the OpcValueRange class. |

## Properties

| Name | Description |
|---|---|
| [High](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvaluerange/members#high) | Gets or sets the highest value in the range. |
| [Low](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvaluerange/members#low) | Gets or sets the lowest value in the range. |
| [Magnitude](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvaluerange/members#magnitude) | Gets the mathematical distance between [Low](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvaluerange/members#low) and [High](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvaluerange/members#high). |

## Methods

| Name | Description |
|---|---|
| [Of](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvaluerange/members#of)<span class="api-meta">static · 4 overloads · since v2.10</span> | Determines the according OpcValueRange of the type specified by `T`. |
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvaluerange/members#tostring)<span class="api-meta">override</span> | Returns a string that represents the current OpcValueRange. |

## Operators

| Name | Description |
|---|---|
| [Explicit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvaluerange/members#op-explicit)<span class="api-meta">static</span> | Converts a OpcValueRange to an <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.Range">Range</abbr> object. |
| [Implicit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvaluerange/members#op-implicit)<span class="api-meta">static</span> | Converts a <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.Range">Range</abbr> to an OpcValueRange object. |

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.5–v2.59 |
