AnnotationData

StockSharp.Xaml.Charting.ChartDrawData

Used to transfer annotation draw data.

Implements: IDrawValue, IPersistable, IAnnotationData

Properties

CoordinateMode
public AnnotationCoordinateMode? CoordinateMode { get; set; }
value = annotationData.CoordinateMode
annotationData.CoordinateMode = value

Coordinate mode. Absolute means DateTime for X and Decimal price for Y. Relative means relative to the screen edges: double. 0=top/left, 0.5=center, 1=bottom/right

Fill
public Brush Fill { get; set; }
value = annotationData.Fill
annotationData.Fill = value

Brush to fill background.

Foreground
public Brush Foreground { get; set; }
value = annotationData.Foreground
annotationData.Foreground = value

Brush to fill background.

HorizontalAlignment
public HorizontalAlignment? HorizontalAlignment { get; set; }
value = annotationData.HorizontalAlignment
annotationData.HorizontalAlignment = value

Alignment for horizontal lines.

IsEditable
public bool? IsEditable { get; set; }
value = annotationData.IsEditable
annotationData.IsEditable = value

Whether user can edit annotation.

IsVisible
public bool? IsVisible { get; set; }
value = annotationData.IsVisible
annotationData.IsVisible = value

Show/hide annotation.

LabelPlacement
public LabelPlacement? LabelPlacement { get; set; }
value = annotationData.LabelPlacement
annotationData.LabelPlacement = value

Label placement for horizontal and vertical lines.

ShowLabel
public bool? ShowLabel { get; set; }
value = annotationData.ShowLabel
annotationData.ShowLabel = value

Turn on/off label show for horizontal and vertical lines.

Stroke
public Brush Stroke { get; set; }
value = annotationData.Stroke
annotationData.Stroke = value

Brush to draw lines and borders.

Text
public string Text { get; set; }
value = annotationData.Text
annotationData.Text = value

Text for text annotation.

Thickness
public Thickness? Thickness { get; set; }
value = annotationData.Thickness
annotationData.Thickness = value

Line thickness.

VerticalAlignment
public VerticalAlignment? VerticalAlignment { get; set; }
value = annotationData.VerticalAlignment
annotationData.VerticalAlignment = value

Alignment for vertical lines.

X1
public IComparable X1 { get; set; }
value = annotationData.X1
annotationData.X1 = value

X1 coordinate for annotation drawing. DateTime for coordinate mode Absolute or RelativeY. Double otherwise.

X2
public IComparable X2 { get; set; }
value = annotationData.X2
annotationData.X2 = value

X2 coordinate for annotation drawing. DateTime for coordinate mode Absolute or RelativeY. Double otherwise.

Y1
public IComparable Y1 { get; set; }
value = annotationData.Y1
annotationData.Y1 = value

Y1 coordinate for annotation drawing. Decimal for coordinate mode Absolute or RelativeX. Double otherwise.

Y2
public IComparable Y2 { get; set; }
value = annotationData.Y2
annotationData.Y2 = value

Y2 coordinate for annotation drawing. Decimal for coordinate mode Absolute or RelativeX. Double otherwise.

Methods

Load
public void Load(SettingsStorage storage)
annotationData.Load(storage)

Load settings.

storage
Settings storage.
Save
public void Save(SettingsStorage storage)
annotationData.Save(storage)

Save settings.

storage
Settings storage.