Skip to content
ChartForgeX
Class

SegmentedMetricItem

ChartForgeX.VisualBlocks

Namespace
ChartForgeX.VisualBlocks
Assembly
ChartForgeX.Visuals
Modifiers
sealed
Attributes
Fluent

One item in a segmented metric block.

Inheritance

  • object
  • SegmentedMetricItem

Usage

Explore 43 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 22

Constructors

public SegmentedMetricItem(string label, double value) #

Initializes a segmented metric item.

Parameters

label string required
value double required

Properties

public string Label { get; set; } #

Gets or sets the item label.

public double Value { get; set; } #

Gets or sets the numeric item value.

public double Maximum { get; set; } #

Gets or sets the maximum for progress-style items.

public int Segments { get; set; } #

Gets or sets the fixed segment count for progress-style items.

public ChartColor? Color { get; set; } #

Gets or sets an optional item accent color.

public string Delta { get; set; } #

Gets or sets optional delta text.

public string Symbol { get; set; } #

Gets or sets compact symbol text shown in distribution rows.

public string DisplayValue { get; set; } #

Gets or sets optional display text used instead of a derived item value.

public Tone Tone { get; set; } #

Gets or sets the semantic item status.

public ChartFillPattern Pattern { get; set; } #

Gets or sets an optional fill pattern hint.

Extension Methods

public static SegmentedMetricItem Color(SegmentedMetricItem segmentedMetricItem, ChartColor? value) #

Sets SegmentedMetricItem.Color: Gets or sets an optional item accent color.

Parameters

segmentedMetricItem ChartForgeX.VisualBlocks.SegmentedMetricItem required
The instance.
value ChartForgeX.Primitives.ChartColor? required
The value.

Returns

SegmentedMetricItem The same instance.

Examples

// C# initializer or property         // C# fluent
segmentedMetricItem.Color = value;    segmentedMetricItem.Color(value);
public static SegmentedMetricItem Delta(SegmentedMetricItem segmentedMetricItem, string value) #

Sets SegmentedMetricItem.Delta: Gets or sets optional delta text.

Parameters

segmentedMetricItem ChartForgeX.VisualBlocks.SegmentedMetricItem required
The instance.
value string required
The value.

Returns

SegmentedMetricItem The same instance.

Examples

// C# initializer or property         // C# fluent
segmentedMetricItem.Delta = value;    segmentedMetricItem.Delta(value);
DisplayValue 2 overloads
public static SegmentedMetricItem DisplayValue(SegmentedMetricItem segmentedMetricItem, object? displayValue, string? format = null) #

Sets optional display text used instead of a derived item value.

Parameters

segmentedMetricItem ChartForgeX.VisualBlocks.SegmentedMetricItem required
displayValue object? required
format string? = null optional
public static SegmentedMetricItem DisplayValue(SegmentedMetricItem segmentedMetricItem, string value) #

Sets SegmentedMetricItem.DisplayValue: Gets or sets optional display text used instead of a derived item value.

Parameters

segmentedMetricItem ChartForgeX.VisualBlocks.SegmentedMetricItem required
The instance.
value string required
The value.

Returns

SegmentedMetricItem The same instance.

Examples

// C# initializer or property                // C# fluent
segmentedMetricItem.DisplayValue = value;    segmentedMetricItem.DisplayValue(value);
public static SegmentedMetricItem Label(SegmentedMetricItem segmentedMetricItem, string value) #

Sets SegmentedMetricItem.Label: Gets or sets the item label.

Parameters

segmentedMetricItem ChartForgeX.VisualBlocks.SegmentedMetricItem required
The instance.
value string required
The value.

Returns

SegmentedMetricItem The same instance.

Examples

// C# initializer or property         // C# fluent
segmentedMetricItem.Label = value;    segmentedMetricItem.Label(value);
public static SegmentedMetricItem Maximum(SegmentedMetricItem segmentedMetricItem, double value) #

Sets SegmentedMetricItem.Maximum: Gets or sets the maximum for progress-style items.

Parameters

segmentedMetricItem ChartForgeX.VisualBlocks.SegmentedMetricItem required
The instance.
value double required
The value.

Returns

SegmentedMetricItem The same instance.

Examples

// C# initializer or property           // C# fluent
segmentedMetricItem.Maximum = value;    segmentedMetricItem.Maximum(value);
public static SegmentedMetricItem Pattern(SegmentedMetricItem segmentedMetricItem, ChartFillPattern value) #

Sets SegmentedMetricItem.Pattern: Gets or sets an optional fill pattern hint.

Parameters

segmentedMetricItem ChartForgeX.VisualBlocks.SegmentedMetricItem required
The instance.
value ChartForgeX.Core.ChartFillPattern required
The value.

Returns

SegmentedMetricItem The same instance.

Examples

// C# initializer or property           // C# fluent
segmentedMetricItem.Pattern = value;    segmentedMetricItem.Pattern(value);
public static SegmentedMetricItem Segments(SegmentedMetricItem segmentedMetricItem, int value) #

Sets SegmentedMetricItem.Segments: Gets or sets the fixed segment count for progress-style items.

Parameters

segmentedMetricItem ChartForgeX.VisualBlocks.SegmentedMetricItem required
The instance.
value int required
The value.

Returns

SegmentedMetricItem The same instance.

Examples

// C# initializer or property            // C# fluent
segmentedMetricItem.Segments = value;    segmentedMetricItem.Segments(value);
public static SegmentedMetricItem Symbol(SegmentedMetricItem segmentedMetricItem, string value) #

Sets SegmentedMetricItem.Symbol: Gets or sets compact symbol text shown in distribution rows.

Parameters

segmentedMetricItem ChartForgeX.VisualBlocks.SegmentedMetricItem required
The instance.
value string required
The value.

Returns

SegmentedMetricItem The same instance.

Examples

// C# initializer or property          // C# fluent
segmentedMetricItem.Symbol = value;    segmentedMetricItem.Symbol(value);
public static SegmentedMetricItem Tone(SegmentedMetricItem segmentedMetricItem, Tone value) #

Sets SegmentedMetricItem.Tone: Gets or sets the semantic item status.

Parameters

segmentedMetricItem ChartForgeX.VisualBlocks.SegmentedMetricItem required
The instance.
value ChartForgeX.Tone required
The value.

Returns

SegmentedMetricItem The same instance.

Examples

// C# initializer or property        // C# fluent
segmentedMetricItem.Tone = value;    segmentedMetricItem.Tone(value);
public static SegmentedMetricItem Value(SegmentedMetricItem segmentedMetricItem, double value) #

Sets SegmentedMetricItem.Value: Gets or sets the numeric item value.

Parameters

segmentedMetricItem ChartForgeX.VisualBlocks.SegmentedMetricItem required
The instance.
value double required
The value.

Returns

SegmentedMetricItem The same instance.

Examples

// C# initializer or property         // C# fluent
segmentedMetricItem.Value = value;    segmentedMetricItem.Value(value);