Table of Contents

Class ChartDrawData.AnnotationData

Namespace
StockSharp.Xaml.Charting
Assembly
StockSharp.Xaml.Charting.dll

Used to transfer annotation draw data.

public class ChartDrawData.AnnotationData : ChartDrawData.IDrawValue, IPersistable, IAnnotationData
Inheritance
ChartDrawData.AnnotationData
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

AnnotationData()

public AnnotationData()

Properties

CoordinateMode

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

public AnnotationCoordinateMode? CoordinateMode { get; set; }

Property Value

AnnotationCoordinateMode?

Fill

Brush to fill background.

public Brush Fill { get; set; }

Property Value

Brush

Foreground

Brush to fill background.

public Brush Foreground { get; set; }

Property Value

Brush

HorizontalAlignment

Alignment for horizontal lines.

public HorizontalAlignment? HorizontalAlignment { get; set; }

Property Value

HorizontalAlignment?

IsEditable

Whether user can edit annotation.

public bool? IsEditable { get; set; }

Property Value

bool?

IsVisible

Show/hide annotation.

public bool? IsVisible { get; set; }

Property Value

bool?

LabelPlacement

Label placement for horizontal and vertical lines.

public LabelPlacement? LabelPlacement { get; set; }

Property Value

LabelPlacement?

ShowLabel

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

public bool? ShowLabel { get; set; }

Property Value

bool?

Stroke

Brush to draw lines and borders.

public Brush Stroke { get; set; }

Property Value

Brush

Text

Text for text annotation.

public string Text { get; set; }

Property Value

string

Thickness

Line thickness.

public Thickness? Thickness { get; set; }

Property Value

Thickness?

VerticalAlignment

Alignment for vertical lines.

public VerticalAlignment? VerticalAlignment { get; set; }

Property Value

VerticalAlignment?

X1

X1 coordinate for annotation drawing. DateTimeOffset for coordinate mode Absolute or RelativeY. double otherwise.

public IComparable X1 { get; set; }

Property Value

IComparable

X2

X2 coordinate for annotation drawing. DateTimeOffset for coordinate mode Absolute or RelativeY. double otherwise.

public IComparable X2 { get; set; }

Property Value

IComparable

Y1

Y1 coordinate for annotation drawing. decimal for coordinate mode Absolute or RelativeX. double otherwise.

public IComparable Y1 { get; set; }

Property Value

IComparable

Y2

Y2 coordinate for annotation drawing. decimal for coordinate mode Absolute or RelativeX. double otherwise.

public IComparable Y2 { get; set; }

Property Value

IComparable

Methods

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.