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

# OpenTD.Layer Class Reference

An AutoCAD layer.

Inheritance diagram for OpenTD.Layer:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=f7c8400981e2c01138fcab416aaed6a2)

## Public Member Functions

| Type | Name |
| - | - |
| 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](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md) td) Creates the TD entity in the specified TD instance. |
| override string | [ToString](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer_data.md#a873e16c0ae5f0c9052f5818032065602) () |
| void | [SetFrom](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_open_t_d_object.md#aa2e0aa2793e95a56891ef59fb4843ca2) ([OpenTDObject](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_open_t_d_object.md) x) |
| void | [UpdateIn](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_open_t_d_object.md#a1e5228ce309c9a85ec09e8119318024d) ([ThermalDesktop](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_thermal_desktop.md) td) Updates the TD entity corresponding to this object in the specified TD instance, if possible. |

## Static Public Member Functions

| Type | Name |
| - | - |
| static implicit | [operator LayerData](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer_data.md#a96153e4756b57e4447e86a42af592739) (string name) |
| static implicit | [operator string](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer_data.md#a13e7f985360728bd586aa0a75fbcf46f) ([LayerData](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer_data.md) x) |

## Protected Attributes

| Type | Name |
| - | - |
| [ITdCommander](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/interface_open_t_d_1_1_internal_1_1_communication_1_1_i_td_commander.md) | [TdProxy](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_open_t_d_object.md#a0da16592e6b635ca0def27b355d669b3) |

## Properties

| Type | Name |
| - | - |
| string | [Handle](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer_data.md#a4ae081ff77dea9973916f5cf17ed088c)`[get, set]` |
| string | [Name](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer_data.md#ab9184bc2b4f1866bfa5b2b78ed8b0b5e)`[get, set]` |
| int | [ColorIndex](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer_data.md#afa9a0a7c95f0e5777ff1fcb9a06c746c)`[get, set]` AutoCAD color index. You can find these by hovering over color swatches in the AutoCAD [Layer](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer.md) [Properties](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d_1_1_properties.md) Manager. |
| bool | [Locked](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer_data.md#a53d3c34fd869211810f6b418b5f4bb46)`[get, set]` |
| bool | [Off](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer_data.md#a605d3ca1ad8fff7c689eea223f3d5c1e)`[get, set]` |
| bool | [Frozen](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer_data.md#a090d574ef83c46da9e387ef6165a23a2)`[get, set]` |
| bool | [Current](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer_data.md#a24eb8882e3465b6f5a84a3c46b50e953)`[get, set]` |

## Detailed Description

An AutoCAD layer.

## Member Function Documentation

### CreateIn()

```csharp theme={null}
override void OpenTD.Layer.CreateIn(ThermalDesktop td)
```

`inline`

Creates the TD entity in the specified TD instance.

Implements [OpenTD.IReassignable](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/interface_open_t_d_1_1_i_reassignable.md#a94cbc52d002a10e44f5dc2daaf9c87db).

### operator LayerData()

```csharp theme={null}
static implicit OpenTD.LayerData.operator LayerData(string name)
```

`inline` `static` `inherited`

### operator string()

```csharp theme={null}
static implicit OpenTD.LayerData.operator string(LayerData x)
```

`inline` `static` `inherited`

### SetFrom()

```csharp theme={null}
void OpenTD.OpenTDObject.SetFrom(OpenTDObject x)
```

`inline` `inherited`

### ToString()

```csharp theme={null}
override string OpenTD.LayerData.ToString()
```

`inline` `inherited`

### Update()

```csharp theme={null}
override void OpenTD.Layer.Update()
```

`inline`

Updates the TD entity with the latest client data.

Implements [OpenTD.IUpdatable](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/interface_open_t_d_1_1_i_updatable.md#a162ef7c717f51047a1d45c7df4282470).

### UpdateFromTD()

```csharp theme={null}
override void OpenTD.Layer.UpdateFromTD()
```

`inline`

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

Implements [OpenTD.IUpdatable](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/interface_open_t_d_1_1_i_updatable.md#a47f3096415cfb5694fd822df8a1eceb0).

### UpdateIn()

```csharp theme={null}
void OpenTD.OpenTDObject.UpdateIn(ThermalDesktop td)
```

`inline` `inherited`

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

Implements [OpenTD.IReassignable](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/interface_open_t_d_1_1_i_reassignable.md#a90dffde7dd442e9d940f9e5c5fabde14).

## Member Data Documentation

### TdProxy

```csharp theme={null}
ITdCommander OpenTD.OpenTDObject.TdProxy
```

`protected` `inherited`

## Property Documentation

### ColorIndex

```csharp theme={null}
int OpenTD.LayerData.ColorIndex
```

`get` `set` `inherited`

AutoCAD color index. You can find these by hovering over color swatches in the AutoCAD [Layer](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_layer.md) [Properties](https://developer.synopsys.com/docs/thermal-desktop/opentd-net4-reference/namespace_open_t_d_1_1_properties.md) Manager.

### Current

```csharp theme={null}
bool OpenTD.LayerData.Current
```

`get` `set` `inherited`

### Frozen

```csharp theme={null}
bool OpenTD.LayerData.Frozen
```

`get` `set` `inherited`

### Handle

```csharp theme={null}
string OpenTD.LayerData.Handle
```

`get` `set` `inherited`

### Locked

```csharp theme={null}
bool OpenTD.LayerData.Locked
```

`get` `set` `inherited`

### Name

```csharp theme={null}
string OpenTD.LayerData.Name
```

`get` `set` `inherited`

### Off

```csharp theme={null}
bool OpenTD.LayerData.Off
```

`get` `set` `inherited`

The documentation for this class was generated from the following file:

* C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV\_ALPHA/buildXX/OpenTD/**Layer.cs**
