Class SliderDateIntervalType
Indicates the type of the DateIntervalType. It can be years to seconds.
Inheritance
Namespace: Syncfusion.Maui.Sliders
Assembly: Syncfusion.Maui.Sliders.dll
Syntax
public sealed class SliderDateIntervalType : Enum
Fields
Auto
Denotes the slider date interval as auto.
For example, if the Minimum is System.DateTime(2000, 01, 01), the Maximum is System.DateTime(2001, 01, 01),
Interval is 0, and consider the screen size as 350, the labels will get render for Jan 01, 2000,
Jul 01, 2000,
and Nov 01, 2000
respectively. Based on the screen size, the Interval, IntervalType, and DateFormat
will get changed.
Declaration
public const SliderDateIntervalType Auto
Field Value
Type |
---|
SliderDateIntervalType |
Days
Denotes the slider date interval as days.
For example, if Minimum is System.DateTime(2000, 01, 01, 00) and Maximum is System.DateTime(2000, 01, 25, 24)
and Interval"/> is 5 and DateIntervalType is System.DateTime.Day then range slider will render labels
for Jan 01, 2000
, Jan 06, 2000
, Jan 11, 2000
, Jan 16, 2000
, Jan 21, 2001
and Jan 26, 2001
respectively.
Declaration
public const SliderDateIntervalType Days
Field Value
Type |
---|
SliderDateIntervalType |
Hours
Denotes the slider date interval as hours.
For example, if Minimum is System.DateTime(2000, 01, 01, 09) and Maximum is System.DateTime(2000, 01, 01, 17)
and Interval"/> is 4 and DateIntervalType is System.DateTime.Hour then range slider will render labels
for Jan 01, 2000 09:00
, Jan 01, 2000 13:00
, and Jan 01, 2000 17:00
respectively.
Declaration
public const SliderDateIntervalType Hours
Field Value
Type |
---|
SliderDateIntervalType |
Minutes
Denotes the slider date interval as minutes.
For example, if Minimum is System.DateTime(2000, 01, 01, 09) and Maximum is System.DateTime(2000, 01, 01, 10)
and Interval"/> is 15 and DateIntervalType is System.DateTime.Minute then range slider will render labels
for Jan 01, 2000 09:00
, Jan 01, 2000 09:15
, Jan 01, 2000 09:30
, Jan 01, 2000 09:45
and Jan 01, 2000 10:00
respectively.
Declaration
public const SliderDateIntervalType Minutes
Field Value
Type |
---|
SliderDateIntervalType |
Months
Denotes the slider date interval as months.
For example, if Minimum is System.DateTime(2000, 01, 01, 00) and Maximum is System.DateTime(2000, 12, 31, 24)
and Interval"/> is 3 and DateIntervalType is System.DateTime.Month then slider or range slider will render labels
for Jan 01, 2000
, Apr 01, 2000
, Jul 01, 2000
, Oct 01, 2000
and Jan 01, 2001
respectively.
Declaration
public const SliderDateIntervalType Months
Field Value
Type |
---|
SliderDateIntervalType |
Seconds
Denotes the slider date interval as seconds.
For example, if Minimum is System.DateTime(2000, 01, 01, 09, 00) and Maximum is DateTime(2000, 01, 01, 09, 01)
and Interval"/> is 20 and DateIntervalType is System.DateTime.Second then range slider will render labels
for Jan 01, 2000 09:00:00
, Jan 01, 2000 09:00:20
, Jan 01, 2000 09:00:40
, and Jan 01, 2000 09:01:00
respectively.
Declaration
public const SliderDateIntervalType Seconds
Field Value
Type |
---|
SliderDateIntervalType |
Years
Denotes the slider date interval as years. For example, if Minimum is System.DateTime(2000, 01, 01, 00) and Maximum is System.DateTime(2005, 12, 31, 24) and Interval"/> is 1 and DateIntervalType is System.DateTime.Year then slider or range slider will render labels for 2000, 2001, 2002, 2003, 2004, 2005, 2006 respectively.
Declaration
public const SliderDateIntervalType Years
Field Value
Type |
---|
SliderDateIntervalType |