Skip to content
ChartForgeX
Class

ChartGaugeOptions

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed
Attributes
Fluent(Copy = "Clone")

Controls arc, needle and linear gauges without introducing host behaviour.

Inheritance

  • object
  • ChartGaugeOptions

Usage

Explore 53 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.

Accepted by parameters 30

Constructors

public ChartGaugeOptions() #

Properties

public ChartGaugeForm Form { get; set; } #

Gets or sets the gauge form.

public ChartOrientation Orientation { get; set; } #

Gets or sets the linear gauge direction. Horizontal places the minimum at the left; vertical places it at the bottom.

public double StartAngleDegrees { get; set; } #

Gets or sets the radial scale's starting angle in degrees. Zero points right and positive angles turn clockwise.

public double SweepAngleDegrees { get; set; } #

Gets or sets the radial scale's clockwise sweep in degrees, greater than zero and at most 360.

public int? TickCount { get; set; } #

Gets or sets the preferred generated tick ceiling. Null uses two radial or five linear ticks.

public IReadOnlyList<ChartAxisLabel> TickLabels { get; set; } #

Gets or sets a detached read-only snapshot of explicit tick values and captions in authored order.

public double BandGap { get; set; } #

Gets or sets the total empty inset between band segments in logical pixels. Half is removed at each segment end; zero retains contiguous bands.

public ChartColor? NeedleColor { get; set; } #

Gets or sets an optional needle color. Null uses the measured value paint; it does not change the reading or semantic band state.

public string? Caption { get; set; } #

Gets or sets the caption beneath the value. Null uses the series name.

public List<ChartGaugeBand> Bands { get; private set; } #

Gets the optional bands. Overlap is rejected when rendering.

Extension Methods

public static ChartGaugeOptions Band(ChartGaugeOptions chartGaugeOptions, ChartGaugeBand item) #

Adds an item to ChartGaugeOptions.Bands: Gets the optional bands. Overlap is rejected when rendering.

Parameters

chartGaugeOptions ChartForgeX.Core.ChartGaugeOptions required
The instance.
item ChartForgeX.Core.ChartGaugeBand required
The item.

Returns

ChartGaugeOptions The same instance.
public static ChartGaugeOptions BandGap(ChartGaugeOptions chartGaugeOptions, double value) #

Sets ChartGaugeOptions.BandGap: Gets or sets the total empty inset between band segments in logical pixels. Half is removed at each segment end; zero retains contiguous bands.

Parameters

chartGaugeOptions ChartForgeX.Core.ChartGaugeOptions required
The instance.
value double required
The value.

Returns

ChartGaugeOptions The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::ChartForgeX.Core.ChartGaugeOptions { BandGap = value };    chartGaugeOptions.BandGap(value);
public static ChartGaugeOptions Bands(ChartGaugeOptions chartGaugeOptions, IEnumerable<ChartGaugeBand> items) #

Adds items to ChartGaugeOptions.Bands: Gets the optional bands. Overlap is rejected when rendering.

Parameters

chartGaugeOptions ChartForgeX.Core.ChartGaugeOptions required
The instance.
items System.Collections.Generic.IEnumerable<ChartForgeX.Core.ChartGaugeBand> required
The items, in order.

Returns

ChartGaugeOptions The same instance.
public static ChartGaugeOptions Caption(ChartGaugeOptions chartGaugeOptions, string? value) #

Sets ChartGaugeOptions.Caption: Gets or sets the caption beneath the value. Null uses the series name.

Parameters

chartGaugeOptions ChartForgeX.Core.ChartGaugeOptions required
The instance.
value string? required
The value.

Returns

ChartGaugeOptions The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::ChartForgeX.Core.ChartGaugeOptions { Caption = value };    chartGaugeOptions.Caption(value);
public static ChartGaugeOptions Form(ChartGaugeOptions chartGaugeOptions, ChartGaugeForm value) #

