Rediger

Del via


SeekStoryboard.Offset Property

Definition

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

public:
 property TimeSpan Offset { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan Offset { get; set; }
member this.Offset : TimeSpan with get, set
Public Property Offset As TimeSpan

Property Value

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.

Remarks

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.

XAML Attribute Usage

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

-or-

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

-or-

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

XAML Values

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.

Applies to

See also