Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Duration.Add Method

Adds the value of the specified Duration to this Duration.

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

public Duration Add(
	Duration 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 each involved Duration has values, a Duration that represents the combined values. Otherwise this method returns null.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2015 Microsoft