API Reference

Detailed and full API reference helps you master Tekla development

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


StringConverter Class

The StringConverter class converts types to and from the string datatype.
Inheritance Hierarchy

Namespace:  Tekla.Structures.Datatype
Assembly:  Tekla.Structures.Datatype (in Tekla.Structures.Datatype.dll) Version: 2020.0.0.0 (2020.0.55582.0)
public class StringConverter : TypeConverter

The StringConverter type exposes the following members.

  Name Description
Public method StringConverter
Initializes a new instance of the StringConverter class
  Name Description
Public method CanConvertFrom
Checks whether the conversion can be made from the source type to the string datatype.
(Overrides TypeConverterCanConvertFrom(ITypeDescriptorContext, Type).)
Public method CanConvertTo
Checks whether the conversion can be made from the string datatype to the destination type.
(Overrides TypeConverterCanConvertTo(ITypeDescriptorContext, Type).)
Public method ConvertFrom
Converts an object from the given culture to the Tekla.Structures.Datatype.String type.
(Overrides TypeConverterConvertFrom(ITypeDescriptorContext, CultureInfo, Object).)
Public method ConvertTo
Converts an object from the string datatype to the given destination type.
(Overrides TypeConverterConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type).)
See Also