Show / Hide Table of Contents

Class DataColumnMappingCollection

A collection of DataColumnMappings that will be used when reading data from the source range.

Inheritance
object
List<DataColumnMapping>
DataColumnMappingCollection
Implements
IList<DataColumnMapping>
ICollection<DataColumnMapping>
IReadOnlyList<DataColumnMapping>
IReadOnlyCollection<DataColumnMapping>
IEnumerable<DataColumnMapping>
IList
ICollection
IEnumerable
Inherited Members
List<DataColumnMapping>.Add(DataColumnMapping)
List<DataColumnMapping>.AddRange(IEnumerable<DataColumnMapping>)
List<DataColumnMapping>.AsReadOnly()
List<DataColumnMapping>.BinarySearch(int, int, DataColumnMapping, IComparer<DataColumnMapping>)
List<DataColumnMapping>.BinarySearch(DataColumnMapping)
List<DataColumnMapping>.BinarySearch(DataColumnMapping, IComparer<DataColumnMapping>)
List<DataColumnMapping>.Clear()
List<DataColumnMapping>.Contains(DataColumnMapping)
List<DataColumnMapping>.ConvertAll<TOutput>(Converter<DataColumnMapping, TOutput>)
List<DataColumnMapping>.CopyTo(int, DataColumnMapping[], int, int)
List<DataColumnMapping>.CopyTo(DataColumnMapping[])
List<DataColumnMapping>.CopyTo(DataColumnMapping[], int)
List<DataColumnMapping>.EnsureCapacity(int)
List<DataColumnMapping>.Exists(Predicate<DataColumnMapping>)
List<DataColumnMapping>.Find(Predicate<DataColumnMapping>)
List<DataColumnMapping>.FindAll(Predicate<DataColumnMapping>)
List<DataColumnMapping>.FindIndex(int, int, Predicate<DataColumnMapping>)
List<DataColumnMapping>.FindIndex(int, Predicate<DataColumnMapping>)
List<DataColumnMapping>.FindIndex(Predicate<DataColumnMapping>)
List<DataColumnMapping>.FindLast(Predicate<DataColumnMapping>)
List<DataColumnMapping>.FindLastIndex(int, int, Predicate<DataColumnMapping>)
List<DataColumnMapping>.FindLastIndex(int, Predicate<DataColumnMapping>)
List<DataColumnMapping>.FindLastIndex(Predicate<DataColumnMapping>)
List<DataColumnMapping>.ForEach(Action<DataColumnMapping>)
List<DataColumnMapping>.GetEnumerator()
List<DataColumnMapping>.GetRange(int, int)
List<DataColumnMapping>.IndexOf(DataColumnMapping)
List<DataColumnMapping>.IndexOf(DataColumnMapping, int)
List<DataColumnMapping>.IndexOf(DataColumnMapping, int, int)
List<DataColumnMapping>.Insert(int, DataColumnMapping)
List<DataColumnMapping>.InsertRange(int, IEnumerable<DataColumnMapping>)
List<DataColumnMapping>.LastIndexOf(DataColumnMapping)
List<DataColumnMapping>.LastIndexOf(DataColumnMapping, int)
List<DataColumnMapping>.LastIndexOf(DataColumnMapping, int, int)
List<DataColumnMapping>.Remove(DataColumnMapping)
List<DataColumnMapping>.RemoveAll(Predicate<DataColumnMapping>)
List<DataColumnMapping>.RemoveAt(int)
List<DataColumnMapping>.RemoveRange(int, int)
List<DataColumnMapping>.Reverse()
List<DataColumnMapping>.Reverse(int, int)
List<DataColumnMapping>.Slice(int, int)
List<DataColumnMapping>.Sort()
List<DataColumnMapping>.Sort(IComparer<DataColumnMapping>)
List<DataColumnMapping>.Sort(Comparison<DataColumnMapping>)
List<DataColumnMapping>.Sort(int, int, IComparer<DataColumnMapping>)
List<DataColumnMapping>.ToArray()
List<DataColumnMapping>.TrimExcess()
List<DataColumnMapping>.TrueForAll(Predicate<DataColumnMapping>)
List<DataColumnMapping>.Capacity
List<DataColumnMapping>.Count
List<DataColumnMapping>.this[int]
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OfficeOpenXml.Export.ToDataTable
Assembly: EPPlus.dll
Syntax
public class DataColumnMappingCollection : List<DataColumnMapping>, IList<DataColumnMapping>, ICollection<DataColumnMapping>, IReadOnlyList<DataColumnMapping>, IReadOnlyCollection<DataColumnMapping>, IEnumerable<DataColumnMapping>, IList, ICollection, IEnumerable

