Duration.Add Method (Duration)

 

Adds the value of the specified instance of Duration to the value of the current instance.

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

public Duration Add(
	Duration duration
)

Parameters

duration
Type: System.Windows.Duration

An instance of Duration that represents the value of the current instance plus duration.

Return Value

Type: System.Windows.Duration

If both instances of Duration have values, an instance of Duration that represents the combined values. Otherwise this method returns null.

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