Duration::Subtract Method (Duration)

 

Subtracts the value of the specified instance of Duration from this instance.

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

public:
Duration Subtract(
	Duration duration
)

Parameters

duration
Type: System.Windows::Duration

The instance of Duration to subtract from the current instance.

Return Value

Type: System.Windows::Duration

A new instance of Duration whose value is the result of this instance minus the value of duration.

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