Click or drag to resize

RangeT Structure

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public struct Range<T> : IEquatable<Range<T>>
where T : struct, new(), IComparable<T>

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:Eto.Forms.Range`1"]

The RangeT type exposes the following members.

Constructors
  NameDescription
Public methodRangeT(T)
Initializes a new instance of the RangeT struct with a value for both the start and end.
Public methodRangeT(T, T)
Initializes a new instance of the RangeT struct.
Top
Properties
  NameDescription
Public propertyEnd
Gets the end value of the range.
Public propertyStart
Gets the start value of the range
Top
Methods
  NameDescription
Public methodContains
Determines if the specified value is between or equal to the Start and End of this range.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current RangeT.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(RangeT)
Determines whether the specified other range is equal to the current RangeT.
Public methodGetHashCode
Serves as a hash function for a RangeT object.
(Overrides ValueTypeGetHashCode.)
Public methodIntersect
Gets the intersection of this instance and the specified range.
Public methodIntersects
Determines if the specified range intersects (overlaps) this instance.
Public methodCode exampleIterate
Iterates the range between the start and end values.
Public methodToString
Returns a String that represents the current RangeT.
(Overrides ValueTypeToString.)
Public methodTouches
Determines if the specified range touches (but doesn't intersect) this instance.
Public methodUnion(RangeT)
Gets the union of this instance and an intersecting range.
Public methodUnion(RangeT, FuncT, T)
Gets the union of this instance and the specified range, including touching ranges.
Public methodWithEnd
Creates a copy of the current range with a different end value.
Public methodWithStart
Creates a copy of the current range with a different start value.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Operator to compare two ranges for equality
Public operatorStatic memberInequality
Operator to compare two ranges for inequality.
Top
See Also