SeekStoryboard.Offset Property

 

Gets or sets the amount by which the storyboard should move forward or backward from the seek origin Origin. .

Namespace:   System.Windows.Media.Animation
Assembly:  PresentationFramework (in PresentationFramework.dll)

public TimeSpan Offset { get; set; }

Property Value

Type: System.TimeSpan

A positive or negative value that specifies the amount by which the storyboard should move forward or backward from the seek origin Origin. The default value is 0.

Note that seek operations do not take the storyboard's SpeedRatio or SlipBehavior settings into account: the storyboard is treated as though it had a SpeedRatio of 1 and no SlipBehavior.

<object Offset="[-][days.]hours:minutes:seconds[.fractionalSeconds]"/>

- or -

<object Offset="[-][days.]hours:minutes"/>

- or -

<object Offset="[-]days"/>

Items in square brackets ([ and ]) are optional.

days

System.Int32

A value greater than or equal to 0 that describes the number of days spanned by this offset.

hours

System.Int32

A value between 0 and 23 that represents the number of hours spanned by this offset.

minutes

System.Int32

A value between 0 and 59 that represents the number of minutes spanned by this offset.

seconds

System.Int32

A value between 0 and 59 that represents the number of seconds spanned by this offset.

fractionalSeconds

System.Int32

A value consisting of 1 to 7 digits that represents fractional seconds.

For the complete TimeSpan syntax, see the Remarks section of the Parse page.

.NET Framework
Available since 3.0
Return to top
Show: