次の方法で共有


IXRTimeline::SetAutoReverse (Compact 2013)

3/28/2014

This method sets a value that indicates whether the timeline plays in reverse after it completes a forward iteration.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetAutoReverse(
    bool AutoReverse
) = 0;

Parameters

  • AutoReverse
    [in] Boolean value that indicates whether the timeline plays in reverse at the end of each iteration. Set this value to true if the timeline should play in reverse; otherwise, set it to false.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

If AutoReverse is set to true and the timeline is set to repeat itself, each forward iteration is followed by a backward iteration. This makes one repetition.

For example, if you call SetAutoReverse and pass in a value of true, and IXRTimeline::GetRepeatBehavior retrieves an XRRepeatBehavior structure with XRRepeatBehavior.IterationCount set to 2, the timeline would play forward, then play backward, then play forward again, and then play backward again.

.NET Framework Equivalent

System.Windows.Media.Animation.Timeline.AutoReverse

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTimeline
IXRTimeline::GetAutoReverse