-api-id | -api-type |
---|---|
M:Windows.UI.Xaml.DurationHelper.Compare(Windows.UI.Xaml.Duration,Windows.UI.Xaml.Duration) |
winrt method |
Compares value equality of two Duration structures. C# and Microsoft Visual Basic code should use Duration.Compare instead.
The first Duration to compare.
The second Duration to compare.
If duration1 is less than duration2, a negative value that represents the difference. If duration1 is equal to duration2, zero. If duration1 is greater than duration2, a positive value that represents the difference.
Durationinstances with a value of Automaticare a special case with the following return values:
- If duration1 is Automatic and duration2 is not, -1 is returned.
- If duration1 is Automatic and duration2 is also Automatic, 0 is returned.
- If duration1 is not Automatic and duration2 is Automatic, 1 is returned.