> ## 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 ExpressionData

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

Data describing a TD expression.

```csharp theme={null}
[DataContract]
public class ExpressionData
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[ExpressionData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.ExpressionData.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)

## Constructors

### ExpressionData()

Initializes a new instance of the [ExpressionData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.ExpressionData.md) class.

```csharp theme={null}
public ExpressionData()
```

### ExpressionData(string)

Initializes a new instance of the [ExpressionData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.ExpressionData.md) class.

```csharp theme={null}
public ExpressionData(string expression)
```

#### Parameters

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

The expression.

### ExpressionData(string, UnitsData)

Initializes a new instance of the [ExpressionData](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.ExpressionData.md) class.

```csharp theme={null}
public ExpressionData(string expression, UnitsData expressionUnits)
```

#### Parameters

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

The expression.

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

The expression units.

### ExpressionData(ExpressionData)

```csharp theme={null}
public ExpressionData(ExpressionData x)
```

#### Parameters

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

## Properties

### Comment

```csharp theme={null}
[DataMember]
public string Comment { get; set; }
```

#### Property Value

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

### DisableWarnings

```csharp theme={null}
[DataMember]
public bool DisableWarnings { get; set; }
```

#### Property Value

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

### ExpressionInSindaUnits

```csharp theme={null}
[DataMember]
public bool ExpressionInSindaUnits { get; set; }
```

#### Property Value

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

### OutputToSinda

```csharp theme={null}
[DataMember]
public bool OutputToSinda { get; set; }
```

#### Property Value

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

### Value

```csharp theme={null}
[DataMember]
public string Value { get; set; }
```

#### Property Value

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

### units

ExpressionDatas contain their own unit system, independent of the
dwg units or OpenTD WorkingUnits. This unit system defaults to the
WorkingUnits but can be changed.

```csharp theme={null}
[DataMember]
public UnitsData units { get; set; }
```

#### Property Value

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

### unitsType

```csharp theme={null}
[DataMember]
public UnitsData.UnitsType unitsType { get; set; }
```

#### Property Value

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

## Methods

### ToString()

Returns a string that represents the current object.

```csharp theme={null}
public override string ToString()
```

#### Returns

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

A string that represents the current object.

## Operators

### implicit operator string(ExpressionData)

```csharp theme={null}
public static implicit operator string(ExpressionData x)
```

#### Parameters

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

#### Returns

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