IUIAnimationStoryboard2::GetElapsedTime method (uianimation.h)

Gets the time that has elapsed since the storyboard started playing.

Syntax

HRESULT GetElapsedTime(
  [out] UI_ANIMATION_SECONDS *elapsedTime
);

Parameters

[out] elapsedTime

The elapsed time.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See Windows Animation Error Codes for a list of error codes.

Return code Description
UI_E_STORYBOARD_NOT_PLAYING
The storyboard is not playing.

Requirements

Requirement Value
Minimum supported client Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header uianimation.h
DLL UIAnimation.dll

See also

IUIAnimationStoryboard2

IUIAnimationStoryboard2::GetStatus

UI_ANIMATION_STORYBOARD_STATUS