Table of Contents

Class ChartLineElement

Namespace
StockSharp.Xaml.Charting
Assembly
StockSharp.Xaml.Charting.dll

The chart element representing a line.

public class ChartLineElement : ChartElement<ChartLineElement>, IChartPart<ChartLineElement>, IChartLineElement, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IPersistable
Inheritance
ChartLineElement
Implements
IPersistable
Derived
Inherited Members
Extension Methods

Constructors

ChartLineElement()

Initializes a new instance of the ChartLineElement.

public ChartLineElement()

Properties

AdditionalColor

Additional line color (candles, etc.), with which it will be drawn on the chart.

[Display(ResourceType = typeof(LocalizedStrings), Name = "AdditionalColor", Description = "AdditionalColorDesc", Order = 40)]
public Color AdditionalColor { get; set; }

Property Value

Color

AntiAliasing

The anti aliasing of the line drawing. The default is enabled.

[Display(ResourceType = typeof(LocalizedStrings), Name = "AntiAliasing", Description = "LineAntiAliasing", Order = 60)]
public bool AntiAliasing { get; set; }

Property Value

bool

Color

Line color (candles, etc.), with which it will be drawn on chart.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Color", Description = "ColorDesc", Order = 30)]
public Color Color { get; set; }

Property Value

Color

DrawTemplate

The chart template for the Dot style ChartIndicatorDrawStyles.

[Browsable(false)]
public ControlTemplate DrawTemplate { get; set; }

Property Value

ControlTemplate

ShowAxisMarker

Show Y-axis marker.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Marker", Description = "ShowAxisMarker", Order = 80)]
public bool ShowAxisMarker { get; set; }

Property Value

bool

StrokeThickness

The thickness of the line (bar, etc.) with which it will be drawn on the chart. The default is 1.

[Display(ResourceType = typeof(LocalizedStrings), Name = "LineWidth", Description = "LineWidthDesc", Order = 50)]
public int StrokeThickness { get; set; }

Property Value

int

Style

The line drawing style. The default is Line.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Style", Description = "StyleRender", Order = 70)]
public ChartIndicatorDrawStyles Style { get; set; }

Property Value

ChartIndicatorDrawStyles

Methods

CheckAxesCompatible(ChartAxisType?, ChartAxisType?)

Check if the element can be drawn using supplied axis types.

public override bool CheckAxesCompatible(ChartAxisType? xType, ChartAxisType? yType)

Parameters

xType ChartAxisType?

X axis type.

yType ChartAxisType?

Y axis type.

Returns

bool

true if supplied types are supported.

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnDraw(ChartDrawData)

Draw on root element.

protected override bool OnDraw(ChartDrawData data)

Parameters

data ChartDrawData

Chart drawing data.

Returns

bool

true if the data was successfully drawn, otherwise, returns false.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.