Tekla Open API

Detailed and full API reference helps you master Tekla Open API

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

DistanceConverter Class

The DistanceConverter class converts types to and from the distance type.
Inheritance Hierarchy
SystemObject
  System.ComponentModelTypeConverter
    Tekla.Structures.DatatypeDistanceConverter

Namespace:  Tekla.Structures.Datatype
Assembly:  Tekla.Structures.Datatype (in Tekla.Structures.Datatype.dll) Version: 2019.0.0.0 (2019.0.0.0)
Syntax
public sealed class DistanceConverter : TypeConverter

The DistanceConverter type exposes the following members.

Constructors
  Name Description
Public method DistanceConverter
Initializes a new instance of the DistanceConverter class
Top
Methods
  Name Description
Public method CanConvertFrom
Checks whether the conversion can be made from the source type to the distance type.
(Overrides TypeConverterCanConvertFrom(ITypeDescriptorContext, Type).)
Public method CanConvertTo
Checks whether the conversion can be made from the distance type to the destination type.
(Overrides TypeConverterCanConvertTo(ITypeDescriptorContext, Type).)
Public method ConvertFrom
Converts an object from the given culture to the distance type.
(Overrides TypeConverterConvertFrom(ITypeDescriptorContext, CultureInfo, Object).)
Public method ConvertTo
Converts an object from the distance type to the given destination type.
(Overrides TypeConverterConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type).)
Top
See Also