Methods

Add(int, DataColumn)

Adds a DataColumnMapping

Declaration
public void Add(int zeroBasedIndexInRange, DataColumn dataColumn)
Parameters
Type Name Description
int zeroBasedIndexInRange

Zero based index of the column in the source range

DataColumn dataColumn

The destination DataColumn in the DataTable

Add(int, DataColumn, Func<object, object>)

Adds a DataColumnMapping

Declaration
public void Add(int zeroBasedIndexInRange, DataColumn dataColumn, Func<object, object> transformCellValueFunc)
Parameters
Type Name Description
int zeroBasedIndexInRange

Zero based index of the column in the source range

DataColumn dataColumn

The destination DataColumn in the DataTable

Func<object, object> transformCellValueFunc

A function that casts/transforms the value before it is written to the DataTable

See Also
TransformCellValue

Add(int, string)

Adds a DataColumnMapping

Declaration
public void Add(int zeroBasedIndexInRange, string columnName)
Parameters
Type Name Description
int zeroBasedIndexInRange

Zero based index of the column in the source range

string columnName

Name of the DataColumn in the DataTable

Add(int, string, bool)

Adds a DataColumnMapping

Declaration
public void Add(int zeroBasedIndexInRange, string columnName, bool allowNull)
Parameters
Type Name Description
int zeroBasedIndexInRange

Zero based index of the column in the source range

string columnName

Name of the DataColumn in the DataTable

bool allowNull

Indicates if values read from the source range can be null

Add(int, string, Func<object, object>)

Adds a DataColumnMapping

Declaration
public void Add(int zeroBasedIndexInRange, string columnName, Func<object, object> transformCellValueFunc)
Parameters
Type Name Description
int zeroBasedIndexInRange

Zero based index of the column in the source range

string columnName

Name of the DataColumn in the DataTable

Func<object, object> transformCellValueFunc

A function that casts/transforms the value before it is written to the DataTable

Add(int, string, Type)

Adds a DataColumnMapping

Declaration
public void Add(int zeroBasedIndexInRange, string columnName, Type columnDataType)
Parameters
Type Name Description
int zeroBasedIndexInRange

Zero based index of the column in the source range

string columnName

Name of the DataColumn in the DataTable

Type columnDataType

Type of the DataColumn

Add(int, string, Type, bool)

Adds a DataColumnMapping

Declaration
public void Add(int zeroBasedIndexInRange, string columnName, Type columnDataType, bool allowNull)
Parameters
Type Name Description
int zeroBasedIndexInRange

Zero based index of the column in the source range

string columnName

Name of the DataColumn in the DataTable

Type columnDataType

Type of the DataColumn

bool allowNull

Indicates if values read from the source range can be null

Add(int, string, Type, bool, Func<object, object>)

Adds a DataColumnMapping

Declaration
public void Add(int zeroBasedIndexInRange, string columnName, Type columnDataType, bool allowNull, Func<object, object> transformCellValueFunc)
Parameters
Type Name Description
int zeroBasedIndexInRange

Zero based index of the column in the source range

string columnName

Name of the DataColumn in the DataTable

Type columnDataType

Type of the DataColumn

bool allowNull

Indicates if values read from the source range can be null

Func<object, object> transformCellValueFunc

A function that casts/transforms the value before it is written to the DataTable

See Also
TransformCellValue

Implements

IList<T>
ICollection<T>
IReadOnlyList<T>
IReadOnlyCollection<T>
IEnumerable<T>
IList
ICollection
IEnumerable
In this article
Back to top Generated by DocFX