Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

setCurrentTime method

Sets the new current time for this SVG document fragment.

Scalable Vector Graphics: Document Structure, Section 5.11.2Internet Explorer 9



HRESULT retVal = object.setCurrentTime(seconds);


seconds [in]

Type: float

The new current time, in seconds, relative to the start time for the current SVG document fragment.

Return value


If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information


If you call the ISVGSVGElement::setCurrentTime method before the document timeline has begun (for example, by a script that is running in a script element before the SVGLoad event for the document is dispatched), the value of seconds during the last call to ISVGSVGElement::setCurrentTime is the current time.



Community Additions

© 2015 Microsoft