skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RangeExtensions

Inheritance
System.Object
RangeExtensions
Namespace: Telerik.Windows.Core
Assembly: Telerik.Windows.Scheduling.Core.dll

Syntax

public static class RangeExtensions : Object

Methods

Clamp<T>(Range<T>, T)

Declaration
public static T Clamp<T>(this Range<T> range, T value)
    where T : IComparable, IEquatable<T>
Parameters
Range<T> range

T value

Returns
T

Type Parameters
T

ContainsValue<T>(Range<T>, T)

Declaration
public static bool ContainsValue<T>(this Range<T> range, T value)
    where T : IComparable, IEquatable<T>
Parameters
Range<T> range

T value

Returns
System.Boolean

Type Parameters
T

GetLength(Range<DateTime>)

Declaration
public static TimeSpan GetLength(this Range<DateTime> range)
Parameters
Range<System.DateTime> range

Returns
System.TimeSpan

GetLength(Range<Double>)

Declaration
public static double GetLength(this Range<double> range)
Parameters
Range<System.Double> range

Returns
System.Double

GetLength(Range<Int32>)

Declaration
public static int GetLength(this Range<int> range)
Parameters
Range<System.Int32> range

Returns
System.Int32

GetLength(Range<Int64>)

Declaration
public static long GetLength(this Range<long> range)
Parameters
Range<System.Int64> range

Returns
System.Int64

GetLength(Range<TimeSpan>)

Declaration
public static TimeSpan GetLength(this Range<TimeSpan> range)
Parameters
Range<System.TimeSpan> range

Returns
System.TimeSpan

IntersectsWith(Range<Int32>, Int32, Int32)

Declaration
public static bool IntersectsWith(this Range<int> range1, int range2Start, int range2End)
Parameters
Range<System.Int32> range1

System.Int32 range2Start

System.Int32 range2End

Returns
System.Boolean

IntersectsWith(Range<Int32>, Range<Int32>)

Declaration
public static bool IntersectsWith(this Range<int> range1, Range<int> range2)
Parameters
Range<System.Int32> range1

Range<System.Int32> range2

Returns
System.Boolean

IntersectsWith(Range<Int64>, Range<Int64>)

Declaration
public static bool IntersectsWith(this Range<long> range1, Range<long> range2)
Parameters
Range<System.Int64> range1

Range<System.Int64> range2

Returns
System.Boolean

IntersectsWith<T>(Range<T>, Range<T>)

Declaration
public static bool IntersectsWith<T>(this Range<T> range1, Range<T> range2)
    where T : IComparable, IEquatable<T>
Parameters
Range<T> range1

Range<T> range2

Returns
System.Boolean

Type Parameters
T

Normalize(Range<Double>)

Declaration
public static Range<double> Normalize(this Range<double> range)
Parameters
Range<System.Double> range

Returns
Range<System.Double>

Normalize(Range<Int32>)

Declaration
public static Range<int> Normalize(this Range<int> range)
Parameters
Range<System.Int32> range

Returns
Range<System.Int32>

Normalize(Range<Int64>)

Declaration
public static Range<long> Normalize(this Range<long> range)
Parameters
Range<System.Int64> range

Returns
Range<System.Int64>

Offset(Range<Double>, Double)

Declaration
public static Range<double> Offset(this Range<double> range, double value)
Parameters
Range<System.Double> range

System.Double value

Returns
Range<System.Double>

Offset(Range<Int32>, Int32)

Declaration
public static Range<int> Offset(this Range<int> range, int value)
Parameters
Range<System.Int32> range

System.Int32 value

Returns
Range<System.Int32>

Offset(Range<Int64>, Int64)

Declaration
public static Range<long> Offset(this Range<long> range, long value)
Parameters
Range<System.Int64> range

System.Int64 value

Returns
Range<System.Int64>

ToTicks(Range<DateTime>)

Declaration
public static Range<long> ToTicks(this Range<DateTime> range)
Parameters
Range<System.DateTime> range

Returns
Range<System.Int64>

ToTicks(Range<TimeSpan>)

Declaration
public static Range<long> ToTicks(this Range<TimeSpan> range)
Parameters
Range<System.TimeSpan> range

Returns
Range<System.Int64>

ToTimeSpan(Range<Int64>)

Declaration
public static Range<TimeSpan> ToTimeSpan(this Range<long> range)
Parameters
Range<System.Int64> range

Returns
Range<System.TimeSpan>

Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.