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
Fill
Brush to fill background.
public Brush Fill { get; set; }
Property Value
Foreground
Brush to fill background.
public Brush Foreground { get; set; }
Property Value
HorizontalAlignment
Alignment for horizontal lines.
public HorizontalAlignment? HorizontalAlignment { get; set; }
Property Value
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
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
Text
Text for text annotation.
public string Text { get; set; }
Property Value
Thickness
Line thickness.
public Thickness? Thickness { get; set; }
Property Value
VerticalAlignment
Alignment for vertical lines.
public VerticalAlignment? VerticalAlignment { get; set; }
Property Value
X1
X1 coordinate for annotation drawing. DateTimeOffset for coordinate mode Absolute or RelativeY. double otherwise.
public IComparable X1 { get; set; }
Property Value
X2
X2 coordinate for annotation drawing. DateTimeOffset for coordinate mode Absolute or RelativeY. double otherwise.
public IComparable X2 { get; set; }
Property Value
Y1
Y1 coordinate for annotation drawing. decimal for coordinate mode Absolute or RelativeX. double otherwise.
public IComparable Y1 { get; set; }
Property Value
Y2
Y2 coordinate for annotation drawing. decimal for coordinate mode Absolute or RelativeX. double otherwise.
public IComparable Y2 { get; set; }
Property Value
Methods
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.