ChartPlotRegion
ChartForgeX.Core
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.
Returned or exposed by 3
- Property Chart.PlotRegions
- Method ChartPlotRegion.WithBorder
- Method ChartPlotRegion.WithLabelPosition
Accepted by parameters 5
- Extension method Chart.PlotRegion
- Extension method Chart.PlotRegions
- Method Chart.AddPlotRegion
- Method ChartFluent.PlotRegion
- Method ChartFluent.PlotRegions
Constructors
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
- The zero-based palette index. Larger indices wrap to the active palette length.
- xMinimum double? = null
- The inclusive lower X bound, or null for the domain minimum.
- xMaximum double? = null
- The inclusive upper X bound, or null for the domain maximum.
- yMinimum double? = null
- The inclusive lower Y bound, or null for the domain minimum.
- yMaximum double? = null
- The inclusive upper Y bound, or null for the domain maximum.
- label string = ""
- An optional interior caption retained in semantic metadata.
- opacity double = 0.14
- The fill opacity from zero through one.
- yAxis ChartForgeX.Core.ChartAxisSide = Primary
- The Y axis that owns the region's coordinates.
- showLabel bool = true
- 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
- The solid background color.
- xMinimum double? = null
- The inclusive lower X bound, or null for the domain minimum.
- xMaximum double? = null
- The inclusive upper X bound, or null for the domain maximum.
- yMinimum double? = null
- The inclusive lower Y bound, or null for the domain minimum.
- yMaximum double? = null
- The inclusive upper Y bound, or null for the domain maximum.
- label string = ""
- An optional interior caption retained in semantic metadata.
- opacity double = 0.14
- The fill opacity from zero through one.
- yAxis ChartForgeX.Core.ChartAxisSide = Primary
- The Y axis that owns the region's coordinates.
- showLabel bool = true
- 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?
- Immutable color, opacity, width and dash overrides.
public ChartPlotRegion WithLabelPosition(ChartPlotRegionLabelPosition position) #Returns a detached definition with one deliberate caption anchor.
Parameters
- position ChartForgeX.Core.ChartPlotRegionLabelPosition
- The screen-relative anchor inside the clipped region. Explicit anchors shorten or omit rather than relocate.
Inherited Methods
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 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.