Duration.GreaterThan Operator (Duration, Duration)

 
equivalentCodeEntityM:System.Windows.Duration.Compare(System.Windows.Duration,System.Windows.Duration)

Determines if one instance of Duration is greater than another.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public static bool operator >(
	Duration t1,
	Duration t2
)

Parameters

t1
Type: System.Windows.Duration

The first instance of Duration to compare.

t2
Type: System.Windows.Duration

The second instance of Duration to compare.

Return Value

Type: System.Boolean

true if both t1 and t2 have values and t1 is greater than t2; otherwise, false.

Forever is considered greater than any finite value. Any comparison with an Automatic value returns false.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: