Duration Structure
Represents the duration of time that a Timeline is active.
Assembly: PresentationCore (in PresentationCore.dll)
| Name | Description | |
|---|---|---|
![]() | Duration(TimeSpan) | Initializes a new instance of the Duration structure with the supplied TimeSpan value. |
| Name | Description | |
|---|---|---|
![]() | Add(Duration) | Adds the value of the specified instance of Duration to the value of the current instance. |
![]() ![]() | Compare(Duration, Duration) | Compares one Duration value to another. |
![]() | Equals(Duration) | Determines whether a specified Duration is equal to this instance of Duration. |
![]() ![]() | Equals(Duration, Duration) | Determines whether two instances of Duration are equal. |
![]() | Equals(Object^) | Determines whether a specified object is equal to an instance of Duration.(Overrides ValueType::Equals(Object^).) |
![]() | GetHashCode() | Gets a hash code for this instance.(Overrides ValueType::GetHashCode().) |
![]() | GetType() | |
![]() ![]() | Plus(Duration) | Returns the specified instance of Duration. |
![]() | Subtract(Duration) | Subtracts the value of the specified instance of Duration from this instance. |
![]() | ToString() | Converts an instance of Duration to a String representation.(Overrides ValueType::ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | Addition(Duration, Duration) | Adds two instances of Duration together. |
![]() ![]() | Equality(Duration, Duration) | Determines whether two instances of Duration are equal. |
![]() ![]() | GreaterThan(Duration, Duration) | Determines if one instance of Duration is greater than another. |
![]() ![]() | GreaterThanOrEqual(Duration, Duration) | Determines whether an instance of Duration is greater than or equal to another instance. |
![]() ![]() | Implicit(TimeSpan to Duration) | Implicitly creates a Duration from a given TimeSpan. |
![]() ![]() | Inequality(Duration, Duration) | Determines if two instances of Duration are not equal. |
![]() ![]() | LessThan(Duration, Duration) | Determines if the value of one instance of Duration is less than the value of another instance. |
![]() ![]() | LessThanOrEqual(Duration, Duration) | Determines if the value of one instance of Duration is less than or equal to the value of another instance. |
![]() ![]() | Subtraction(Duration, Duration) | Subtracts the value of one instance of Duration from another. |
![]() ![]() | UnaryPlus(Duration) | Returns the specified instance of Duration. |
- days
A value greater than or equal to 0 that describes the number of days spanned by this duration.
- hours
A value between 0 and 23 that represents the number of hours spanned by this duration.
- minutes
A value between 0 and 59 that represents the number of minutes spanned by this duration.
- seconds
A value between 0 and 59 that represents the number of seconds spanned by this duration
- fractionalSeconds
A value consisting of 1 to 7 digits that represents fractional seconds.
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



