# ChartSelectionMode

Controls selection when a reader activates a chart mark.

 Enum  

`ChartForgeX.Interactivity`

**Namespace**

`ChartForgeX.Interactivity`

**Assembly**

`ChartForgeX.Interactivity`

**Source**

[ChartInteractionOptions.cs:115](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/ChartInteractionOptions.cs#L115)

**Base**

`Enum`

**Implements**

 `IComparable` `ISpanFormattable` `IFormattable` `IConvertible` 

**Modifiers**

sealed

Controls selection when a reader activates a chart mark.

## Inheritance

- Enum
- ChartSelectionMode

## Usage

 Explore 6 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 4

- Property [ChartInteractionOptions.SelectionMode](/api/chartforgex-interactivity-chartinteractionoptions/#property-selectionmode)
- Field [ChartSelectionMode.Replace](/api/chartforgex-interactivity-chartselectionmode/#field-replace)
- Field [ChartSelectionMode.Single](/api/chartforgex-interactivity-chartselectionmode/#field-single)
- Field [ChartSelectionMode.Toggle](/api/chartforgex-interactivity-chartselectionmode/#field-toggle)

### Accepted by parameters 2

- Extension method [ChartInteractionOptions.SelectionMode](/api/chartforgex-interactivity-chartinteractionoptions/#extension-selectionmode-chartforgex-interactivity-chartinteractionoptions-chartforgex-interactivity-chartselectionmode) parameter `value`
- Method [ChartInteractionOptionsFluent.SelectionMode](/api/chartforgex-interactivity-chartinteractionoptionsfluent/#method-selectionmode-chartforgex-interactivity-chartinteractionoptions-chartforgex-interactivity-chartselectionmode) parameter `value`

 Filter members   

    Show inherited   

 

## Inherited Methods

 `public int CompareTo(object? target)` [#](#method-compareto-object) 

Inherited from Enum

Parameters

**target object? required**

Returns

 `int` 

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

Inherited from Enum

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from Enum

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

 `public TypeCode GetTypeCode()` [#](#method-gettypecode) 

Inherited from Enum

Returns

 `TypeCode` 

 `public bool HasFlag(Enum flag)` [#](#method-hasflag-enum) 

Inherited from Enum

Parameters

**flag Enum required**

Returns

 `bool` 

 ToString 4 overloads 

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

Inherited from Enum

Returns

 `string` 

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

Inherited from Enum

Parameters

**format string? required**

Returns

 `string` 

 `public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString() instead.")` 

Parameters

**provider IFormatProvider? required**

Returns

 `string` 

 `public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString(String) instead.")` 

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

 `string` 

## Values

 `public const ChartSelectionMode Toggle` [#](#field-toggle) 

[ChartInteractionOptions.cs:117](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/ChartInteractionOptions.cs#L117)

Toggles the activated mark without changing other selected marks.

Value: `0`

 `public const ChartSelectionMode Replace` [#](#field-replace) 

[ChartInteractionOptions.cs:119](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/ChartInteractionOptions.cs#L119)

Replaces the selection; Ctrl or Meta toggles and Shift extends it.

Value: `1`

 `public const ChartSelectionMode Single` [#](#field-single) 

[ChartInteractionOptions.cs:121](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/ChartInteractionOptions.cs#L121)

Keeps at most one activated mark selected.

Value: `2`

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