Retrieves the recommended length of time for performing a transition. Sets the suggested duration for the transition.
HRESULT value = object.put_Duration(float newVal);HRESULT value = object.get_Duration(float* pVal);
Pointer to a value that indicates the amount of time, in seconds, that the transition should take.
The IDXEffect::get_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::get_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::get_Duration returns the duration that was set earlier.