Class ChartDateTimeRange
Specifies the start and end dates and interval time for the axis. Use this if the data points are of datetime type.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public sealed class ChartDateTimeRange
Constructors
ChartDateTimeRange(DateTime, DateTime, Double, ChartDateTimeIntervalType)
Initializes a new instance of the ChartDateTimeRange class.
Declaration
public ChartDateTimeRange(DateTime start, DateTime end, double interval, ChartDateTimeIntervalType type)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | start | The start. |
System.DateTime | end | The end. |
System.Double | interval | The interval. |
ChartDateTimeIntervalType | type | The type. |
ChartDateTimeRange(DateTime, DateTime, Double, ChartDateTimeIntervalType, Calendar)
Initializes a new instance of the ChartDateTimeRange class.
Declaration
public ChartDateTimeRange(DateTime start, DateTime end, double interval, ChartDateTimeIntervalType type, Calendar calendar)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | start | The start of this range. |
System.DateTime | end | The end of this range. |
System.Double | interval | The value of the default interval that is to be associated with this range. |
ChartDateTimeIntervalType | type | The type of the default interval that is to be associated with this range. |
System.Globalization.Calendar | calendar | The calendar that is to be associated with this range. |
Properties
Calendar
Gets an instance of the Calendar associated with this date range.
Declaration
public Calendar Calendar { get; }
Property Value
Type |
---|
System.Globalization.Calendar |
DefaultInterval
Gets the default interval associated with this range. Intervals
Declaration
public ChartDateTimeInterval DefaultInterval { get; }
Property Value
Type |
---|
ChartDateTimeInterval |
End
Gets the end boundary of this range.
Declaration
public DateTime End { get; }
Property Value
Type |
---|
System.DateTime |
Intervals
Gets the Collection of registered intervals. (ChartDateTimeInterval) of several types can be registered with this range. Intervals afford an easy way to partition and iterate through a date range.
Declaration
public ChartIntervalCollection Intervals { get; }
Property Value
Type |
---|
ChartIntervalCollection |
Start
Gets the start boundary of this range.
Declaration
public DateTime Start { get; }
Property Value
Type |
---|
System.DateTime |
Methods
ToString()
Overridden. Returns a string representation of this range.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current System.Object. |