ChartAnnotation

StockSharp.Xaml.Charting

Annotation.

Inherits: ChartElement<ChartAnnotation>

Implements: IUltrachartPrimitive, IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IPersistable, IChartAnnotationElement

Constructors

ChartAnnotation
public ChartAnnotation()
chartAnnotation = ChartAnnotation()

Initializes a new instance of the ChartAnnotation.

Properties

Type
public ChartAnnotationTypes Type { get; set; }
value = chartAnnotation.Type
chartAnnotation.Type = value

Annotation type.

Methods

CopyTo
internal override ChartAnnotation CopyTo(ChartAnnotation elem)
result = chartAnnotation.CopyTo(elem)

To fill out a copy of the element.

elem
Copy.

Returns: Copy.

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

Loads the state of the object from the specified SettingsStorage.

storage
The SettingsStorage instance from which to load the data.
OnDraw
protected override bool OnDraw(ChartDrawData data)
result = chartAnnotation.OnDraw(data)

Draw on root element.

data
Chart drawing data.

Returns: if the data was successfully drawn, otherwise, returns .

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

Saves the state of the object to the specified SettingsStorage.

storage
The SettingsStorage instance to which to save the data.