Struct DateTimeRange
Defines memebers and methods to handle DateTime type range in ChartAxis.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public struct DateTimeRange : IEquatable<DateTimeRange>
Constructors
DateTimeRange(DateTime, DateTime)
Initializes a new instance of the DateTimeRange struct.
Declaration
public DateTimeRange(DateTime rangeStart, DateTime rangeEnd)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | rangeStart | The range start. |
System.DateTime | rangeEnd | The range end. |
Properties
End
Gets the end.
Declaration
public DateTime End { get; }
Property Value
Type | Description |
---|---|
System.DateTime | The end value. |
IsEmpty
Gets a value indicating whether this instance is empty.
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Start
Gets the start.
Declaration
public DateTime Start { get; }
Property Value
Type | Description |
---|---|
System.DateTime | The start. |
Methods
Equals(DateTimeRange)
Indicates whether this instance and a specified range are equal.
Declaration
public bool Equals(DateTimeRange other)
Parameters
Type | Name | Description |
---|---|---|
DateTimeRange | other | The range to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if start and end range of |
Equals(Object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if obj and this instance are the same type and represent the same value otherwise, false. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
---|
System.Int32 |
Overrides
Operators
Equality(DateTimeRange, DateTimeRange)
Indicates whether the both instance and a specified range are equal.
Declaration
public static bool operator ==(DateTimeRange point1, DateTimeRange point2)
Parameters
Type | Name | Description |
---|---|---|
DateTimeRange | point1 | |
DateTimeRange | point2 |
Returns
Type | Description |
---|---|
System.Boolean | true if |
Inequality(DateTimeRange, DateTimeRange)
Indicates whether both the specified range are not equal.
Declaration
public static bool operator !=(DateTimeRange point1, DateTimeRange point2)
Parameters
Type | Name | Description |
---|---|---|
DateTimeRange | point1 | |
DateTimeRange | point2 |
Returns
Type | Description |
---|---|
System.Boolean | true if |