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
Syntax public bool Touches(
Range<T> range,
Func<T, T> increment
)
Public Function Touches (
range As Range(Of T),
increment As Func(Of T, T)
) As Boolean
member Touches :
range : Range<'T> *
increment : Func<'T, 'T> -> bool
Parameters
- range
- Type: Eto.FormsRangeT
Range to check if it touches this range. - increment
- Type: SystemFuncT, T
Delegate to increment the value for checking if the ranges touch.
Return Value
Type:
Booleantrue if the ranges touch,
false otherwise.
Remarks
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