AnnotationData
Used to transfer annotation draw data.
Implements: IDrawValue, IPersistable, IAnnotationData
Properties
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
public Brush Fill { get; set; }
value = annotationData.Fill
annotationData.Fill = value
Brush to fill background.
public Brush Foreground { get; set; }
value = annotationData.Foreground
annotationData.Foreground = value
Brush to fill background.
public HorizontalAlignment? HorizontalAlignment { get; set; }
value = annotationData.HorizontalAlignment
annotationData.HorizontalAlignment = value
Alignment for horizontal lines.
public bool? IsEditable { get; set; }
value = annotationData.IsEditable
annotationData.IsEditable = value
Whether user can edit annotation.
public bool? IsVisible { get; set; }
value = annotationData.IsVisible
annotationData.IsVisible = value
Show/hide annotation.
public LabelPlacement? LabelPlacement { get; set; }
value = annotationData.LabelPlacement
annotationData.LabelPlacement = value
Label placement for horizontal and vertical lines.
public bool? ShowLabel { get; set; }
value = annotationData.ShowLabel
annotationData.ShowLabel = value
Turn on/off label show for horizontal and vertical lines.
public Brush Stroke { get; set; }
value = annotationData.Stroke
annotationData.Stroke = value
Brush to draw lines and borders.
public string Text { get; set; }
value = annotationData.Text
annotationData.Text = value
Text for text annotation.
public Thickness? Thickness { get; set; }
value = annotationData.Thickness
annotationData.Thickness = value
Line thickness.
public VerticalAlignment? VerticalAlignment { get; set; }
value = annotationData.VerticalAlignment
annotationData.VerticalAlignment = value
Alignment for vertical lines.
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.
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.
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.
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
public void Load(SettingsStorage storage)
annotationData.Load(storage)
Load settings.
- storage
- Settings storage.
public void Save(SettingsStorage storage)
annotationData.Save(storage)
Save settings.
- storage
- Settings storage.