TimeSpanTickProvider
StockSharp.Xaml.Charting.Visuals.Axes
Provides tick coordinates for the DateTimeAxis
Inherits: TimeSpanTickProviderBase
Methods
AddDelta
protected override IComparable AddDelta(IComparable current, TimeSpan delta)
result = timeSpanTickProvider.AddDelta(current, delta)
When overriden in a derived class, Adds the IComparable to the nearest TimeSpan specified by
- current
- The current value.
- delta
- The delta.
Returns: The addition result
GetTicks
protected override double GetTicks(IComparable value)
result = timeSpanTickProvider.GetTicks(value)
Returns Ticks or Ticks depending on derived type
- value
IsAdditionValid
protected override bool IsAdditionValid(IComparable current, TimeSpan delta)
result = timeSpanTickProvider.IsAdditionValid(current, delta)
Determines whether addition is valid between the current IComparable and the TimeSpan specified by
- current
- The current.
- delta
- The delta.
Returns: If True, addition is valid
IsDivisibleBy
protected override bool IsDivisibleBy(IComparable current, TimeSpan delta)
result = timeSpanTickProvider.IsDivisibleBy(current, delta)
When overriden in a derived class, Determines whether the IComparable is divisible by the TimeSpan specified by
- current
- The current value.
- delta
- The delta.
Returns: If True, IsDivisibleBy
RoundUp
protected override IComparable RoundUp(IComparable current, TimeSpan delta)
result = timeSpanTickProvider.RoundUp(current, delta)
When overriden in a derived class, Rounds up the IComparable to the nearest TimeSpan specified by
- current
- The current value.
- delta
- The delta.
Returns: The rounded value