TimeSpanDelta
Defines a TimeSpan Delta, which provides Major and Minor deltas as used in DateTimeAxis
Implements: IAxisDelta<TimeSpan>, IAxisDelta, ICloneable, IEquatable<TimeSpanDelta>
Constructors
public TimeSpanDelta()
timeSpanDelta = TimeSpanDelta()
Initializes a new instance of the TimeSpanDelta class.
public TimeSpanDelta(TimeSpan minorDelta, TimeSpan majorDelta)
timeSpanDelta = TimeSpanDelta(minorDelta, majorDelta)
Initializes a new instance of the TimeSpanDelta class.
- minorDelta
- The minor delta.
- majorDelta
- The major delta.
Properties
public TimeSpan MajorDelta { get; set; }
value = timeSpanDelta.MajorDelta
timeSpanDelta.MajorDelta = value
Gets or sets the major delta.
public TimeSpan MinorDelta { get; set; }
value = timeSpanDelta.MinorDelta
timeSpanDelta.MinorDelta = value
Gets or sets the minor delta.
Methods
public override bool Equals(object obj)
result = timeSpanDelta.Equals(obj)
Determines whether the specified Object is equal to this instance.
- obj
- The Object to compare with the current Object.
Returns: true if the specified Object is equal to this instance; otherwise, false.
public bool Equals(TimeSpanDelta other)
result = timeSpanDelta.Equals(other)
Indicates whether the current object is equal to another object of the same type.
- other
- An object to compare with this object.
Returns: true if the current object is equal to the parameter; otherwise, false.
public override int GetHashCode()
result = timeSpanDelta.GetHashCode()
Returns a hash code for this instance.
Returns: A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
public static bool op_Equality(TimeSpanDelta left, TimeSpanDelta right)
result = TimeSpanDelta.op_Equality(left, right)
Implements the operator ==.
- left
- The left.
- right
- The right.
Returns: The result of the operator.
public static bool op_Inequality(TimeSpanDelta left, TimeSpanDelta right)
result = TimeSpanDelta.op_Inequality(left, right)
Implements the operator !=.
- left
- The left.
- right
- The right.
Returns: The result of the operator.
public override string ToString()
result = timeSpanDelta.ToString()
Returns a String that represents this instance.
Returns: A String that represents this instance.