Class
DataFieldMappingCollection

Represents a collection of DataFieldMapping objects.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(DataFieldMappingCollectionConverter))]
public class DataFieldMappingCollection : Collection<DataFieldMapping>

Inheritance: objectCollection<DataFieldMapping>DataFieldMappingCollection

Constructors

DataFieldMappingCollection()

Initializes a new instance of the DataFieldMappingCollection class.

Declaration

cs-api-definition
public DataFieldMappingCollection()

DataFieldMappingCollection(DataFieldMappingCollection)

Initializes a new instance of the DataFieldMappingCollection class.

Declaration

cs-api-definition
public DataFieldMappingCollection(DataFieldMappingCollection mappings)

Parameters

mappings

DataFieldMappingCollection

Specifies a range of mappings to add to the collection.

DataFieldMappingCollection(DataFieldMapping[])

Initializes a new instance of the DataFieldMappingCollection class.

Declaration

cs-api-definition
public DataFieldMappingCollection(DataFieldMapping[] mappings)

Parameters

mappings

DataFieldMapping[]

Specifies a range of mappings to add to the collection.

Properties

this[string]

Gets the mapping of the specified field from the collection.

Declaration

cs-api-definition
public DataFieldMapping this[string name] { get; }

Parameters

name

string

Specifies the name of a field from the collection.

Property Value

DataFieldMapping

The mapping of the specified field from the collection.

Methods

Add(string, string)

Adds a new mapping for the specified field to the collection.

Declaration

cs-api-definition
public void Add(string name, string alias)

Parameters

name

string

Specifies the name of the field for the new mapping.

alias

string

Specifies the alias of the field for the new mapping.

AddRange(DataFieldMappingCollection)

Adds a range of mappings to the collection.

Declaration

cs-api-definition
public void AddRange(DataFieldMappingCollection mappings)

Parameters

mappings

DataFieldMappingCollection

Specifies a range of mappings to add to the collection.

AddRange(IEnumerable<DataFieldMapping>)

Adds a range of mappings to the collection.

Declaration

cs-api-definition
public void AddRange(IEnumerable<DataFieldMapping> mappings)

Parameters

mappings

IEnumerable<DataFieldMapping>

Specifies a range of mappings to add to the collection.

Contains(string)

Determines if the collection contains a mapping for the specified field.

Declaration

cs-api-definition
public bool Contains(string name)

Parameters

name

string

Specifies the name of a field from the collection.

Returns

bool

True if a mapping for the specified field exists, False otherwise.

ToArray()

Converts the collection to an array of mappings.

Declaration

cs-api-definition
public DataFieldMapping[] ToArray()

Returns

DataFieldMapping[]

Array of mappings contained in the collection.