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.

DistanceList Structure

A list of Distance instances.

Namespace:  Tekla.Structures.Datatype
Assembly:  Tekla.Structures.Datatype (in Tekla.Structures.Datatype.dll) Version: 2019.0.0.0 (2019.0.0.0)
Syntax
[SerializableAttribute]
[TypeConverterAttribute(typeof(DistanceListConverter))]
public struct DistanceList : IXmlSerializable, 
	IList<Distance>, ICollection<Distance>, IEnumerable<Distance>, 
	IEnumerable, IFormattable

The DistanceList type exposes the following members.

Constructors
  Name Description
Public methodCode example DistanceList
Initializes a new instance of the structure.
Top
Properties
  Name Description
Public propertyCode example Count
Gets the number of items in the list.
Public property IsReadOnly
Gets a boolean value indicating whether the collection is read-only.
Public propertyCode example Item
Gets or sets the item at the specified index.
Top
Methods
  Name Description
Public methodCode example Add
Adds the specified item at the end of the list.
Public methodCode example Clear
Clears the list.
Public methodCode example Contains
Determines whether the specified item is in the list.
Public methodCode example CopyTo
Copies the contents of the list to an array.
Public methodCode example GetEnumerator
Gets an enumerator for enumeraring through the list.
Public methodCode example IndexOf
Returns the index of the first matching item in the list.
Public methodCode example Insert
Inserts an item at the specified position.
Public methodStatic memberCode example Parse(String)
Parses a distance list from a string representation.
Public methodStatic memberCode example Parse(String, IFormatProvider)
Parses a distance list from a string representation.
Public methodStatic memberCode example Parse(String, IFormatProvider, DistanceUnitType)
Parses a distance list from a string representation.
Public methodCode example Remove
Removes the specified item.
Public methodCode example RemoveAt
Removes an item at the specified position.
Public methodCode example ToArray
Copies the contents of the list into a new array.
Public methodCode example ToString
Returns the string representation of the distance list.
(Overrides ValueTypeToString.)
Public methodCode example ToString(IFormatProvider)
Returns the string representation of the distance list.
Public methodCode example ToString(String, IFormatProvider)
Returns the string representation of the distance list.
Public methodCode example ToString(String, IFormatProvider, DistanceUnitType)
Returns the string representation of the distance list.
Top
Remarks
DistanceLists are used to store related Distance instances in an enumerable, formattable list.
See Also