    

 ## On this page

  

 

 # OpenTD.LayerData Class Reference

 Last update: 16.07.2025 

&lt;exclude &gt; [More...](#details)

Inheritance diagram for OpenTD.LayerData:

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



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

 [LayerData](#a6dbeacf62810d6447bbefed5b83ae076) () Initializes a new instance of the [LayerData](class_open_t_d_1_1_layer_data.xhtml "<exclude >") class.   
  [LayerData](#a625ad3616fb1613746e9a177b1b6611f) (string name) Initializes a new instance of the [LayerData](class_open_t_d_1_1_layer_data.xhtml "<exclude >") class.   
 override void [Update](#a2ccf9e9a0f064aa28a7346eaed881621) () Updates the TD entity with the latest client data.   
 override void [UpdateFromTD](#a4e2948fd7d46970a73e642a31e0d8e86) () Updates the client-side instance with the latest data from the TD entity.   
 override void [CreateIn](#af37ba70d37945525f286df994377053f) ([ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) td) Creates the TD entity in the specified TD instance.   
 override string [ToString](#a873e16c0ae5f0c9052f5818032065602) () void [SetFrom](class_open_t_d_1_1_open_t_d_object.xhtml#aa2e0aa2793e95a56891ef59fb4843ca2) ([OpenTDObject](class_open_t_d_1_1_open_t_d_object.xhtml) x) void [UpdateIn](class_open_t_d_1_1_open_t_d_object.xhtml#a1e5228ce309c9a85ec09e8119318024d) ([ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) td) Updates the TD entity corresponding to this object in the specified TD instance, if possible.   
 ## <a id="pub-static-methods" name="pub-static-methods"></a>Static Public Member Functions

static implicit [operator LayerData](#a96153e4756b57e4447e86a42af592739) (string name) static implicit [operator string](#a13e7f985360728bd586aa0a75fbcf46f) ([LayerData](class_open_t_d_1_1_layer_data.xhtml) x) ## <a id="pro-attribs" name="pro-attribs"></a>Protected Attributes

[ITdCommander](interface_open_t_d_1_1_internal_1_1_communication_1_1_i_td_commander.xhtml) [TdProxy](class_open_t_d_1_1_open_t_d_object.xhtml#a0da16592e6b635ca0def27b355d669b3) ## <a id="properties" name="properties"></a>Properties

string [Handle](#a4ae081ff77dea9973916f5cf17ed088c)` [get, set]` string [Name](#ab9184bc2b4f1866bfa5b2b78ed8b0b5e)` [get, set]` int [ColorIndex](#afa9a0a7c95f0e5777ff1fcb9a06c746c)` [get, set]` AutoCAD color index. You can find these by hovering over color swatches in the AutoCAD [Layer](class_open_t_d_1_1_layer.xhtml "An AutoCAD layer.") [Properties](namespace_open_t_d_1_1_properties.xhtml) Manager.   
 bool [Locked](#a53d3c34fd869211810f6b418b5f4bb46)` [get, set]` bool [Off](#a605d3ca1ad8fff7c689eea223f3d5c1e)` [get, set]` bool [Frozen](#a090d574ef83c46da9e387ef6165a23a2)` [get, set]` bool [Current](#a24eb8882e3465b6f5a84a3c46b50e953)` [get, set]` <a id="details" name="details"></a>## Detailed Description

&lt;exclude &gt;



## Constructor &amp; Destructor Documentation

<a id="a6dbeacf62810d6447bbefed5b83ae076" name="a6dbeacf62810d6447bbefed5b83ae076"></a>## [◆ ](#a6dbeacf62810d6447bbefed5b83ae076)LayerData() \[1/2\]

 OpenTD.LayerData.LayerData  ( )   inline 

Initializes a new instance of the [LayerData](class_open_t_d_1_1_layer_data.xhtml "<exclude >") class.





<a id="a625ad3616fb1613746e9a177b1b6611f" name="a625ad3616fb1613746e9a177b1b6611f"></a>## [◆ ](#a625ad3616fb1613746e9a177b1b6611f)LayerData() \[2/2\]

 OpenTD.LayerData.LayerData  ( string *name*)   inline 

Initializes a new instance of the [LayerData](class_open_t_d_1_1_layer_data.xhtml "<exclude >") class.

Parameters nameThe layer name.



## Member Function Documentation

<a id="af37ba70d37945525f286df994377053f" name="af37ba70d37945525f286df994377053f"></a>## [◆ ](#af37ba70d37945525f286df994377053f)CreateIn()

 override void OpenTD.LayerData.CreateIn  ( [ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) *td*)   inline 

Creates the TD entity in the specified TD instance.

Implements [OpenTD.IReassignable](interface_open_t_d_1_1_i_reassignable.xhtml#a94cbc52d002a10e44f5dc2daaf9c87db).





<a id="a96153e4756b57e4447e86a42af592739" name="a96153e4756b57e4447e86a42af592739"></a>## [◆ ](#a96153e4756b57e4447e86a42af592739)operator LayerData()

 static implicit OpenTD.LayerData.operator [LayerData](class_open_t_d_1_1_layer_data.xhtml)  ( string *name*)   inlinestatic 





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

 static implicit OpenTD.LayerData.operator string  ( [LayerData](class_open_t_d_1_1_layer_data.xhtml) *x*)   inlinestatic 





<a id="aa2e0aa2793e95a56891ef59fb4843ca2" name="aa2e0aa2793e95a56891ef59fb4843ca2"></a>## [◆ ](#aa2e0aa2793e95a56891ef59fb4843ca2)SetFrom()

 void OpenTD.OpenTDObject.SetFrom  ( [OpenTDObject](class_open_t_d_1_1_open_t_d_object.xhtml) *x*)   inlineinherited 





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

 override string OpenTD.LayerData.ToString  ( )   inline 





<a id="a2ccf9e9a0f064aa28a7346eaed881621" name="a2ccf9e9a0f064aa28a7346eaed881621"></a>## [◆ ](#a2ccf9e9a0f064aa28a7346eaed881621)Update()

 override void OpenTD.LayerData.Update  ( )   inline 

Updates the TD entity with the latest client data.

Implements [OpenTD.IUpdatable](interface_open_t_d_1_1_i_updatable.xhtml#a162ef7c717f51047a1d45c7df4282470).





<a id="a4e2948fd7d46970a73e642a31e0d8e86" name="a4e2948fd7d46970a73e642a31e0d8e86"></a>## [◆ ](#a4e2948fd7d46970a73e642a31e0d8e86)UpdateFromTD()

 override void OpenTD.LayerData.UpdateFromTD  ( )   inline 

Updates the client-side instance with the latest data from the TD entity.

Implements [OpenTD.IUpdatable](interface_open_t_d_1_1_i_updatable.xhtml#a47f3096415cfb5694fd822df8a1eceb0).





<a id="a1e5228ce309c9a85ec09e8119318024d" name="a1e5228ce309c9a85ec09e8119318024d"></a>## [◆ ](#a1e5228ce309c9a85ec09e8119318024d)UpdateIn()

 void OpenTD.OpenTDObject.UpdateIn  ( [ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) *td*)   inlineinherited 

Updates the TD entity corresponding to this object in the specified TD instance, if possible.

Implements [OpenTD.IReassignable](interface_open_t_d_1_1_i_reassignable.xhtml#a90dffde7dd442e9d940f9e5c5fabde14).





## Member Data Documentation

<a id="a0da16592e6b635ca0def27b355d669b3" name="a0da16592e6b635ca0def27b355d669b3"></a>## [◆ ](#a0da16592e6b635ca0def27b355d669b3)TdProxy

 [ITdCommander](interface_open_t_d_1_1_internal_1_1_communication_1_1_i_td_commander.xhtml) OpenTD.OpenTDObject.TdProxy  protectedinherited 





## Property Documentation

<a id="afa9a0a7c95f0e5777ff1fcb9a06c746c" name="afa9a0a7c95f0e5777ff1fcb9a06c746c"></a>## [◆ ](#afa9a0a7c95f0e5777ff1fcb9a06c746c)ColorIndex

 int OpenTD.LayerData.ColorIndex  getset 

AutoCAD color index. You can find these by hovering over color swatches in the AutoCAD [Layer](class_open_t_d_1_1_layer.xhtml "An AutoCAD layer.") [Properties](namespace_open_t_d_1_1_properties.xhtml) Manager.





<a id="a24eb8882e3465b6f5a84a3c46b50e953" name="a24eb8882e3465b6f5a84a3c46b50e953"></a>## [◆ ](#a24eb8882e3465b6f5a84a3c46b50e953)Current

 bool OpenTD.LayerData.Current  getset 





<a id="a090d574ef83c46da9e387ef6165a23a2" name="a090d574ef83c46da9e387ef6165a23a2"></a>## [◆ ](#a090d574ef83c46da9e387ef6165a23a2)Frozen

 bool OpenTD.LayerData.Frozen  getset 





<a id="a4ae081ff77dea9973916f5cf17ed088c" name="a4ae081ff77dea9973916f5cf17ed088c"></a>## [◆ ](#a4ae081ff77dea9973916f5cf17ed088c)Handle

 string OpenTD.LayerData.Handle  getset 





<a id="a53d3c34fd869211810f6b418b5f4bb46" name="a53d3c34fd869211810f6b418b5f4bb46"></a>## [◆ ](#a53d3c34fd869211810f6b418b5f4bb46)Locked

 bool OpenTD.LayerData.Locked  getset 





<a id="ab9184bc2b4f1866bfa5b2b78ed8b0b5e" name="ab9184bc2b4f1866bfa5b2b78ed8b0b5e"></a>## [◆ ](#ab9184bc2b4f1866bfa5b2b78ed8b0b5e)Name

 string OpenTD.LayerData.Name  getset 





<a id="a605d3ca1ad8fff7c689eea223f3d5c1e" name="a605d3ca1ad8fff7c689eea223f3d5c1e"></a>## [◆ ](#a605d3ca1ad8fff7c689eea223f3d5c1e)Off

 bool OpenTD.LayerData.Off  getset 





---

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