Export (0) Print
Expand All

IDXEffect::Duration Property

This topic documents a feature of Visual Filters and Transitions, which is deprecated as of Windows Internet Explorer 9 and obsolete as of Internet Explorer 10.

Retrieves the recommended length of time for performing a transition. Sets the suggested duration for the transition.


HRESULT IDXEffect::get_Duration(float *pVal);HRESULT IDXEffect::put_Duration(float newVal);


Pointer to a value that indicates the amount of time, in seconds, that the transition should take.
Amount of time in seconds the effect should take.

Return Value

Returns an HRESULT value that depends on the implementation of the interface.


The IDXEffect::Duration property retrieves the most recently suggested value for the transform duration. This value is only a suggestion, and is completely ignored for some transforms.

This property enables you to suggest a reasonable default duration for transforms to use. This value is only a suggestion, and in some cases is completely ignored.

You can use the IDXEffect::Duration property while authoring content to force the transform to store the duration. When a transform is persisted, it saves the current value of the duration. Later, when it is restored from the persisted information, IDXEffect::Duration returns the duration that was set earlier.

Community Additions

© 2014 Microsoft