ChartLineElement

StockSharp.Xaml.Charting

代表一行的图表元素。

继承自: ChartElement<ChartLineElement>

实现: IUltrachartPrimitive, IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IPersistable, IChartLineElement

构造函数

ChartLineElement
public ChartLineElement()
chartLineElement = ChartLineElement()

初始化了 & ##ChartLineElement+#的新实例.

属性

AdditionalColor
public Color AdditionalColor { get; set; }
value = chartLineElement.AdditionalColor
chartLineElement.AdditionalColor = value

附加行色(candles等),用此来绘制图表.

AntiAliasing
public bool AntiAliasing { get; set; }
value = chartLineElement.AntiAliasing
chartLineElement.AntiAliasing = value

反异名的行图。 默认启用 。

Color
public Color Color { get; set; }
value = chartLineElement.Color
chartLineElement.Color = value

线条颜色(candles等),用图上绘制.

DrawTemplate
public ControlTemplate DrawTemplate { get; set; }
value = chartLineElement.DrawTemplate
chartLineElement.DrawTemplate = value

Dot 风格 DrawStyles 的图表模板 。

ShowAxisMarker
public bool ShowAxisMarker { get; set; }
value = chartLineElement.ShowAxisMarker
chartLineElement.ShowAxisMarker = value

显示 Y 轴标记 。

StrokeThickness
public int StrokeThickness { get; set; }
value = chartLineElement.StrokeThickness
chartLineElement.StrokeThickness = value

图表上绘制的线条( 栏等) 的厚度。 默认值为 1 。

Style
public DrawStyles Style { get; set; }
value = chartLineElement.Style
chartLineElement.Style = value

线条绘图样式。默认是线条。

方法

CheckAxesCompatible
public override bool CheckAxesCompatible(ChartAxisType? xType, ChartAxisType? yType)
result = chartLineElement.CheckAxesCompatible(xType, yType)

检查元素是否可用所提供轴类型绘制 。

xType
X轴类型。
yType
Y轴类型.

返回值: 如果支持所提供类型。

Load
public override void Load(SettingsStorage storage)
chartLineElement.Load(storage)

装入设置 。

storage
设置存储 。
OnDraw
protected override bool OnDraw(ChartDrawData data)
result = chartLineElement.OnDraw(data)

绘制根元素 。

data
图表绘图数据。

返回值: 如果数据已成功绘制,否则返回。

Save
public override void Save(SettingsStorage storage)
chartLineElement.Save(storage)

保存设置 。

storage
设置存储 。