Skip to content
ChartForgeX
Class

ChartPlotRegion

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed

A passive, solid background rectangle bounded by Cartesian data coordinates.

Inheritance

  • object
  • ChartPlotRegion

Remarks

Null bounds use the final axis domain. Regions never expand that domain. Reversal changes their painted position without changing authored bounds. Time coordinates use OLE Automation dates. Bounds follow physical X and Y: horizontal charts use value coordinates for X and linear category slots for Y.

Usage

Explore 8 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 5

Constructors

ChartPlotRegion 2 overloads
public ChartPlotRegion(int paletteIndex, double? xMinimum = null, double? xMaximum = null, double? yMinimum = null, double? yMaximum = null, string label = "", double opacity = 0.14, ChartAxisSide yAxis = Primary, bool showLabel = true) #

Creates a region whose color follows the active render theme's categorical palette.

Parameters

paletteIndex int required
The zero-based palette index. Larger indices wrap to the active palette length.
xMinimum double? = null optional
The inclusive lower X bound, or null for the domain minimum.
xMaximum double? = null optional
The inclusive upper X bound, or null for the domain maximum.
yMinimum double? = null optional
The inclusive lower Y bound, or null for the domain minimum.
yMaximum double? = null optional
The inclusive upper Y bound, or null for the domain maximum.
label string = "" optional
An optional interior caption retained in semantic metadata.
opacity double = 0.14 optional
The fill opacity from zero through one.
yAxis ChartForgeX.Core.ChartAxisSide = Primary optional
The Y axis that owns the region's coordinates.
showLabel bool = true optional
Whether to paint the caption when it fits within the visible region.
public ChartPlotRegion(ChartColor color, double? xMinimum = null, double? xMaximum = null, double? yMinimum = null, double? yMaximum = null, string label = "", double opacity = 0.14, ChartAxisSide yAxis = Primary, bool showLabel = true) #

Creates a region. A missing bound extends to that end of the selected axis domain.

Parameters

color ChartForgeX.Primitives.ChartColor required
The solid background color.
xMinimum double? = null optional
The inclusive lower X bound, or null for the domain minimum.
xMaximum double? = null optional
The inclusive upper X bound, or null for the domain maximum.
yMinimum double? = null optional
The inclusive lower Y bound, or null for the domain minimum.
yMaximum double? = null optional
The inclusive upper Y bound, or null for the domain maximum.
label string = "" optional
An optional interior caption retained in semantic metadata.
opacity double = 0.14 optional
The fill opacity from zero through one.
yAxis ChartForgeX.Core.ChartAxisSide = Primary optional
The Y axis that owns the region's coordinates.
showLabel bool = true optional
Whether to paint the caption when it fits within the visible region.

Methods

public ChartPlotRegion WithBorder(ChartStrokeStyle? border) #

Returns a detached definition with the supplied border; null removes the border.

Parameters

border ChartForgeX.Core.ChartStrokeStyle? required
Immutable color, opacity, width and dash overrides.

Returns

ChartPlotRegion A new region preserving every authored bound, fill and caption.
public ChartPlotRegion WithLabelPosition(ChartPlotRegionLabelPosition position) #

Returns a detached definition with one deliberate caption anchor.

Parameters

position ChartForgeX.Core.ChartPlotRegionLabelPosition required
The screen-relative anchor inside the clipped region. Explicit anchors shorten or omit rather than relocate.

Returns

ChartPlotRegion A new region preserving every authored bound, fill and border.

Properties

public ChartColor? Color { get; } #

Gets the authored literal fill color, or null when ChartPlotRegion.PaletteIndex selects a theme color.

public int? PaletteIndex { get; } #

Gets the categorical palette index resolved at preparation, or null for a literal color.

public double? XMinimum { get; } #

Gets the authored lower X bound, or null for the domain minimum.

public double? XMaximum { get; } #

Gets the authored upper X bound, or null for the domain maximum.

public double? YMinimum { get; } #

Gets the authored lower Y bound, or null for the domain minimum.

public double? YMaximum { get; } #

Gets the authored upper Y bound, or null for the domain maximum.

public string Label { get; } #

Gets the original caption, including when hidden, shortened or outside the domain.

public double Opacity { get; } #

Gets the fill opacity.

public ChartAxisSide YAxis { get; } #

Gets the Y axis that owns these data coordinates.

public bool ShowLabel { get; } #

Gets whether to paint an interior caption when space permits.

public ChartStrokeStyle? Border { get; } #

Gets an immutable border override, or null for no border. A missing color or width uses the theme axis stroke.

public ChartPlotRegionLabelPosition LabelPosition { get; } #

Gets the screen-relative caption anchor. Auto retains center-first collision-aware placement.