menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RangeValuePair<T> - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RangeValuePair<T>

    Holds a range together with a value assigned to the range.

    Inheritance
    System.Object
    RangeValuePair<T>
    Implements
    System.IComparable
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.UI.Xaml.Grid.ScrollAxis
    Assembly: Syncfusion.SfGridCommon.WPF.dll
    Syntax
    public class RangeValuePair<T> : IComparable
    Type Parameters
    Name
    T

    Constructors

    RangeValuePair(Int32)

    Initializes a new instance of the RangeValuePair<T> class.

    Declaration
    public RangeValuePair(int start)
    Parameters
    Type Name Description
    System.Int32 start

    The start and end of the range.

    RangeValuePair(Int32, Int32, T)

    Initializes a new instance of the RangeValuePair<T> class.

    Declaration
    public RangeValuePair(int start, int count, T value)
    Parameters
    Type Name Description
    System.Int32 start

    The start.

    System.Int32 count

    The count.

    T value

    The value.

    Properties

    Count

    Gets or sets the count of the range.

    Declaration
    public int Count { get; set; }
    Property Value
    Type Description
    System.Int32

    The count.

    End

    Gets or sets the end of the range.

    Declaration
    public int End { get; set; }
    Property Value
    Type Description
    System.Int32

    The end.

    Start

    Gets or sets the start of the range.

    Declaration
    public int Start { get; set; }
    Property Value
    Type Description
    System.Int32

    The start.

    Value

    Gets or sets the value.

    Declaration
    public T Value { get; set; }
    Property Value
    Type Description
    T

    The value.

    Methods

    CompareTo(Object)

    Compares the current range with the range of the other object. The value is ignored.

    Declaration
    public int CompareTo(object obj)
    Parameters
    Type Name Description
    System.Object obj

    An object to compare with this instance.

    Returns
    Type Description
    System.Int32

    A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance is less than obj. Zero This instance is equal to obj. Greater than zero This instance is greater than obj.

    ToString()

    Returns a System.String with state information about this object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Returns a System.String with state information about this object.

    Overrides
    System.Object.ToString()

    Implements

    System.IComparable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved