Class TcxDocument
- Namespace
- Tudormobile.Strava.Documents
- Assembly
- Tudormobile.Strava.dll
Represents a Training Center XML (TCX) document, providing access to workout and fitness data in the TCX format.
public class TcxDocument : XmlDocumentBase
- Inheritance
-
TcxDocument
- Inherited Members
Remarks
Use this class to read, manipulate, or generate TCX files, which are commonly used for exchanging fitness activity data between devices and applications. Inherits functionality from the XmlDocumentBase class.
Constructors
TcxDocument(XDocument)
Initializes a new instance of the TcxDocument class.
public TcxDocument(XDocument document)
Parameters
documentXDocumentThe XML document containing TCX data.
Exceptions
- ArgumentNullException
Thrown when the document is null.
- ArgumentException
Thrown when the document is invalid or missing required elements.
- NotSupportedException
Thrown when the TCX version is not supported.
Properties
Activities
Gets the collection of activities contained in the TCX document.
public IEnumerable<TcxDocument.TcxActivity> Activities { get; }