IRenderSurface2D

StockSharp.Xaml.Charting.Rendering.Common

Defines the interface to a RenderSurface, which is a viewport used within the to render BaseRenderableSeries types in a fast manner. The renderer architecture is plugin based, meaning we have build multiple implementations of RenderSurfaceBase.

Implements: IRenderSurface, IDisposable, IHitTestable, IInvalidatableElement

Properties

ChildSeries
public ReadOnlyCollection<IRenderableSeries> ChildSeries { get; }
value = iRenderSurface2D.ChildSeries

Gets the child RenderableSeries in this IRenderSurface2D instance

Methods

AddSeries
public void AddSeries(IRenderableSeries renderableSeries)
iRenderSurface2D.AddSeries(renderableSeries)

Adds the IRenderableSeries instance to the IRenderSurface2D

renderableSeries
AddSeries
public void AddSeries(IEnumerable<IRenderableSeries> renderableSeries)
iRenderSurface2D.AddSeries(renderableSeries)

Adds the IRenderableSeries instance to the IRenderSurface2D

renderableSeries
ContainsSeries
public bool ContainsSeries(IRenderableSeries renderableSeries)
result = iRenderSurface2D.ContainsSeries(renderableSeries)

Returns True if the RenderSurfaceBase contains the IRenderableSeries instance

renderableSeries
the IRenderableSeries instance
GetRenderContext
public IRenderContext2D GetRenderContext()
result = iRenderSurface2D.GetRenderContext()

Creates an IRenderContext2D instance to perform drawing operations. Note this is only valid for the current render pass

RemoveSeries
public void RemoveSeries(IRenderableSeries renderableSeries)
iRenderSurface2D.RemoveSeries(renderableSeries)

Removes the IRenderableSeries from the IRenderSurface2D

renderableSeries