Skip to content
ChartForgeX
Struct

ChartAxisLabel

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Base
ValueType
Implements
IEquatable<ChartAxisLabel>
Modifiers
sealed

Represents a display label for a numeric axis value.

Inheritance

  • ValueType
  • ChartAxisLabel

Usage

Explore 14 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Accepted by parameters 12

Constructors

ChartAxisLabel 3 overloads
public ChartAxisLabel(double value, string text) #

Initializes a new instance of the ChartAxisLabel struct.

Parameters

value double required
The numeric axis value.
text string required
The label text.
public ChartAxisLabel(double value, string text, params string[] groups) #

Creates a numeric category label with a copied, immutable path of parent captions.

Parameters

value double required
The original numeric category coordinate.
text string required
The complete leaf caption.
groups string[] required
Nonblank parent captions, outermost first. An empty array leaves the label ungrouped.
public ChartAxisLabel(DateTime value, string text) #

Initializes a new instance of the ChartAxisLabel struct from a date/time axis value, stored as a UTC instant (DateTimeKind.Local values are converted; DateTimeKind.Unspecified values are treated as UTC). The label text is not changed.

Parameters

value System.DateTime required
The date/time axis value.
text string required
The label text.

Methods

Equals 2 overloads
public bool Equals(ChartAxisLabel other) #

Compares the coordinate, leaf caption and ordered parent captions by value.

Parameters

other ChartForgeX.Core.ChartAxisLabel required

Returns

bool
public override bool Equals(object? obj) #

Compares labels by value when obj is an axis label.

Parameters

obj object? required

Returns

bool
public override int GetHashCode() #

Returns a value hash of the coordinate and ordinal caption path.

Returns

int
public static bool op_Equality(ChartAxisLabel left, ChartAxisLabel right) #

Compares axis labels by value.

Parameters

left ChartForgeX.Core.ChartAxisLabel required
right ChartForgeX.Core.ChartAxisLabel required

Returns

bool
public static bool op_Inequality(ChartAxisLabel left, ChartAxisLabel right) #

Compares axis labels by value.

Parameters

left ChartForgeX.Core.ChartAxisLabel required
right ChartForgeX.Core.ChartAxisLabel required

Returns

bool

Properties

public IReadOnlyList<string> Groups { get; } #

Gets the category's parent captions, ordered from the outermost group to the nearest parent.

Fields

public readonly double Value #

Gets the axis value that should display the label.

public readonly string Text #

Gets the text displayed for the axis value.