Method GetCurrentTime
GetCurrentTime(Context)
Retrieves the location of the timeline playhead in seconds.
Declaration
public double GetCurrentTime(TimelinePlaybackControls.Context context = Context.Local)
Parameters
Type | Name | Description |
---|---|---|
TimelinePlaybackControls.Context | context | Use Context with a Sub-Timeline to specify whether the returned value 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. |
Returns
Type | Description |
---|---|
double | The playhead location in seconds. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The Window associated with this instance has been destroyed. |
ArgumentException | The context is invalid. |