menu

WPF

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

    Show / Hide Table of Contents

    Struct DateTimeRange

    Defines memebers and methods to handle DateTime type range in ChartAxis.

    Implements
    System.IEquatable<DateTimeRange>
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.ValueType.ToString()
    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

    true if this instance is empty; otherwise, false.

    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 other and current instance are the same type and represent the same value otherwise, false.

    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
    System.ValueType.Equals(System.Object)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    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 point1 and point2 instance are the same type and represent the same value otherwise, false.

    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 point1 and point2 are represent not the same value otherwise, false.

    Implements

    System.IEquatable<T>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved