Click or drag to resize

RangeExtensionsInterval Method

Gets the interval for the specified range between the start and end dates.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
public static TimeSpan Interval(
	this Range<DateTime> range


Type: Eto.FormsRangeDateTime
Range to get the interval for.

Return Value

Type: TimeSpan
A new TimeSpan that is the difference between the start and end dates of the specified range.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type RangeDateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also