ChartLineElement
Das Diagrammelement, das eine Linie darstellt.
Erbt von: ChartElement<ChartLineElement>
Implementiert: IUltrachartPrimitive, IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IAsyncPersistable, IChartLineElement
Konstruktoren
public ChartLineElement()
chartLineElement = ChartLineElement()
Initialisiert eine neue Instanz von ChartLineElement.
Eigenschaften
public Color AdditionalColor { get; set; }
value = chartLineElement.AdditionalColor
chartLineElement.AdditionalColor = value
Zusätzliche Linienfarbe (Kerzen, etc.), mit der sie auf dem Chart gezeichnet wird.
public bool AntiAliasing { get; set; }
value = chartLineElement.AntiAliasing
chartLineElement.AntiAliasing = value
Die Anti-Aliasing-Funktion der Zeilenzeichnung: Die Vorgabe ist aktiviert.
public Color Color { get; set; }
value = chartLineElement.Color
chartLineElement.Color = value
Linienfarbe (Kerzen, etc.), mit der es auf Chart gezeichnet wird.
internal IReadOnlyList<ChartDrawnPoint> DrawnPoints { get; }
value = chartLineElement.DrawnPoints
The points the element has drawn, in the order of the horizontal axis; none before it has been placed on an area.
public ControlTemplate DrawTemplate { get; set; }
value = chartLineElement.DrawTemplate
chartLineElement.DrawTemplate = value
Die Chartvorlage für den Dot-Stil DrawStyles.
public bool ShowAxisMarker { get; set; }
value = chartLineElement.ShowAxisMarker
chartLineElement.ShowAxisMarker = value
Y-Achsenmarker anzeigen.
public int StrokeThickness { get; set; }
value = chartLineElement.StrokeThickness
chartLineElement.StrokeThickness = value
Die Dicke der Linie (Balken usw.), mit der sie auf dem Diagramm gezeichnet wird.
public DrawStyles Style { get; set; }
value = chartLineElement.Style
chartLineElement.Style = value
Der Linienzeichnungsstil. Der Standard ist Linie.
Methoden
public override bool CheckAxesCompatible(ChartAxisType? xType, ChartAxisType? yType)
result = chartLineElement.CheckAxesCompatible(xType, yType)
Prüfen Sie, ob das Element mit den mitgelieferten Achsentypen gezeichnet werden kann.
- xType
- X-Achsentyp.
- yType
- Y-Achsentyp.
Rückgabe: wenn gelieferte Typen unterstützt werden.
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartLineElement.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Rückgabe: Task
protected override bool OnDraw(ChartDrawData data)
result = chartLineElement.OnDraw(data)
Zeichnen Sie auf Wurzelelement.
- data
- Kartenzeichnungsdaten.
Rückgabe: wenn die Daten erfolgreich gezogen wurden, andernfalls zurückgegeben werden.
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartLineElement.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Rückgabe: Task