# ChartWordCloudItem

Represents one weighted term in a word cloud.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartWordCloudItem.cs:32](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWordCloudItem.cs#L32)

**Base**

`ValueType`

**Modifiers**

sealed

Represents one weighted term in a word cloud.

## Inheritance

- ValueType
- ChartWordCloudItem

## Usage

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

- Method [Chart.AddWordCloud](/api/chartforgex-core-chart/#method-addwordcloud-string-collections-generic-ienumerable-chartforgex-core-chartwordclouditem-nullable-chartforgex-primitives-chartcolor) parameter `items`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartWordCloudItem(string text, double weight, ChartColor? color = null)` [#](#constructor-ctor-string-double-nullable-chartforgex-primitives-chartcolor) 

[ChartWordCloudItem.cs:32](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWordCloudItem.cs#L32)

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

Parameters

**text string required**

The term text.

**weight double required**

The term weight. Negative values are not allowed.

**color ChartForgeX.Primitives.ChartColor? = null optional**

An optional color for this term.

## 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?` 

## Fields

 `public readonly string Text` [#](#field-text) 

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

Gets the term text.

 `public readonly double Weight` [#](#field-weight) 

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

Gets the term weight.

 `public readonly ChartColor? Color` [#](#field-color) 

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

Gets the optional term color.

<!-- PowerForge markdown artifact sha256:963C9501D2E74E446C58C42A4884FFA0F52919C4C96A3EB87A3A323B276B0B7A -->
