Class DateRange
Represents a class which holds start and end date of the month view.
Inheritance
System.Object
DateRange
Implements
System.IDisposable
Namespace: Syncfusion.UI.Xaml.Scheduler
Assembly: Syncfusion.Scheduler.WinUI.dll
Syntax
public class DateRange : Object, 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. |
Implements
System.IDisposable