Export (0) Print
Expand All

Duration.Addition Operator

Adds two Duration values together.

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

public static Duration operator +(
	Duration t1,
	Duration t2
)

Parameters

t1
Type: System.Windows.Duration
The first Duration to add.
t2
Type: System.Windows.Duration
The second Duration to add.

Return Value

Type: System.Windows.Duration
If both Duration values have TimeSpan values, this method returns the sum of those two values. If either value is set to Automatic, the method returns Automatic. If either value is set to Forever, the method returns Forever.
If either t1 or t2 has no value, this method returns null.

Silverlight

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

ADD
Show:
© 2014 Microsoft