> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class Voltage

Namespace: [OpenTD.Dimension](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Dimension)\
Assembly: OpenTD.dll

```csharp theme={null}
public class Voltage : IDimension
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Voltage](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Dimension.Voltage.md)

## Implements

[IDimension](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Dimension.IDimension.md)

## Inherited Members

[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Methods

### ConvertFromSI(double, UnitsData)

Converts x from SI to input units.

```csharp theme={null}
public double ConvertFromSI(double x, UnitsData units)
```

#### Parameters

`x` [double](https://learn.microsoft.com/dotnet/api/system.double)

`units` [UnitsData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.UnitsData.md)

#### Returns

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

### ConvertToSI(UnitsData, double)

Converts x from input units to SI.

```csharp theme={null}
public double ConvertToSI(UnitsData units, double x)
```

#### Parameters

`units` [UnitsData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.UnitsData.md)

`x` [double](https://learn.microsoft.com/dotnet/api/system.double)

#### Returns

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

### GetName()

Gets the name of the dimension, e.g., "Density".

```csharp theme={null}
public string GetName()
```

#### Returns

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

System.String.

### GetTitle(UnitsData)

Gets the name of the dimension and the unit, e.g., "Density (kg/m3)".

```csharp theme={null}
public string GetTitle(UnitsData units)
```

#### Parameters

`units` [UnitsData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.UnitsData.md)

The units.

#### Returns

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

System.String.

### GetUnitsName(UnitsData)

Gets the name of unit corresponding to this dimension, e.g. "kg/m3".

```csharp theme={null}
public string GetUnitsName(UnitsData units)
```

#### Parameters

`units` [UnitsData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.UnitsData.md)

The units.

#### Returns

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

System.String.
