Skip to main content
Namespace: OpenTD
Assembly: OpenTD.dll
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.

Inheritance

object ← Connection

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

Connection(string, int)

Parameters

_Handle string _Marker int

Connection()

Initializes a new instance of the Connection class.

Connection(string)

Initializes a new instance of the Connection class.

Parameters

_Handle string AutoCAD handle.

Connection(DbObject)

Initializes a new instance of the Connection class.

Parameters

x DbObject Gets the AutoCAD handle from this DbObject.

See Also

DbObject

Connection(DbObject, int)

Initializes a new instance of the Connection class.

Parameters

x DbObject Gets the AutoCAD handle from this DbObject. _Marker int The marker specifies how to connect to the entity.

See Also

DbObject

Fields

Empty

Field Value

Connection

Properties

Handle

Property Value

string

Marker

Property Value

int

Methods

GetDomainName()

Returns

string

IsDomainName()

Returns

bool

IsEmpty()

Returns

bool

SetDomainName(string)

Parameters

domainName string

ToString()

Returns a string that represents the current object.

Returns

string A string that represents the current object.

Operators

implicit operator Connection(string)

Parameters

handle string

Returns

Connection

implicit operator Connection(DbObject)

Parameters

x DbObject

Returns

Connection

implicit operator List<Connection>(Connection)

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

Parameters

x Connection

Returns

List<Connection>