Dela via


RepeatBehaviorHelper Class

Definition

Provides basic utility methods for processing RepeatBehavior values. C# and Microsoft Visual Basic code should use members of RepeatBehavior instead.

public ref class RepeatBehaviorHelper sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class RepeatBehaviorHelper final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class RepeatBehaviorHelper
Public NotInheritable Class RepeatBehaviorHelper
Inheritance
Object Platform::Object IInspectable RepeatBehaviorHelper
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

Forever

Gets a static RepeatBehavior that represents the special "Forever" value. C# and Microsoft Visual Basic code should use Forever instead.

Methods

Equals(RepeatBehavior, RepeatBehavior)

Determines whether two RepeatBehavior values have equivalent values. C# and Microsoft Visual Basic code should use the equality operator instead.

FromCount(Double)

Creates a new RepeatBehavior based on a repeat count. This corresponds to the intx form when provided as XAML attribute value. C# and Microsoft Visual Basic code should use RepeatBehavior(Double) instead.

FromDuration(TimeSpan)

Creates a new RepeatBehavior based on a timespan. C# and Microsoft Visual Basic code should use RepeatBehavior(TimeSpan) instead.

GetHasCount(RepeatBehavior)

Returns whether a specified RepeatBehavior has a RepeatBehaviorType of Count and a nonzero Count value. C# and Microsoft Visual Basic code should use HasCount instead.

GetHasDuration(RepeatBehavior)

Returns whether a specified RepeatBehavior has a RepeatBehaviorType of Duration and a nonzero Duration value. C# and Microsoft Visual Basic code should use HasDuration instead.

Applies to