Struct KeyTime
Specifies when a particular key frame should take place during an animation.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: System.Windows.Media.Animation
Assembly: OpenSilver.dll
Syntax
public struct KeyTime
Properties
| Improve this Doc View SourceTimeSpan
Gets the time when the key frame ends, expressed as a time relative to the beginning of the animation.
Declaration
public TimeSpan TimeSpan { get; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Methods
| Improve this Doc View SourceFromTimeSpan(TimeSpan)
Creates a new System.Windows.Media.Animation.KeyTime instance, with the System.Windows.Media.Animation.KeyTimeType property initialized to the value of the specified parameter.
Declaration
public static KeyTime FromTimeSpan(TimeSpan timeSpan)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | timeSpan | The value of the new System.Windows.Media.Animation.KeyTime. |
Returns
Type | Description |
---|---|
KeyTime | A new System.Windows.Media.Animation.KeyTime instance, initialized to the value of timeSpan. |
Operators
| Improve this Doc View SourceImplicit(TimeSpan to KeyTime)
Implicitly creates a KeyTime value from a Time value.
Declaration
public static implicit operator KeyTime(TimeSpan timeSpan)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | timeSpan | The Time value. |
Returns
Type | Description |
---|---|
KeyTime | A new KeyTime. |