Click or drag to resize

RangeTTouches Method

Determines if the specified range touches (but doesn't intersect) this instance.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
public bool Touches(
	Range<T> range,
	Func<T, T> increment


Type: Eto.FormsRangeT
Range to check if it touches this range.
Type: SystemFuncT, T
Delegate to increment the value for checking if the ranges touch.

Return Value

Type: Boolean
true if the ranges touch, false otherwise.
This can be used to determine if one range comes after or before another range, given the specified increment function. The increment function is used as this class does not assume how to increment each value, e.g. for a DateTime value, you can increment by day, minute, second, etc.
See Also