Method SetCurrentTime
SetCurrentTime(double, Context)
Moves the playhead to a specific time.
Declaration
public void SetCurrentTime(double time, TimelinePlaybackControls.Context context = Context.Local)
Parameters
Type | Name | Description |
---|---|---|
double | time | The time in seconds. |
TimelinePlaybackControls.Context | context | Use Context with a Sub-Timeline to specify whether the specified time is relative to the Sub-Timeline or the main Timeline. If the Timeline is not a Sub-Timeline, the context uses local time regardless of the specified context. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The Window associated with this instance has been destroyed. |
ArgumentException | The context is invalid. |