Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1.31 KB

durationhelper_compare_2000782616.md

File metadata and controls

42 lines (24 loc) · 1.31 KB
-api-id -api-type
M:Windows.UI.Xaml.DurationHelper.Compare(Windows.UI.Xaml.Duration,Windows.UI.Xaml.Duration)
winrt method

Windows.UI.Xaml.DurationHelper.Compare

-description

Compares value equality of two Duration structures. C# and Microsoft Visual Basic code should use Duration.Compare instead.

-parameters

-param duration1

The first Duration to compare.

-param duration2

The second Duration to compare.

-returns

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.

-remarks

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.

-examples

-see-also