Add Method
Collapse the table of content
Expand the table of content

Duration.Add Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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
)

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft