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.

Distance Methods

The Distance type exposes the following members.

Methods
  Name Description
Public method CompareTo
Compares the current object with another object of the same type.
Public methodCode example ConvertTo
Converts the distance to the specified units.
Public method Equals(Object)
Indicates whether the current instance and the specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public method Equals(Distance)
Indicates whether the current object is equal to another object of the same type.
Public methodStatic memberCode example FromDecimalString(String)
Creates a distance from a decimal string representation.
Public methodStatic memberCode example FromDecimalString(String, IFormatProvider)
Creates a distance from a decimal string representation.
Public methodStatic memberCode example FromDecimalString(String, IFormatProvider, DistanceUnitType)
Creates a distance from a decimal string representation.
Public methodStatic memberCode example FromFractionalFeetAndInchesString(String)
Creates a distance from a string representation of fractional feet and inches.
Public methodStatic memberCode example FromFractionalFeetAndInchesString(String, IFormatProvider, DistanceUnitType)
Creates a distance from a string representation of fractional feet and inches.
Public method GetHashCode
Returns the hash code for the current instance.
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberCode example Parse(String)
Parses a distance from a string representation using the current unit type and culture.
Public methodStatic memberCode example Parse(String, IFormatProvider)
Parses a distance from a string representation using the current unit type and the given culture.
Public methodStatic memberCode example Parse(String, IFormatProvider, DistanceUnitType)
Parses a distance from a string representation using the given unit type and culture.
Public methodCode example ToDecimalString
Converts the distance to a decimal string representation.
Public methodCode example ToDecimalString(IFormatProvider)
Converts the distance to a decimal string representation.
Public methodCode example ToDecimalString(String)
Converts the distance to a decimal string representation.
Public methodCode example ToDecimalString(String, IFormatProvider)
Converts the distance to a decimal string representation.
Public methodCode example ToDecimalString(String, IFormatProvider, DistanceUnitType)
Converts the distance to a decimal string representation.
Public methodCode example ToFractionalFeetAndInchesString
Creates a string representation of the distance in feet and inches.
Public methodCode example ToFractionalFeetAndInchesString(IFormatProvider)
Creates a string representation of the distance in feet and inches.
Public methodCode example ToFractionalInchesString
Creates a string representation of the distance in inches.
Public methodCode example ToFractionalInchesString(IFormatProvider)
Creates a string representation of the distance in inches.
Public methodCode example ToString
Creates a string representation of the distance.
(Overrides ValueTypeToString.)
Public methodCode example ToString(IFormatProvider)
Creates a string representation of the distance.
Public methodCode example ToString(String)
Creates a string representation of the distance.
Public methodCode example ToString(String, IFormatProvider)
Creates a string representation of the distance.
Public methodCode example ToString(String, IFormatProvider, DistanceUnitType)
Creates a string representation of the distance.
Public methodStatic memberCode example TryParse(String, Distance)
Attempts to parse a distance from a string representation using the current units.
Public methodStatic memberCode example TryParse(String, IFormatProvider, Distance)
Attempts to parse a distance from a string representation using the current units.
Public methodStatic memberCode example TryParse(String, IFormatProvider, DistanceUnitType, Distance)
Attempts to parse a distance from a string representation using the current units.
Top
See Also