# CollectionColumnMapping

Configuration for mapping a collection of objects into dynamic columns.

Class 

`OfficeIMO.Data`

**Namespace**

`OfficeIMO.Data`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ObjectFlattener.cs:1075](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/ObjectFlattener.cs#L1075)

**Modifiers**

sealed

Configuration for mapping a collection of objects into dynamic columns.

## Inheritance

- object
- CollectionColumnMapping

## 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.

### Returned or exposed by 1

- Property [ObjectFlattenerOptions.CollectionMapColumns](/api/core/officeimo-data-objectflatteneroptions/#property-collectionmapcolumns)

Filter members 

Show inherited

## Constructors

`public CollectionColumnMapping()` [#](#constructor-ctor)

[ObjectFlattener.cs:1075](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/ObjectFlattener.cs#L1075)

## 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 string KeyProperty { get; set; }` [#](#property-keyproperty)

[ObjectFlattener.cs:1075](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/ObjectFlattener.cs#L1075)

Property name on the item to use as the header suffix (key).

`public string ValueProperty { get; set; }` [#](#property-valueproperty)

[ObjectFlattener.cs:1077](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/ObjectFlattener.cs#L1077)

Property name on the item to use as the cell value.

`public string? HeaderPrefix { get; set; }` [#](#property-headerprefix)

[ObjectFlattener.cs:1083](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/ObjectFlattener.cs#L1083)

Optional replacement for the collection path in displayed column headers. Null keeps the collection path; an empty string displays only the item key. Column selection, formatting and flattened dictionary keys keep their original paths.

<!-- PowerForge markdown artifact sha256:26BBB3051F61078FA76A60CA863736AF5998ACE2031AC0ADC71F710D0C1E958C -->
