New to Telerik ReportingStart a free 30-day trial

Represents a collection of DataFieldMapping objects.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
[TypeConverter(typeof(DataFieldMappingCollectionConverter))]
public class DataFieldMappingCollection : Collection<DataFieldMapping>

Inheritance: objectCollection<DataFieldMapping>DataFieldMappingCollection

Constructors

Initializes a new instance of the DataFieldMappingCollection class.

C#
public DataFieldMappingCollection()

Initializes a new instance of the DataFieldMappingCollection class.

C#
public DataFieldMappingCollection(DataFieldMapping[] mappings)
Parameters:mappingsDataFieldMapping[]

Specifies a range of mappings to add to the collection.

Initializes a new instance of the DataFieldMappingCollection class.

C#
public DataFieldMappingCollection(DataFieldMappingCollection mappings)
Parameters:mappingsDataFieldMappingCollection

Specifies a range of mappings to add to the collection.

Properties

Gets the mapping of the specified field from the collection.

C#
public DataFieldMapping this[string name] { get; }
Parameters:namestring

Specifies the name of a field from the collection.

Property Value:

The mapping of the specified field from the collection.

Methods

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

C#
public void Add(string name, string alias)
Parameters:namestring

Specifies the name of the field for the new mapping.

aliasstring

Specifies the alias of the field for the new mapping.

Adds a range of mappings to the collection.

C#
public void AddRange(DataFieldMappingCollection mappings)
Parameters:mappingsDataFieldMappingCollection

Specifies a range of mappings to add to the collection.

Adds a range of mappings to the collection.

C#
public void AddRange(IEnumerable<DataFieldMapping> mappings)
Parameters:mappingsIEnumerable<DataFieldMapping>

Specifies a range of mappings to add to the collection.

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

C#
public bool Contains(string name)
Parameters:namestring

Specifies the name of a field from the collection.

Returns:

bool

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

Converts the collection to an array of mappings.

C#
public DataFieldMapping[] ToArray()
Returns:

DataFieldMapping[]

Array of mappings contained in the collection.