RepeatBehavior 结构

定义

描述 Timeline 如何重复其简单持续时间。Describes how a Timeline repeats its simple duration.

public value class RepeatBehavior : IFormattable
public struct RepeatBehavior : IFormattable
[System.Security.SecurityCritical]
public struct RepeatBehavior : IFormattable
type RepeatBehavior = struct
    interface IFormattable
Public Structure RepeatBehavior
Implements IFormattable
继承
RepeatBehavior
属性
实现

注解

此结构表示 Windows 运行时(WinRT) RepeatBehavior 结构的 .NET 投影。This struct represents the .NET projection of the Windows Runtime (WinRT) RepeatBehavior struct. 有关详细信息,请参阅 UWP API 参考中的system.windows.media.animation.timeline.repeatbehaviorFor more information, see RepeatBehavior in the UWP API reference.

构造函数

RepeatBehavior(Double)

使用指定的迭代计数初始化 RepeatBehavior 结构的新实例。Initializes a new instance of the RepeatBehavior struct with the specified iteration count.

RepeatBehavior(TimeSpan)

使用指定的重复持续时间初始化 RepeatBehavior 结构的新实例。Initializes a new instance of the RepeatBehavior struct with the specified repeat duration.

属性

Count

获取 Windows.UI.Xaml.Media.Animation.Timeline 应重复的次数。Gets the number of times a Windows.UI.Xaml.Media.Animation.Timeline should repeat.

Duration

获取 Windows.UI.Xaml.Media.Animation.Timeline 应播放的总时长。Gets the total length of time a Windows.UI.Xaml.Media.Animation.Timeline should play.

Forever

获取一个 RepeatBehavior,它指定无限数目的重复。Gets a RepeatBehavior that specifies an infinite number of repetitions.

HasCount

获取指示重复行为是否具有指定的迭代次数的值。Gets a value that indicates whether the repeat behavior has a specified iteration count.

HasDuration

获取指示重复行为是否具有指定的重复持续时间的值。Gets a value that indicates whether the repeat behavior has a specified repeat duration.

Type

获取或设置 RepeatBehaviorType 值之一,它描述了行为重复的方式。Gets or sets one of the RepeatBehaviorType values that describes the way behavior repeats.

方法

Equals(Object)

指示指定对象是否等于该 RepeatBehaviorIndicates whether the specified object is equal to this RepeatBehavior.

Equals(RepeatBehavior)

返回一个值,该值指示指定的 RepeatBehavior 是否与此 RepeatBehavior 相等。Returns a value that indicates whether the specified RepeatBehavior is equal to this RepeatBehavior.

Equals(RepeatBehavior, RepeatBehavior)

指示两个指定的 RepeatBehavior 值是否相等。Indicates whether the two specified RepeatBehavior values are equal.

GetHashCode()

返回此实例的哈希代码。Returns the hash code of this instance.

ToString()

返回此 RepeatBehavior 的字符串表示形式。Returns a string representation of this RepeatBehavior.

ToString(IFormatProvider)

使用指定的格式返回 RepeatBehavior 的字符串表示形式。Returns a string representation of this RepeatBehavior with the specified format.

运算符

Equality(RepeatBehavior, RepeatBehavior)

指示两个指定的 RepeatBehavior 值是否相等。Indicates whether the two specified RepeatBehavior values are equal.

Inequality(RepeatBehavior, RepeatBehavior)

指示两个指定的 RepeatBehavior 值是否不相等。Indicates whether the two specified RepeatBehavior values are not equal.

显式接口实现

IFormattable.ToString(String, IFormatProvider)

有关此成员的说明,请参阅 ToString(String, IFormatProvider)For a description of this member, see ToString(String, IFormatProvider).

适用于

另请参阅