# ChartSunburstLabelContext

Provides authored hierarchy facts and the resolved size to a Sunburst label formatter.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartSunburstLabelContext.cs:7](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartSunburstLabelContext.cs#L7)

**Base**

`ValueType`

**Modifiers**

sealed

Provides authored hierarchy facts and the resolved size to a Sunburst label formatter.

## Inheritance

- ValueType
- ChartSunburstLabelContext

## Usage

 Explore 3 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 [ChartSunburstOptions.SecondaryLabelFormatter](/api/chartforgex-core-chartsunburstoptions/#property-secondarylabelformatter)

### Accepted by parameters 2

- Extension method [ChartSunburstOptions.SecondaryLabelBy](/api/chartforgex-core-chartsunburstoptions/#extension-secondarylabelby-chartforgex-core-chartsunburstoptions-func-chartforgex-core-chartsunburstlabelcontext-system-string) parameter `value`
- Method [ChartSunburstOptionsFluent.SecondaryLabelBy](/api/chartforgex-core-chartsunburstoptionsfluent/#method-secondarylabelby-chartforgex-core-chartsunburstoptions-func-chartforgex-core-chartsunburstlabelcontext-system-string) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartSunburstLabelContext(ChartHierarchyItem item, double value, string formattedValue)` [#](#constructor-ctor-chartforgex-core-charthierarchyitem-double-string) 

[ChartSunburstLabelContext.cs:7](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartSunburstLabelContext.cs#L7)

Initializes a label context with the copied hierarchy item, resolved size and chart-formatted size.

Parameters

**item ChartForgeX.Core.ChartHierarchyItem required**

**value double required**

**formattedValue string required**

## 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 ChartHierarchyItem Item { get; }` [#](#property-item) 

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

Gets the authored item. Its nullable [ChartHierarchyItem.Value](/api/chartforgex-core-charthierarchyitem/) remains the supplied size.

 `public double Value { get; }` [#](#property-value) 

[ChartSunburstLabelContext.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartSunburstLabelContext.cs#L16)

Gets the size resolved under [ChartSunburstOptions.ParentValuePolicy](/api/chartforgex-core-chartsunburstoptions/).

 `public string FormattedValue { get; }` [#](#property-formattedvalue) 

[ChartSunburstLabelContext.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartSunburstLabelContext.cs#L19)

Gets the resolved size formatted with the chart's shared value formatter.

<!-- PowerForge markdown artifact sha256:25AD1195DDC9322929D54D3E3093A9DBABDF2ED02A7DD7D88CA8D94B98EA1FD7 -->
