menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DateRange - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DateRange

    Represents a class which holds start and end date of the month view.

    Inheritance
    System.Object
    DateRange
    Implements
    System.IDisposable
    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.Scheduler
    Assembly: Syncfusion.SfScheduler.WPF.dll
    Syntax
    public class DateRange : IDisposable

    Constructors

    DateRange(DateTime, DateTime, DateTime, DateTime)

    Initializes a new instance of the DateRange class.

    Declaration
    public DateRange(DateTime startDate, DateTime endDate, DateTime actualStartDate, DateTime actualEndDate)
    Parameters
    Type Name Description
    System.DateTime startDate

    start date of month view.

    System.DateTime endDate

    end date of month view.

    System.DateTime actualStartDate

    actual start date of month.

    System.DateTime actualEndDate

    actual end date of month.

    Properties

    ActualEndDate

    Gets the actual end date.

    Declaration
    public DateTime ActualEndDate { get; }
    Property Value
    Type
    System.DateTime

    ActualStartDate

    Gets the actual start date.

    Declaration
    public DateTime ActualStartDate { get; }
    Property Value
    Type
    System.DateTime

    EndDate

    Gets the end date.

    Declaration
    public DateTime EndDate { get; }
    Property Value
    Type
    System.DateTime

    NonWorkingDays

    Gets the non working dates. Its not applicable for month view.

    Declaration
    public List<DateTime> NonWorkingDays { get; }
    Property Value
    Type
    System.Collections.Generic.List<System.DateTime>

    StartDate

    Gets the start date.

    Declaration
    public DateTime StartDate { get; }
    Property Value
    Type
    System.DateTime

    Methods

    Dispose()

    Disposes all the resources used by the DateRange class.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Disposes all the resources used by the DayViewControl class.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Indicates whether the call is from Dispose method or from a System.GC.SuppressFinalize(System.Object).

    ToString()

    Method to convert to string.

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

    The string.

    Overrides
    System.Object.ToString()

    Implements

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