# ChartColorBand

An immutable discrete numeric band. Its upper bound is exclusive; null ends the final unbounded band.

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

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

**Modifiers**

sealed

An immutable discrete numeric band. Its upper bound is exclusive; null ends the final unbounded band.

## Inheritance

- object
- ChartColorBand

## Usage

 Explore 2 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 1

- Property [ChartColorScale.Bands](/api/chartforgex-core-chartcolorscale/#property-bands)

### Accepted by parameters 1

- Method [ChartColorScale.Discrete](/api/chartforgex-core-chartcolorscale/#method-discrete-collections-generic-ienumerable-chartforgex-core-chartcolorband) parameter `bands`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartColorBand(double? upperBound, ChartColor color, string? label = null)` [#](#constructor-ctor-nullable-system-double-chartforgex-primitives-chartcolor-string) 

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

Creates a band ending before upperBound, or an unbounded final band.

Parameters

**upperBound double? required**

A finite exclusive upper bound, or null for the final band.

**color ChartForgeX.Primitives.ChartColor required**

The color for every value in the band.

**label string? = null optional**

An optional band name shown with its interval in legends.

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from object

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

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

Inherited from object

Returns

 `string?` 

## Properties

 `public double? UpperBound { get; }` [#](#property-upperbound) 

[ChartColorBand.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartColorBand.cs#L22)

Gets the exclusive upper bound, or null for the final unbounded band.

 `public ChartColor Color { get; }` [#](#property-color) 

[ChartColorBand.cs:25](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartColorBand.cs#L25)

Gets the color assigned to the band.

 `public string? Label { get; }` [#](#property-label) 

[ChartColorBand.cs:28](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartColorBand.cs#L28)

Gets the optional normalized band name.

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