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
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
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
DrawTemplate
The chart template for the Dot style Ecng.Drawing.DrawStyles.
[Browsable(false)]
public ControlTemplate DrawTemplate { get; set; }
Property Value
ShowAxisMarker
Show Y-axis marker.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Marker", Description = "ShowAxisMarker", Order = 80)]
public bool ShowAxisMarker { get; set; }
Property Value
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
Style
The line drawing style. The default is Ecng.Drawing.DrawStyles.Line.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Style", Description = "StyleRender", Order = 70)]
public DrawStyles Style { get; set; }
Property Value
- DrawStyles
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
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnDraw(ChartDrawData)
Draw on root element.
protected override bool OnDraw(ChartDrawData data)
Parameters
data
ChartDrawDataChart drawing data.
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.