SegmentedMetricBlock
ChartForgeX.VisualBlocks
A generic segmented metric block for progress rows, part-to-whole strips, and distribution rows.
Inheritance
- FactualVisualBlock<SegmentedMetricBlock>
- SegmentedMetricBlock
Usage
Explore 82 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 44
- Extension method SegmentedMetricBlock.Accessibility
- Extension method SegmentedMetricBlock.Caption
- Extension method SegmentedMetricBlock.HeaderSymbol
- Extension method SegmentedMetricBlock.HostOwnsFrame
- Extension method SegmentedMetricBlock.Label
- Extension method SegmentedMetricBlock.Options
- Extension method SegmentedMetricBlock.Padding
- Extension method SegmentedMetricBlock.RasterScale
- Extension method SegmentedMetricBlock.ShowCard
- Extension method SegmentedMetricBlock.Size
- Extension method SegmentedMetricBlock.Style
- Extension method SegmentedMetricBlock.Subtitle
- Extension method SegmentedMetricBlock.SvgColorVariables
- Extension method SegmentedMetricBlock.Theme
- Extension method SegmentedMetricBlock.ThemeMode
- Extension method SegmentedMetricBlock.Title
- Extension method SegmentedMetricBlock.TransparentBackground
- Extension method SegmentedMetricBlock.Unit
- Extension method SegmentedMetricBlock.Value
- Method SegmentedMetricBlock.AddItem
- Method SegmentedMetricBlock.Create
- Method SegmentedMetricBlock.Metric
- Method SegmentedMetricBlock.Padding
- Method SegmentedMetricBlock.Size
- Method SegmentedMetricBlock.Theme
- Method SegmentedMetricBlockFluent.Accessibility
- Method SegmentedMetricBlockFluent.Caption
- Method SegmentedMetricBlockFluent.HeaderSymbol
- Method SegmentedMetricBlockFluent.HostOwnsFrame
- Method SegmentedMetricBlockFluent.Label
- Method SegmentedMetricBlockFluent.Options
- Method SegmentedMetricBlockFluent.Padding
- Method SegmentedMetricBlockFluent.RasterScale
- Method SegmentedMetricBlockFluent.ShowCard
- Method SegmentedMetricBlockFluent.Size
- Method SegmentedMetricBlockFluent.Style
- Method SegmentedMetricBlockFluent.Subtitle
- Method SegmentedMetricBlockFluent.SvgColorVariables
- Method SegmentedMetricBlockFluent.Theme
- Method SegmentedMetricBlockFluent.ThemeMode
- Method SegmentedMetricBlockFluent.Title
- Method SegmentedMetricBlockFluent.TransparentBackground
- Method SegmentedMetricBlockFluent.Unit
- Method SegmentedMetricBlockFluent.Value
Accepted by parameters 38
- Extension method SegmentedMetricBlock.Accessibility
- Extension method SegmentedMetricBlock.Caption
- Extension method SegmentedMetricBlock.HeaderSymbol
- Extension method SegmentedMetricBlock.HostOwnsFrame
- Extension method SegmentedMetricBlock.Label
- Extension method SegmentedMetricBlock.Options
- Extension method SegmentedMetricBlock.Padding
- Extension method SegmentedMetricBlock.RasterScale
- Extension method SegmentedMetricBlock.ShowCard
- Extension method SegmentedMetricBlock.Size
- Extension method SegmentedMetricBlock.Style
- Extension method SegmentedMetricBlock.Subtitle
- Extension method SegmentedMetricBlock.SvgColorVariables
- Extension method SegmentedMetricBlock.Theme
- Extension method SegmentedMetricBlock.ThemeMode
- Extension method SegmentedMetricBlock.Title
- Extension method SegmentedMetricBlock.TransparentBackground
- Extension method SegmentedMetricBlock.Unit
- Extension method SegmentedMetricBlock.Value
- Method SegmentedMetricBlockFluent.Accessibility
- Method SegmentedMetricBlockFluent.Caption
- Method SegmentedMetricBlockFluent.HeaderSymbol
- Method SegmentedMetricBlockFluent.HostOwnsFrame
- Method SegmentedMetricBlockFluent.Label
- Method SegmentedMetricBlockFluent.Options
- Method SegmentedMetricBlockFluent.Padding
- Method SegmentedMetricBlockFluent.RasterScale
- Method SegmentedMetricBlockFluent.ShowCard
- Method SegmentedMetricBlockFluent.Size
- Method SegmentedMetricBlockFluent.Style
- Method SegmentedMetricBlockFluent.Subtitle
- Method SegmentedMetricBlockFluent.SvgColorVariables
- Method SegmentedMetricBlockFluent.Theme
- Method SegmentedMetricBlockFluent.ThemeMode
- Method SegmentedMetricBlockFluent.Title
- Method SegmentedMetricBlockFluent.TransparentBackground
- Method SegmentedMetricBlockFluent.Unit
- Method SegmentedMetricBlockFluent.Value
Constructors
public SegmentedMetricBlock() #Methods
public SegmentedMetricBlock AddItem(string label, double value, double maximum = 100, int segments = 40, ChartColor? color = null, Tone tone = default, ChartFillPattern pattern = None, string? delta = null, string? symbol = null, object? displayValue = null, string? displayFormat = null) #Adds a generic segmented metric item.
Parameters
- label string
- value double
- maximum double = 100
- segments int = 40
- color ChartForgeX.Primitives.ChartColor? = null
- tone ChartForgeX.Tone = default
- pattern ChartForgeX.Core.ChartFillPattern = None
- delta string? = null
- symbol string? = null
- displayValue object? = null
- displayFormat string? = null
Returns
SegmentedMetricBlockpublic SegmentedMetricBlock AddItem(SegmentedMetricItem item) #Adds a preconfigured segmented metric item.
Parameters
- item ChartForgeX.VisualBlocks.SegmentedMetricItem
Returns
SegmentedMetricBlockpublic SegmentedMetricBlock AddItem(string label, double value, Action<SegmentedMetricItem> configure) #Adds an independent segmented metric item after successful configuration.
Parameters
- label string
- value double
- configure System.Action<ChartForgeX.VisualBlocks.SegmentedMetricItem>
Returns
SegmentedMetricBlockpublic static SegmentedMetricBlock Create(SegmentedMetricStyle style = ProgressRows) #Creates a new segmented metric block.
Parameters
- style ChartForgeX.VisualBlocks.SegmentedMetricStyle = ProgressRows
Returns
SegmentedMetricBlockpublic SegmentedMetricBlock Metric(string label, object? value, string? unit = null, string? caption = null, string? format = null) #Sets the card metric label and value.
Parameters
- label string
- value object?
- unit string? = null
- caption string? = null
- format string? = null
Returns
SegmentedMetricBlockInherited Methods
public SegmentedMetricBlock Padding(double padding) #Parameters
- padding double
Returns
SegmentedMetricBlockpublic SegmentedMetricBlock Padding(double left, double top, double right, double bottom) #Parameters
- left double
- top double
- right double
- bottom double
Returns
SegmentedMetricBlockpublic override RgbaImage RenderRgba() #Returns
RgbaImagepublic override string RenderSvg(string idScope) #Parameters
- idScope string
Returns
stringpublic SegmentedMetricBlock Size(int width, int height) #Parameters
- width int
- height int
Returns
SegmentedMetricBlockpublic SegmentedMetricBlock Theme(Action<VisualThemeBuilder> configure) #Parameters
- configure Action<VisualThemeBuilder>
Returns
SegmentedMetricBlockProperties
public SegmentedMetricStyle Style { get; set; } #Gets or sets the visual treatment used for the items.
public IReadOnlyList<SegmentedMetricItem> Items { get; } #Gets metric items.
public string Unit { get; set; } #Gets the unit suffix rendered beside item values for composition-style blocks.
public string Caption { get; set; } #Gets optional caption text rendered beside the metric.
public string HeaderSymbol { get; set; } #Gets optional compact header symbol rendered in a badge.
Inherited Properties
public string Title { get; set; } #public string Subtitle { get; set; } #public VisualBlockOptions Options { get; } #FluentInlinepublic virtual string AccessibleName { get; } #Extension Methods
public static SegmentedMetricBlock Accessibility(SegmentedMetricBlock segmentedMetricBlock, Action<VisualAccessibility> configure) #Configures VisualBlockOptions.Accessibility in place.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- configure System.Action<ChartForgeX.Accessibility.VisualAccessibility>
- Configures the value.
public static SegmentedMetricBlock Caption(SegmentedMetricBlock segmentedMetricBlock, string value) #Sets SegmentedMetricBlock.Caption: Gets optional caption text rendered beside the metric.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.VisualBlocks.SegmentedMetricBlock { Caption = value }; segmentedMetricBlock.Caption(value);public static SegmentedMetricBlock HeaderSymbol(SegmentedMetricBlock segmentedMetricBlock, string value) #Sets SegmentedMetricBlock.HeaderSymbol: Gets optional compact header symbol rendered in a badge.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.VisualBlocks.SegmentedMetricBlock { HeaderSymbol = value }; segmentedMetricBlock.HeaderSymbol(value);public static SegmentedMetricBlock HostOwnsFrame(SegmentedMetricBlock segmentedMetricBlock, bool value = true) #Sets VisualBlockOptions.HostOwnsFrame.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.SegmentedMetricBlock>)segmentedMetricBlock).Options.HostOwnsFrame = value; segmentedMetricBlock.HostOwnsFrame(value);public static SegmentedMetricBlock Label(SegmentedMetricBlock segmentedMetricBlock, string value) #Sets SegmentedMetricBlock.Label: Gets the metric label.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.VisualBlocks.SegmentedMetricBlock { Label = value }; segmentedMetricBlock.Label(value);public static SegmentedMetricBlock Options(SegmentedMetricBlock segmentedMetricBlock, Action<VisualBlockOptions> configure) #Configures VisualBlock<SegmentedMetricBlock>.Options in place.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- configure System.Action<ChartForgeX.VisualBlocks.VisualBlockOptions>
- Configures the value.
public static SegmentedMetricBlock Padding(SegmentedMetricBlock segmentedMetricBlock, ChartPadding value) #Sets VisualBlockOptions.Padding.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value ChartForgeX.Primitives.ChartPadding
- The value.
Examples
// C# initializer or property // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.SegmentedMetricBlock>)segmentedMetricBlock).Options.Padding = value; segmentedMetricBlock.Padding(value);public static SegmentedMetricBlock RasterScale(SegmentedMetricBlock segmentedMetricBlock, int value) #Sets VisualBlockOptions.RasterScale.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.SegmentedMetricBlock>)segmentedMetricBlock).Options.RasterScale = value; segmentedMetricBlock.RasterScale(value);public static SegmentedMetricBlock ShowCard(SegmentedMetricBlock segmentedMetricBlock, bool value = true) #Sets VisualBlockOptions.ShowCard.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.SegmentedMetricBlock>)segmentedMetricBlock).Options.ShowCard = value; segmentedMetricBlock.ShowCard(value);public static SegmentedMetricBlock Size(SegmentedMetricBlock segmentedMetricBlock, ChartSize value) #Sets VisualBlockOptions.Size.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value ChartForgeX.Primitives.ChartSize
- The value.
Examples
// C# initializer or property // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.SegmentedMetricBlock>)segmentedMetricBlock).Options.Size = value; segmentedMetricBlock.Size(value);public static SegmentedMetricBlock Style(SegmentedMetricBlock segmentedMetricBlock, SegmentedMetricStyle value) #Sets SegmentedMetricBlock.Style: Gets or sets the visual treatment used for the items.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value ChartForgeX.VisualBlocks.SegmentedMetricStyle
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.VisualBlocks.SegmentedMetricBlock { Style = value }; segmentedMetricBlock.Style(value);public static SegmentedMetricBlock Subtitle(SegmentedMetricBlock segmentedMetricBlock, string value) #Sets VisualBlock<SegmentedMetricBlock>.Subtitle.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.VisualBlocks.SegmentedMetricBlock { Subtitle = value }; segmentedMetricBlock.Subtitle(value);public static SegmentedMetricBlock SvgColorVariables(SegmentedMetricBlock segmentedMetricBlock, SvgColorVariables? value) #Sets VisualBlockOptions.SvgColorVariables.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value ChartForgeX.Themes.SvgColorVariables?
- The value.
Examples
// C# initializer or property // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.SegmentedMetricBlock>)segmentedMetricBlock).Options.SvgColorVariables = value; segmentedMetricBlock.SvgColorVariables(value);public static SegmentedMetricBlock Theme(SegmentedMetricBlock segmentedMetricBlock, VisualTheme value) #Sets VisualBlockOptions.Theme.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value ChartForgeX.Themes.VisualTheme
- The value.
Examples
// C# initializer or property // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.SegmentedMetricBlock>)segmentedMetricBlock).Options.Theme = value; segmentedMetricBlock.Theme(value);public static SegmentedMetricBlock ThemeMode(SegmentedMetricBlock segmentedMetricBlock, ThemeMode value) #Sets VisualBlockOptions.ThemeMode.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value ChartForgeX.ThemeMode
- The value.
Examples
// C# initializer or property // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.SegmentedMetricBlock>)segmentedMetricBlock).Options.ThemeMode = value; segmentedMetricBlock.ThemeMode(value);public static SegmentedMetricBlock Title(SegmentedMetricBlock segmentedMetricBlock, string value) #Sets VisualBlock<SegmentedMetricBlock>.Title.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.VisualBlocks.SegmentedMetricBlock { Title = value }; segmentedMetricBlock.Title(value);public static SegmentedMetricBlock TransparentBackground(SegmentedMetricBlock segmentedMetricBlock, bool value = true) #Sets VisualBlockOptions.TransparentBackground.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.SegmentedMetricBlock>)segmentedMetricBlock).Options.TransparentBackground = value; segmentedMetricBlock.TransparentBackground(value);public static SegmentedMetricBlock Unit(SegmentedMetricBlock segmentedMetricBlock, string value) #Sets SegmentedMetricBlock.Unit: Gets the unit suffix rendered beside item values for composition-style blocks.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.VisualBlocks.SegmentedMetricBlock { Unit = value }; segmentedMetricBlock.Unit(value);public static SegmentedMetricBlock Value(SegmentedMetricBlock segmentedMetricBlock, string value) #Sets SegmentedMetricBlock.Value: Gets the metric value.
Parameters
- segmentedMetricBlock ChartForgeX.VisualBlocks.SegmentedMetricBlock
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.VisualBlocks.SegmentedMetricBlock { Value = value }; segmentedMetricBlock.Value(value);