    

 ## On this page

  

 

 # OpenTD.Layer Class Reference

 Last update: 16.07.2025 

An AutoCAD layer. [More...](#details)

Inheritance diagram for OpenTD.Layer:

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



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

override void [Update](#aaa6c81edf902be44d4fe012a3a8d131a) () Updates the TD entity with the latest client data.   
 override void [UpdateFromTD](#a5ffc066693e6bff5baed4d6b11a71a06) () Updates the client-side instance with the latest data from the TD entity.   
 override void [CreateIn](#a944c943bcbcca5560239fea1ffd53d27) ([ThermalDesktop](class_open_t_d_1_1_thermal_desktop.xhtml) td) Creates the TD entity in the specified TD instance.   
 override string [ToString](class_open_t_d_1_1_layer_data.xhtml#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](class_open_t_d_1_1_layer_data.xhtml#a96153e4756b57e4447e86a42af592739) (string name) static implicit [operator string](class_open_t_d_1_1_layer_data.xhtml#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](class_open_t_d_1_1_layer_data.xhtml#a4ae081ff77dea9973916f5cf17ed088c)` [get, set]` string [Name](class_open_t_d_1_1_layer_data.xhtml#ab9184bc2b4f1866bfa5b2b78ed8b0b5e)` [get, set]` int [ColorIndex](class_open_t_d_1_1_layer_data.xhtml#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](class_open_t_d_1_1_layer_data.xhtml#a53d3c34fd869211810f6b418b5f4bb46)` [get, set]` bool [Off](class_open_t_d_1_1_layer_data.xhtml#a605d3ca1ad8fff7c689eea223f3d5c1e)` [get, set]` bool [Frozen](class_open_t_d_1_1_layer_data.xhtml#a090d574ef83c46da9e387ef6165a23a2)` [get, set]` bool [Current](class_open_t_d_1_1_layer_data.xhtml#a24eb8882e3465b6f5a84a3c46b50e953)` [get, set]` <a id="details" name="details"></a>## Detailed Description

An AutoCAD layer.



## Member Function Documentation

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

 override void OpenTD.Layer.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*)   inlinestaticinherited 





<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*)   inlinestaticinherited 





<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  ( )   inlineinherited 





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

 override void OpenTD.Layer.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="a5ffc066693e6bff5baed4d6b11a71a06" name="a5ffc066693e6bff5baed4d6b11a71a06"></a>## [◆ ](#a5ffc066693e6bff5baed4d6b11a71a06)UpdateFromTD()

 override void OpenTD.Layer.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  getsetinherited 

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  getsetinherited 





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

 bool OpenTD.LayerData.Frozen  getsetinherited 





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

 string OpenTD.LayerData.Handle  getsetinherited 





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

 bool OpenTD.LayerData.Locked  getsetinherited 





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

 string OpenTD.LayerData.Name  getsetinherited 





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

 bool OpenTD.LayerData.Off  getsetinherited 





---

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