Duration.Addition Operator
Silverlight
Adds two Duration values together.
Namespace: System.Windows
Assembly: System.Windows (in System.Windows.dll)
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.DurationIf 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.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.