AnnotationData

StockSharp.Xaml.Charting.ChartDrawData

Wird verwendet, um Annotations-Ziehdaten zu übertragen.

Implementiert: IDrawValue, IAsyncPersistable, IAnnotationData

Eigenschaften

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

Koordinatenmodus. Absolut bedeutet DateTime für X und Dezimalpreis für Y. Relativ bedeutet relativ zu den Bildschirmkanten: doppelt. 0=oben/links, 0,5=Mitte, 1=unten/rechts.

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

Brush zum Füllen des Hintergrunds.

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

Brush zum Füllen des Hintergrunds.

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

Ausrichtung für horizontale Linien.

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

Ob der Benutzer Annotation bearbeiten kann.

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

Zeigen/Verstecken von Anmerkungen.

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

Etikettenplatzierung für horizontale und vertikale Linien.

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

Schalten Sie die Etikettenshow für horizontale und vertikale Linien ein/aus.

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

Pinsel, um Linien und Grenzen zu zeichnen.

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

Text für Text-Annotation.

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

Liniendicke.

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

Ausrichtung auf vertikale Linien.

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

X1-Koordinate für die Anmerkungszeichnung. DateTime für den Koordinatenmodus Absolut oder RelativeY. Ansonsten verdoppeln.

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

X2-Koordinate für die Anmerkungszeichnung. DateTime für den Koordinatenmodus Absolut oder RelativeY. Ansonsten verdoppeln.

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

Y1-Koordinate für die Anmerkungszeichnung. Dezimal für den Koordinatenmodus Absolut oder RelativeX. Ansonsten doppelt.

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

Y2-Koordinate für die Anmerkungszeichnung. Dezimal für den Koordinatenmodus Absolut oder RelativeX. Ansonsten doppelt.

Methoden

LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = annotationData.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Rückgabe: Task

SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = annotationData.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Rückgabe: Task