Duration.Subtract(Duration) Method

Definition

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

public:
 System::Windows::Duration Subtract(System::Windows::Duration duration);
public System.Windows.Duration Subtract (System.Windows.Duration duration);
member this.Subtract : System.Windows.Duration -> System.Windows.Duration
Public Function Subtract (duration As Duration) As Duration

Parameters

duration
Duration

The instance of Duration to subtract from the current instance.

Returns

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

Applies to