TimeSpanDelta

StockSharp.Xaml.Charting

Defines a TimeSpan Delta, which provides Major and Minor deltas as used in DateTimeAxis

Implements: IAxisDelta<TimeSpan>, IAxisDelta, ICloneable, IEquatable<TimeSpanDelta>

Constructors

TimeSpanDelta
public TimeSpanDelta()
timeSpanDelta = TimeSpanDelta()

Initializes a new instance of the TimeSpanDelta class.

TimeSpanDelta
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

MajorDelta
public TimeSpan MajorDelta { get; set; }
value = timeSpanDelta.MajorDelta
timeSpanDelta.MajorDelta = value

Gets or sets the major delta.

MinorDelta
public TimeSpan MinorDelta { get; set; }
value = timeSpanDelta.MinorDelta
timeSpanDelta.MinorDelta = value

Gets or sets the minor delta.

Methods

Clone
public object Clone()
result = timeSpanDelta.Clone()

Clones this instance.

Equals
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.

Equals
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.

GetHashCode
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.

op_Equality
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.

op_Inequality
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.

ToString
public override string ToString()
result = timeSpanDelta.ToString()

Returns a String that represents this instance.

Returns: A String that represents this instance.