    

 ## On this page

  

 

 # OpenTD.ExpressionData Class Reference

 Last update: 16.07.2025 

Data describing a TD expression. [More...](#details)

Inheritance diagram for OpenTD.ExpressionData:

 ![](/sites/default/files/migrate-content/opentd_net4_reference_2025_r2_1/class_open_t_d_1_1_expression_data.png)



## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [ExpressionData](#a30f43bb2112861c2af55dac747626045) () Initializes a new instance of the [ExpressionData](class_open_t_d_1_1_expression_data.xhtml "Data describing a TD expression.") class.   
  [ExpressionData](#a92b9be7f3b2194ef1250c6344504cf04) (string expression) Initializes a new instance of the [ExpressionData](class_open_t_d_1_1_expression_data.xhtml "Data describing a TD expression.") class.   
  [ExpressionData](#ac0dd18fbac6350f4d242ce9bf8ab58c8) (string expression, [UnitsData](class_open_t_d_1_1_units_data.xhtml) expressionUnits) Initializes a new instance of the [ExpressionData](class_open_t_d_1_1_expression_data.xhtml "Data describing a TD expression.") class.   
  [ExpressionData](#ab9aa4176536136f91b99695862bdfd22) ([ExpressionData](class_open_t_d_1_1_expression_data.xhtml) x) override string [ToString](#a69fea6b34343ffec3dcd75a5b7db6ee1) () ## <a id="pub-static-methods" name="pub-static-methods"></a>Static Public Member Functions

static implicit [operator string](#a5716d4965faacf8b38f1521a6e70b05c) ([ExpressionData](class_open_t_d_1_1_expression_data.xhtml) x) ## <a id="properties" name="properties"></a>Properties

[UnitsData.UnitsType](class_open_t_d_1_1_units_data.xhtml#a8ef90b9a88e34fdf1acefcff4e8d4508) [unitsType](#afcee9c31bee2fafbb116168bca5fb2f3)` [get, set]` [UnitsData](class_open_t_d_1_1_units_data.xhtml) [units](#a3d01330f540f66ec82006e89e2d8a7a1)` [get, set]` ExpressionDatas contain their own unit system, independent of the dwg units or [OpenTD](namespace_open_t_d.xhtml "Base Thermal Desktop functionality.") WorkingUnits. This unit system defaults to the WorkingUnits but can be changed.   
 bool [OutputToSinda](#ab860639853a72fc0f16d4f9d4d2469b8)` [get, set]` bool [ExpressionInSindaUnits](#a7dafa947af3161dac16a376dfa5340d7)` [get, set]` bool [DisableWarnings](#a0843788a4c8e21c842d815df25142478)` [get, set]` string [Comment](#ae67f64ec0cc6ebd9057b4677154b7e46)` [get, set]` string [Value](#aa8a5478e375585849be2b9acda060401)` [get, set]` <a id="details" name="details"></a>## Detailed Description

Data describing a TD expression.



## Constructor &amp; Destructor Documentation

<a id="a30f43bb2112861c2af55dac747626045" name="a30f43bb2112861c2af55dac747626045"></a>## [◆ ](#a30f43bb2112861c2af55dac747626045)ExpressionData() \[1/4\]

 OpenTD.ExpressionData.ExpressionData  ( )   inline 

Initializes a new instance of the [ExpressionData](class_open_t_d_1_1_expression_data.xhtml "Data describing a TD expression.") class.





<a id="a92b9be7f3b2194ef1250c6344504cf04" name="a92b9be7f3b2194ef1250c6344504cf04"></a>## [◆ ](#a92b9be7f3b2194ef1250c6344504cf04)ExpressionData() \[2/4\]

 OpenTD.ExpressionData.ExpressionData  ( string *expression*)   inline 

Initializes a new instance of the [ExpressionData](class_open_t_d_1_1_expression_data.xhtml "Data describing a TD expression.") class.

Parameters expressionThe expression.



<a id="ac0dd18fbac6350f4d242ce9bf8ab58c8" name="ac0dd18fbac6350f4d242ce9bf8ab58c8"></a>## [◆ ](#ac0dd18fbac6350f4d242ce9bf8ab58c8)ExpressionData() \[3/4\]

 OpenTD.ExpressionData.ExpressionData  ( string *expression*,    [UnitsData](class_open_t_d_1_1_units_data.xhtml) *expressionUnits* )  inline 

Initializes a new instance of the [ExpressionData](class_open_t_d_1_1_expression_data.xhtml "Data describing a TD expression.") class.

Parameters expressionThe expression.expressionUnitsThe expression units.



<a id="ab9aa4176536136f91b99695862bdfd22" name="ab9aa4176536136f91b99695862bdfd22"></a>## [◆ ](#ab9aa4176536136f91b99695862bdfd22)ExpressionData() \[4/4\]

 OpenTD.ExpressionData.ExpressionData  ( [ExpressionData](class_open_t_d_1_1_expression_data.xhtml) *x*)   inline 





## Member Function Documentation

<a id="a5716d4965faacf8b38f1521a6e70b05c" name="a5716d4965faacf8b38f1521a6e70b05c"></a>## [◆ ](#a5716d4965faacf8b38f1521a6e70b05c)operator string()

 static implicit OpenTD.ExpressionData.operator string  ( [ExpressionData](class_open_t_d_1_1_expression_data.xhtml) *x*)   inlinestatic 





<a id="a69fea6b34343ffec3dcd75a5b7db6ee1" name="a69fea6b34343ffec3dcd75a5b7db6ee1"></a>## [◆ ](#a69fea6b34343ffec3dcd75a5b7db6ee1)ToString()

 override string OpenTD.ExpressionData.ToString  ( )   inline 





## Property Documentation

<a id="ae67f64ec0cc6ebd9057b4677154b7e46" name="ae67f64ec0cc6ebd9057b4677154b7e46"></a>## [◆ ](#ae67f64ec0cc6ebd9057b4677154b7e46)Comment

 string OpenTD.ExpressionData.Comment  getset 





<a id="a0843788a4c8e21c842d815df25142478" name="a0843788a4c8e21c842d815df25142478"></a>## [◆ ](#a0843788a4c8e21c842d815df25142478)DisableWarnings

 bool OpenTD.ExpressionData.DisableWarnings  getset 





<a id="a7dafa947af3161dac16a376dfa5340d7" name="a7dafa947af3161dac16a376dfa5340d7"></a>## [◆ ](#a7dafa947af3161dac16a376dfa5340d7)ExpressionInSindaUnits

 bool OpenTD.ExpressionData.ExpressionInSindaUnits  getset 





<a id="ab860639853a72fc0f16d4f9d4d2469b8" name="ab860639853a72fc0f16d4f9d4d2469b8"></a>## [◆ ](#ab860639853a72fc0f16d4f9d4d2469b8)OutputToSinda

 bool OpenTD.ExpressionData.OutputToSinda  getset 





<a id="a3d01330f540f66ec82006e89e2d8a7a1" name="a3d01330f540f66ec82006e89e2d8a7a1"></a>## [◆ ](#a3d01330f540f66ec82006e89e2d8a7a1)units

 [UnitsData](class_open_t_d_1_1_units_data.xhtml) OpenTD.ExpressionData.units  getset 

ExpressionDatas contain their own unit system, independent of the dwg units or [OpenTD](namespace_open_t_d.xhtml "Base Thermal Desktop functionality.") WorkingUnits. This unit system defaults to the WorkingUnits but can be changed.





<a id="afcee9c31bee2fafbb116168bca5fb2f3" name="afcee9c31bee2fafbb116168bca5fb2f3"></a>## [◆ ](#afcee9c31bee2fafbb116168bca5fb2f3)unitsType

 [UnitsData.UnitsType](class_open_t_d_1_1_units_data.xhtml#a8ef90b9a88e34fdf1acefcff4e8d4508) OpenTD.ExpressionData.unitsType  getset 





<a id="aa8a5478e375585849be2b9acda060401" name="aa8a5478e375585849be2b9acda060401"></a>## [◆ ](#aa8a5478e375585849be2b9acda060401)Value

 string OpenTD.ExpressionData.Value  getset 





---

The documentation for this class was generated from the following file:- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV\_ALPHA/buildXX/OpenTD/**ExpressionData.cs**