ChartAxisLabel
ChartForgeX.Core
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
- Property ChartAxis.Labels
- Property ChartGaugeOptions.TickLabels
Accepted by parameters 12
- Method Chart.XLabels
- Extension method ChartAxis.Label
- Extension method ChartAxis.Labels
- Method ChartAxisFluent.Label
- Method ChartAxisFluent.Labels
- Method ChartAxisLabel.Equals
- Method ChartAxisLabel.op_Equality
- Method ChartAxisLabel.op_Equality
- Method ChartAxisLabel.op_Inequality
- Method ChartAxisLabel.op_Inequality
- Extension method ChartGaugeOptions.TickLabels
- Method ChartGaugeOptionsFluent.TickLabels
Constructors
public ChartAxisLabel(double value, string text) #Initializes a new instance of the ChartAxisLabel struct.
Parameters
- value double
- The numeric axis value.
- text string
- 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
- The original numeric category coordinate.
- text string
- The complete leaf caption.
- groups string[]
- 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
- The date/time axis value.
- text string
- The label text.
Methods
public bool Equals(ChartAxisLabel other) #Compares the coordinate, leaf caption and ordered parent captions by value.
Parameters
- other ChartForgeX.Core.ChartAxisLabel
Returns
boolpublic override bool Equals(object? obj) #Compares labels by value when obj is an axis label.
Parameters
- obj object?
Returns
boolpublic override int GetHashCode() #Returns a value hash of the coordinate and ordinal caption path.
Returns
intpublic static bool op_Equality(ChartAxisLabel left, ChartAxisLabel right) #Compares axis labels by value.
Parameters
- left ChartForgeX.Core.ChartAxisLabel
- right ChartForgeX.Core.ChartAxisLabel
Returns
boolpublic static bool op_Inequality(ChartAxisLabel left, ChartAxisLabel right) #Compares axis labels by value.
Parameters
- left ChartForgeX.Core.ChartAxisLabel
- right ChartForgeX.Core.ChartAxisLabel
Returns
boolInherited Methods
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.