TimeframeSegmentDataSeries

StockSharp.Xaml.Charting.Model.DataSeries.SegmentDataSeries

base class for segmented data series

Inherits: BindableObject

Implements: IDataSeries<DateTime, double>, IDataSeries, ISuspendable, ITimeframeDataSeries

Properties

IsSuspended
public bool IsSuspended { get; }
value = timeframeSegmentDataSeries.IsSuspended

Gets a value indicating whether updates for the target are currently suspended

LatestYValue
public IComparable LatestYValue { get; }
value = timeframeSegmentDataSeries.LatestYValue

Gets the latest Y-Value of the DataSeries

SeriesName
public string SeriesName { get; set; }
value = timeframeSegmentDataSeries.SeriesName
timeframeSegmentDataSeries.SeriesName = value

Gets or sets the name of this series

XType
public Type XType { get; }
value = timeframeSegmentDataSeries.XType

Gets the Type of X-data points in this DataSeries. Used to check compatibility with Axis types

YType
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

InvalidateParentSurface
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
ResumeUpdates
public void ResumeUpdates(IUpdateSuspender suspender)
timeframeSegmentDataSeries.ResumeUpdates(suspender)

Resumes updates on the target, intended to be called by IUpdateSuspender

suspender
SuspendUpdates
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

DataSeriesChanged
public event EventHandler<DataSeriesChangedEventArgs> DataSeriesChanged
timeframeSegmentDataSeries.DataSeriesChanged += handler

Event raised whenever points are added to, removed or one or more DataSeries properties changes