ChartIndicatorElement
代表指标的图表元素。
继承自: ChartElement<ChartIndicatorElement>
实现: IChartIndicatorElement, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IAsyncPersistable
构造函数
public ChartIndicatorElement()
chartIndicatorElement = ChartIndicatorElement()
初始化了 & ##ChartIndicatorElement+#的新实例.
属性
public Color AdditionalColor { get; set; }
value = chartIndicatorElement.AdditionalColor
chartIndicatorElement.AdditionalColor = value
AdditionalColor的相容性属性,用于DefaultPainter.
public bool AntiAliasing { get; set; }
value = chartIndicatorElement.AntiAliasing
chartIndicatorElement.AntiAliasing = value
蜡烛渲染平滑(默认启用).
public bool AutoAssignYAxis { get; set; }
value = chartIndicatorElement.AutoAssignYAxis
chartIndicatorElement.AutoAssignYAxis = value
当元素被添加到图表时,自动指定 Y 轴 。
public Color Color { get; set; }
value = chartIndicatorElement.Color
chartIndicatorElement.Color = value
DefaultPainter 颜色的兼容性属性 。
public DrawStyles DrawStyle { get; set; }
value = chartIndicatorElement.DrawStyle
chartIndicatorElement.DrawStyle = value
蜡烛的作风
public ControlTemplate DrawTemplate { get; set; }
value = chartIndicatorElement.DrawTemplate
chartIndicatorElement.DrawTemplate = value
DrawTemplate的相容性属性,用于DefaultPainter.
public IChartIndicatorPainter IndicatorPainter { get; set; }
value = chartIndicatorElement.IndicatorPainter
chartIndicatorElement.IndicatorPainter = value
指向器 指向器
public bool ShowAxisMarker { get; set; }
value = chartIndicatorElement.ShowAxisMarker
chartIndicatorElement.ShowAxisMarker = value
显示 Y 轴标记 。
public int StrokeThickness { get; set; }
value = chartIndicatorElement.StrokeThickness
chartIndicatorElement.StrokeThickness = value
线宽( 栏或边框) , 将绘制图表上的蜡烛 。
方法
protected override ChartIndicatorElement CreateClone()
result = chartIndicatorElement.CreateClone()
创建克隆对象( 非初始化 ) 。
返回值: 战略
protected override string GetGeneratedTitle()
result = chartIndicatorElement.GetGeneratedTitle()
获得生成的标题 。
返回值: 自动生成图表元素标题 。
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartIndicatorElement.LoadAsync(storage, cancellationToken)
Asynchronously loads the state of the object from the specified SettingsStorage.
- storage
- The SettingsStorage instance from which to load the data.
- cancellationToken
- A token to monitor for cancellation requests.
返回值: A task that represents the asynchronous load operation.
protected override bool OnDraw(ChartDrawData data)
result = chartIndicatorElement.OnDraw(data)
绘制根元素 。
- data
- 图表绘图数据。
返回值: 如果数据已成功绘制,否则返回。
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartIndicatorElement.SaveAsync(storage, cancellationToken)
Asynchronously saves the state of the object to the specified SettingsStorage.
- storage
- The SettingsStorage instance to which to save the data.
- cancellationToken
- A token to monitor for cancellation requests.
返回值: A task that represents the asynchronous save operation.
public override string ToString()
result = chartIndicatorElement.ToString()
转换为行代表.
返回值: 弦乐表演.