New to Telerik UI for WPFStart a free 30-day trial

Simple structure representing a simple Generic range.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Type Parameters:

T

Syntax:

C#
public struct SelectionRange<T>

Inherited Members ValueType.ToString()

Constructors

Initializes a new instance of the SelectionRange<T> struct.

C#
public SelectionRange(T start, T end)
Parameters:startT

The start.

endT

The end.

Properties

Gets or sets the End property.

C#
public T End { readonly get; set; }

Gets or sets the Start property.

C#
public T Start { readonly get; set; }

Methods

Determines whether the specified object is equal to this instance.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this instance.

Returns:

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides: ValueType.Equals(object)

Returns a hash code for this instance.

C#
public override int GetHashCode()
Returns:

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides: ValueType.GetHashCode()

Operators

Implements the operator !=.

C#
public static bool operator !=(SelectionRange<T> range1, SelectionRange<T> range2)
Parameters:range1SelectionRange<T>

The range1.

range2SelectionRange<T>

The range2.

Returns:

bool

The result of the operator.

Implements the operator ==.

C#
public static bool operator ==(SelectionRange<T> range1, SelectionRange<T> range2)
Parameters:range1SelectionRange<T>

The range1.

range2SelectionRange<T>

The range2.

Returns:

bool

The result of the operator.