Sets ChartGaugeOptions.Form: Gets or sets the gauge form.

Parameters

chartGaugeOptions ChartForgeX.Core.ChartGaugeOptions required
The instance.
value ChartForgeX.Core.ChartGaugeForm required
The value.

Returns

ChartGaugeOptions The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::ChartForgeX.Core.ChartGaugeOptions { Form = value };    chartGaugeOptions.Form(value);
public static ChartGaugeOptions NeedleColor(ChartGaugeOptions chartGaugeOptions, ChartColor? value) #

Sets ChartGaugeOptions.NeedleColor: Gets or sets an optional needle color. Null uses the measured value paint; it does not change the reading or semantic band state.

Parameters

chartGaugeOptions ChartForgeX.Core.ChartGaugeOptions required
The instance.
value ChartForgeX.Primitives.ChartColor? required
The value.

Returns

ChartGaugeOptions The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Core.ChartGaugeOptions { NeedleColor = value };    chartGaugeOptions.NeedleColor(value);
public static ChartGaugeOptions Orientation(ChartGaugeOptions chartGaugeOptions, ChartOrientation value) #

Sets ChartGaugeOptions.Orientation: Gets or sets the linear gauge direction. Horizontal places the minimum at the left; vertical places it at the bottom.

Parameters

chartGaugeOptions ChartForgeX.Core.ChartGaugeOptions required
The instance.
value ChartForgeX.Core.ChartOrientation required
The value.

Returns

ChartGaugeOptions The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Core.ChartGaugeOptions { Orientation = value };    chartGaugeOptions.Orientation(value);
public static ChartGaugeOptions StartAngleDegrees(ChartGaugeOptions chartGaugeOptions, double value) #

Sets ChartGaugeOptions.StartAngleDegrees: Gets or sets the radial scale's starting angle in degrees. Zero points right and positive angles turn clockwise.

Parameters

chartGaugeOptions ChartForgeX.Core.ChartGaugeOptions required
The instance.
value double required
The value.

Returns

ChartGaugeOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ChartForgeX.Core.ChartGaugeOptions { StartAngleDegrees = value };    chartGaugeOptions.StartAngleDegrees(value);
public static ChartGaugeOptions SweepAngleDegrees(ChartGaugeOptions chartGaugeOptions, double value) #

Sets ChartGaugeOptions.SweepAngleDegrees: Gets or sets the radial scale's clockwise sweep in degrees, greater than zero and at most 360.

Parameters

chartGaugeOptions ChartForgeX.Core.ChartGaugeOptions required
The instance.
value double required
The value.

Returns

ChartGaugeOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ChartForgeX.Core.ChartGaugeOptions { SweepAngleDegrees = value };    chartGaugeOptions.SweepAngleDegrees(value);
public static ChartGaugeOptions TickCount(ChartGaugeOptions chartGaugeOptions, int? value) #

Sets ChartGaugeOptions.TickCount: Gets or sets the preferred generated tick ceiling. Null uses two radial or five linear ticks.

Parameters

chartGaugeOptions ChartForgeX.Core.ChartGaugeOptions required
The instance.
value int? required
The value.

Returns

ChartGaugeOptions The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::ChartForgeX.Core.ChartGaugeOptions { TickCount = value };    chartGaugeOptions.TickCount(value);
public static ChartGaugeOptions TickLabels(ChartGaugeOptions chartGaugeOptions, IReadOnlyList<ChartAxisLabel> value) #

Sets ChartGaugeOptions.TickLabels: Gets or sets a detached read-only snapshot of explicit tick values and captions in authored order.

Parameters

chartGaugeOptions ChartForgeX.Core.ChartGaugeOptions required
The instance.
value System.Collections.Generic.IReadOnlyList<ChartForgeX.Core.ChartAxisLabel> required
The value.

Returns

ChartGaugeOptions The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::ChartForgeX.Core.ChartGaugeOptions { TickLabels = value };    chartGaugeOptions.TickLabels(value);