Click or drag to resize

TimeOffsetFrom Method

Converts a time amount value in a specified time unit to a TimeOffset instance.

Negative value is automatically coerced to zero.

Namespace:  GemBox.Presentation.Media
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1045 (21.3.35.1045)
Syntax
public static TimeOffset From(
	double value,
	TimeOffsetUnit unit
)

Parameters

value
Type: SystemDouble
The time amount value.
unit
Type: GemBox.Presentation.MediaTimeOffsetUnit
The time unit.

Return Value

Type: TimeOffset
A TimeOffset instance that is equivalent to a specified input time amount in a specified time unit.
See Also