Skip to main content

OpenTD .NET4 reference 2025 R2

OpenTD.Connection Class Reference

Last update: 16.07.2025

A connection contains a handle and a marker. The handle uniquely identifies a TD entity while the marker specifies how to connect to the entity, e.g., which side of a surface to connect to. More...

Public Member Functions

 Connection (string _Handle, int _Marker)
 
 Connection ()
 Initializes a new instance of the Connection class.
 
 Connection (string _Handle)
 Initializes a new instance of the Connection class.
 
 Connection (DbObject x)
 Initializes a new instance of the Connection class.
 
 Connection (DbObject x, int _Marker)
 Initializes a new instance of the Connection class.
 
bool IsEmpty ()
 
bool IsDomainName ()
 
void SetDomainName (string domainName)
 
string GetDomainName ()
 
override string ToString ()
 

Static Public Member Functions

static implicit operator Connection (string handle)
 
static implicit operator Connection (DbObject x)
 
static implicit operator List< Connection > (Connection x)
 Implicitly converts a single element into a one-element list.
 

Static Public Attributes

static readonly Connection Empty = new Connection("")
 

Properties

string Handle [get, set]
 
int Marker [get, set]
 

Detailed Description

A connection contains a handle and a marker. The handle uniquely identifies a TD entity while the marker specifies how to connect to the entity, e.g., which side of a surface to connect to.

Constructor & Destructor Documentation

◆ Connection() [1/5]

OpenTD.Connection.Connection ( string _Handle,
int _Marker )
inline

◆ Connection() [2/5]

OpenTD.Connection.Connection ( )
inline

Initializes a new instance of the Connection class.

◆ Connection() [3/5]

OpenTD.Connection.Connection ( string _Handle)
inline

Initializes a new instance of the Connection class.

Parameters
_HandleAutoCAD handle.

◆ Connection() [4/5]

OpenTD.Connection.Connection ( DbObject x)
inline

Initializes a new instance of the Connection class.

Parameters
xGets the AutoCAD handle from this DbObject.
See also
OpenTD.DbObject

◆ Connection() [5/5]

OpenTD.Connection.Connection ( DbObject x,
int _Marker )
inline

Initializes a new instance of the Connection class.

Parameters
xGets the AutoCAD handle from this DbObject.
_MarkerThe marker specifies how to connect to the entity.
See also
OpenTD.DbObject

Member Function Documentation

◆ GetDomainName()

string OpenTD.Connection.GetDomainName ( )
inline

◆ IsDomainName()

bool OpenTD.Connection.IsDomainName ( )
inline

◆ IsEmpty()

bool OpenTD.Connection.IsEmpty ( )
inline

◆ operator Connection() [1/2]

static implicit OpenTD.Connection.operator Connection ( DbObject x)
inlinestatic

◆ operator Connection() [2/2]

static implicit OpenTD.Connection.operator Connection ( string handle)
inlinestatic

◆ operator List< Connection >()

static implicit OpenTD.Connection.operator List< Connection > ( Connection x)
inlinestatic

Implicitly converts a single element into a one-element list.

◆ SetDomainName()

void OpenTD.Connection.SetDomainName ( string domainName)
inline

◆ ToString()

override string OpenTD.Connection.ToString ( )
inline

Member Data Documentation

◆ Empty

readonly Connection OpenTD.Connection.Empty = new Connection("")
static

Property Documentation

◆ Handle

string OpenTD.Connection.Handle
getset

◆ Marker

int OpenTD.Connection.Marker
getset

The documentation for this class was generated from the following file:
  • C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD/Connection.cs

Connect with Ansys