Skip to main content

OpenTD .NET4 reference 2025 R2

OpenTD.Layer Class Reference

Last update: 16.07.2025

An AutoCAD layer. More...

Inheritance diagram for OpenTD.Layer:
OpenTD.LayerDataOpenTD.OpenTDObjectOpenTD.IUpdatableOpenTD.IReassignable

Public Member Functions

override void Update ()
 Updates the TD entity with the latest client data.
 
override void UpdateFromTD ()
 Updates the client-side instance with the latest data from the TD entity.
 
override void CreateIn (ThermalDesktop td)
 Creates the TD entity in the specified TD instance.
 
override string ToString ()
 
void SetFrom (OpenTDObject x)
 
void UpdateIn (ThermalDesktop td)
 Updates the TD entity corresponding to this object in the specified TD instance, if possible.
 

Static Public Member Functions

static implicit operator LayerData (string name)
 
static implicit operator string (LayerData x)
 

Protected Attributes

ITdCommander TdProxy
 

Properties

string Handle [get, set]
 
string Name [get, set]
 
int ColorIndex [get, set]
 AutoCAD color index. You can find these by hovering over color swatches in the AutoCAD Layer Properties Manager.
 
bool Locked [get, set]
 
bool Off [get, set]
 
bool Frozen [get, set]
 
bool Current [get, set]
 

Detailed Description

An AutoCAD layer.

Member Function Documentation

◆ CreateIn()

override void OpenTD.Layer.CreateIn ( ThermalDesktop td)
inline

Creates the TD entity in the specified TD instance.

Implements OpenTD.IReassignable.

◆ operator LayerData()

static implicit OpenTD.LayerData.operator LayerData ( string name)
inlinestaticinherited

◆ operator string()

static implicit OpenTD.LayerData.operator string ( LayerData x)
inlinestaticinherited

◆ SetFrom()

void OpenTD.OpenTDObject.SetFrom ( OpenTDObject x)
inlineinherited

◆ ToString()

override string OpenTD.LayerData.ToString ( )
inlineinherited

◆ Update()

override void OpenTD.Layer.Update ( )
inline

Updates the TD entity with the latest client data.

Implements OpenTD.IUpdatable.

◆ UpdateFromTD()

override void OpenTD.Layer.UpdateFromTD ( )
inline

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

Implements OpenTD.IUpdatable.

◆ UpdateIn()

void OpenTD.OpenTDObject.UpdateIn ( ThermalDesktop td)
inlineinherited

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

Implements OpenTD.IReassignable.

Member Data Documentation

◆ TdProxy

ITdCommander OpenTD.OpenTDObject.TdProxy
protectedinherited

Property Documentation

◆ ColorIndex

int OpenTD.LayerData.ColorIndex
getsetinherited

AutoCAD color index. You can find these by hovering over color swatches in the AutoCAD Layer Properties Manager.

◆ Current

bool OpenTD.LayerData.Current
getsetinherited

◆ Frozen

bool OpenTD.LayerData.Frozen
getsetinherited

◆ Handle

string OpenTD.LayerData.Handle
getsetinherited

◆ Locked

bool OpenTD.LayerData.Locked
getsetinherited

◆ Name

string OpenTD.LayerData.Name
getsetinherited

◆ 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

Connect with Ansys