Duration Members
Collapse the table of content
Expand the table of content

Duration Members

Represents the duration of time that a Timeline is active.

The Duration type exposes the following members.

  NameDescription
Public method Duration Initializes a new instance of the Duration structure with the supplied TimeSpan value.
Top

  NameDescription
Public method Add Adds the value of the specified instance of Duration to the value of the current instance.
Public method Static member Compare Compares one Duration value to another.
Public method Static member Equals Overloaded. Indicates whether a specified object is equal to an instance of Duration.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Gets a hash code for this instance. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Plus Returns the specified instance of Duration.
Public method Subtract Subtracts the value of the specified instance of Duration from this instance.
Public method ToString Converts an instance of Duration to a String representation. (Overrides ValueType.ToString().)
Top

  NameDescription
Public operator Static member Addition Adds two instances of Duration together.
Public operator Static member Equality Determines whether two instances of Duration are equal.
Public operator Static member GreaterThan Determines if one instance of Duration is greater than another.
Public operator Static member GreaterThanOrEqual Determines whether an instance of Duration is greater than or equal to another instance.
Public operator Static member Implicit Implicitly creates a Duration from a given TimeSpan.
Public operator Static member Inequality Determines if two instances of Duration are not equal.
Public operator Static member LessThan Determines if the value of one instance of Duration is less than the value of another instance.
Public operator Static member LessThanOrEqual Determines if the value of one instance of Duration is less than or equal to the value of another instance.
Public operator Static member Subtraction Subtracts the value of one instance of Duration from another.
Public operator Static member UnaryPlus Returns the specified instance of Duration.
Top

  NameDescription
Public property Static member Automatic Gets a Duration value that is automatically determined.
Public property Static member Forever Gets a Duration value that represents an infinite interval.
Public property HasTimeSpan Gets a value that indicates if this Duration represents a TimeSpan value.
Public property TimeSpan Gets the TimeSpan value that this Duration represents.
Top

Community Additions

ADD
Show:
© 2016 Microsoft