Click or drag to resize

RangeTUnion Method (RangeT, FuncT, T)

Gets the union of this instance and the specified range, including touching ranges.

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


Type: Eto.FormsRangeT
Range to union with.
Type: SystemFuncT, T
Delegate to increment the value for checking if the ranges touch.

Return Value

Type: NullableRangeT
The union of this instance and the specified range, or null if they are neither intersecting or touching.
This is similar to Union(RangeT), however this handles when the two ranges are touching. The increment delegate is used to determine if the ranges are touching by incrementing the ends of the ranges and comparing that value to the start of the other range.
See Also