TimeframeSegmentDataSeries
base class for segmented data series
Inherits: BindableObject
Implements: IDataSeries<DateTime, double>, IDataSeries, ISuspendable, ITimeframeDataSeries
Properties
public bool IsSuspended { get; }
value = timeframeSegmentDataSeries.IsSuspended
Gets a value indicating whether updates for the target are currently suspended
public IComparable LatestYValue { get; }
value = timeframeSegmentDataSeries.LatestYValue
Gets the latest Y-Value of the DataSeries
public string SeriesName { get; set; }
value = timeframeSegmentDataSeries.SeriesName
timeframeSegmentDataSeries.SeriesName = value
Gets or sets the name of this series
public Type XType { get; }
value = timeframeSegmentDataSeries.XType
Gets the Type of X-data points in this DataSeries. Used to check compatibility with Axis types
public Type YType { get; }
value = timeframeSegmentDataSeries.YType
Gets the Type of Y-data points in this DataSeries. Used to check compatibility with Axis types
Methods
public void InvalidateParentSurface(RangeMode rangeMode)
timeframeSegmentDataSeries.InvalidateParentSurface(rangeMode)
May be called to trigger a redraw on the parent UltrachartSurface. This method is extremely useful when IDataSeries are in a ViewModel and bound via MVVM to IRenderableSeries. Please see the parameter for invalidation options
- rangeMode
- Provides RangeMode invalidation options for the parent surface
public void ResumeUpdates(IUpdateSuspender suspender)
timeframeSegmentDataSeries.ResumeUpdates(suspender)
Resumes updates on the target, intended to be called by IUpdateSuspender
- suspender
public IUpdateSuspender SuspendUpdates()
result = timeframeSegmentDataSeries.SuspendUpdates()
Suspends drawing updates on the target until the returned object is disposed, when a final draw call will be issued
Returns: The disposable Update Suspender
Events
public event EventHandler<DataSeriesChangedEventArgs> DataSeriesChanged
timeframeSegmentDataSeries.DataSeriesChanged += handler
Event raised whenever points are added to, removed or one or more DataSeries properties changes