Back to API Home

Clamps the specified time span to zero.

Namespace: Dundas.Dashboard.DashboardControls.Extensibility
Assembly: Dundas.Dashboard.Client (in Dundas.Dashboard.Client.dll) Version: 5.0.0.0 (5.5.0.1000)

Syntax

C#
public static TimeSpan Clamp(
	TimeSpan ts,
	bool clampNegativeValues
)
Visual Basic
Public Shared Function Clamp ( 
	ts As TimeSpan,
	clampNegativeValues As Boolean
) As TimeSpan

Parameters

ts
Type: System..::..TimeSpan
The time span.
clampNegativeValues
Type: System..::..Boolean
if set to trueTruetruetrue (True in Visual Basic), clamp the time span to zero.

Return Value

Type: TimeSpan

See Also