# ChartRangeBand

Represents one x position with lower and upper band values.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartRangeBand.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartRangeBand.cs#L36)

**Base**

`ValueType`

**Modifiers**

sealed

Represents one x position with lower and upper band values.

## Inheritance

- ValueType
- ChartRangeBand

## Usage

 Explore 12 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

- Method [ChartRangeBand.WithMarkOptions](/api/chartforgex-core-chartrangeband/#method-withmarkoptions-chartforgex-core-chartmarkoptions)
- Method [ChartRangeBands.FromXY](/api/chartforgex-core-chartrangebands/#method-fromxy-collections-generic-ienumerable-system-double-collections-generic-ienumerable-system-nullable-system-double-collections-generic-ienumerable-system-nullable-system-double-chartforgex-core-chartmissingdatapolicy-threading-cancellationtoken)
- Property [ChartSeries.Ranges](/api/chartforgex-core-chartseries/#property-ranges)

### Accepted by parameters 9

- Method [Chart.AddRangeArea](/api/chartforgex-core-chart/#method-addrangearea-string-collections-generic-ienumerable-chartforgex-core-chartrangeband-nullable-chartforgex-primitives-chartcolor-boolean) parameter `ranges`
- Method [Chart.AddRangeArea``1](/api/chartforgex-core-chart/#method-addrangearea-string-collections-generic-ienumerable-func-chartforgex-core-chartrangeband-nullable-chartforgex-primitives-chartcolor-boolean) parameter `observation`
- Method [Chart.AddRangeBand](/api/chartforgex-core-chart/#method-addrangeband-string-collections-generic-ienumerable-chartforgex-core-chartrangeband-nullable-chartforgex-primitives-chartcolor) parameter `bands`
- Method [Chart.AddRangeBand``1](/api/chartforgex-core-chart/#method-addrangeband-string-collections-generic-ienumerable-func-chartforgex-core-chartrangeband-nullable-chartforgex-primitives-chartcolor) parameter `observation`
- Method [ChartSeries.ApplyRangeChanges](/api/chartforgex-core-chartseries/#method-applyrangechanges-collections-generic-ienumerable-chartforgex-core-chartobservationchange-chartforgex-core-chartrangeband-nullable-system-int32-int32-threading-cancellationtoken) parameter `changes`
- Method [ChartSeries.CreateRangeArea](/api/chartforgex-core-chartseries/#method-createrangearea-chartforgex-core-chartseriesid-string-collections-generic-ienumerable-chartforgex-core-chartrangeband-nullable-chartforgex-primitives-chartcolor-boolean) parameter `values`
- Method [ChartSeries.CreateRangeBand](/api/chartforgex-core-chartseries/#method-createrangeband-chartforgex-core-chartseriesid-string-collections-generic-ienumerable-chartforgex-core-chartrangeband-nullable-chartforgex-primitives-chartcolor) parameter `values`
- Method [ChartSeries.ReplaceRanges](/api/chartforgex-core-chartseries/#method-replaceranges-collections-generic-ienumerable-chartforgex-core-chartrangeband) parameter `values`
- Method [ChartSeries.UpdateRange](/api/chartforgex-core-chartseries/#method-updaterange-int32-chartforgex-core-chartrangeband) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 ChartRangeBand 2 overloads 

 `public ChartRangeBand(double x, double lower, double upper, bool breakBefore = false)` [#](#constructor-ctor-double-double-double-boolean) 

[ChartRangeBand.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartRangeBand.cs#L36)

Initializes a new instance of the [ChartRangeBand](/api/chartforgex-core-chartrangeband/) struct.

Parameters

**x double required**

The horizontal coordinate.

**lower double required**

The lower band value.

**upper double required**

The upper band value.

**breakBefore bool = false optional**

Whether both boundaries begin a disconnected segment.

 `public ChartRangeBand(DateTime x, double lower, double upper, bool breakBefore = false)` [#](#constructor-ctor-datetime-double-double-boolean) 

[ChartRangeBand.cs:53](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartRangeBand.cs#L53)

Initializes a new instance of the [ChartRangeBand](/api/chartforgex-core-chartrangeband/) struct from a date/time x value.

Parameters

**x System.DateTime required**

The date/time x value.

**lower double required**

The lower band value.

**upper double required**

The upper band value.

**breakBefore bool = false optional**

Whether both boundaries begin a disconnected segment.

## Methods

 `public ChartRangeBand WithMarkOptions(ChartMarkOptions? options)` [#](#method-withmarkoptions-chartforgex-core-chartmarkoptions) 

[ChartRangeBand.cs:62](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartRangeBand.cs#L62)

Returns a copy with replacement mark metadata, retaining all authored values.

Parameters

**options ChartForgeX.Core.ChartMarkOptions? required**

Immutable metadata, or null to clear it.

Returns

 `ChartRangeBand` A new observation. The current observation is unchanged. 

## Inherited Methods

 `public override bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from ValueType

Parameters

**obj object? required**

Returns

 `bool` 

 `public override int GetHashCode()` [#](#method-gethashcode) 

Inherited from ValueType

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public override string? ToString()` [#](#method-tostring) 

Inherited from ValueType

Returns

 `string?` 

## Properties

 `public bool BreakBefore { get; }` [#](#property-breakbefore) 

[ChartRangeBand.cs:26](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartRangeBand.cs#L26)

Gets whether both boundaries begin a disconnected segment at this observation.

 `public ChartMarkOptions? MarkOptions { get; }` [#](#property-markoptions) 

[ChartRangeBand.cs:57](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartRangeBand.cs#L57)

Gets optional immutable navigation, accessibility and host metadata.

## Fields

 `public readonly double X` [#](#field-x) 

[ChartRangeBand.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartRangeBand.cs#L13)

Gets the horizontal coordinate.

 `public readonly double Lower` [#](#field-lower) 

[ChartRangeBand.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartRangeBand.cs#L18)

Gets the lower band value.

 `public readonly double Upper` [#](#field-upper) 

[ChartRangeBand.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartRangeBand.cs#L23)

Gets the upper band value.

<!-- PowerForge markdown artifact sha256:EF3D0908397CFBFE3482B94397A20D15E7686C4CA3052C2106037D9402E3AFBA -->
