Skip to main content

OpenTD .NET4 reference 2025 R2

OpenTD.LayerData Class Reference

Last update: 16.07.2025

<exclude > More...

Inheritance diagram for OpenTD.LayerData:
OpenTD.OpenTDObjectOpenTD.IUpdatableOpenTD.IReassignableOpenTD.Layer

Public Member Functions

 LayerData ()
 Initializes a new instance of the LayerData class.
 
 LayerData (string name)
 Initializes a new instance of the LayerData class.
 
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

<exclude >

Constructor & Destructor Documentation

◆ LayerData() [1/2]

OpenTD.LayerData.LayerData ( )
inline

Initializes a new instance of the LayerData class.

◆ LayerData() [2/2]

OpenTD.LayerData.LayerData ( string name)
inline

Initializes a new instance of the LayerData class.

Parameters
nameThe layer name.

Member Function Documentation

◆ CreateIn()

override void OpenTD.LayerData.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)
inlinestatic

◆ operator string()

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

◆ SetFrom()

void OpenTD.OpenTDObject.SetFrom ( OpenTDObject x)
inlineinherited

◆ ToString()

override string OpenTD.LayerData.ToString ( )
inline

◆ Update()

override void OpenTD.LayerData.Update ( )
inline

Updates the TD entity with the latest client data.

Implements OpenTD.IUpdatable.

◆ UpdateFromTD()

override void OpenTD.LayerData.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
getset

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

◆ Current

bool OpenTD.LayerData.Current
getset

◆ Frozen

bool OpenTD.LayerData.Frozen
getset

◆ Handle

string OpenTD.LayerData.Handle
getset

◆ Locked

bool OpenTD.LayerData.Locked
getset

◆ Name

string OpenTD.LayerData.Name
getset

◆ 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

Connect with Ansys