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
Syntax public Nullable<Range<T>> Union(
Range<T> range,
Func<T, T> increment
)
Public Function Union (
range As Range(Of T),
increment As Func(Of T, T)
) As Nullable(Of Range(Of T))
member Union :
range : Range<'T> *
increment : Func<'T, 'T> -> Nullable<Range<'T>>
Parameters
- range
- Type: Eto.FormsRangeT
Range to union with. - increment
- Type: SystemFuncT, T
Delegate to increment the value for checking if the ranges touch.
Return Value
Type:
NullableRangeTThe union of this instance and the specified range, or null if they are neither intersecting or touching.
Remarks
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