Class DataFieldMappingCollection
Represents a collection of DataFieldMapping objects.
Inheritance
Namespace: Telerik.Reporting
Assembly: Telerik.Reporting.dll
Syntax
public class DataFieldMappingCollection : Collection<DataFieldMapping>, IList<DataFieldMapping>, ICollection<DataFieldMapping>, IList, ICollection, IReadOnlyList<DataFieldMapping>, IReadOnlyCollection<DataFieldMapping>, IEnumerable<DataFieldMapping>, IEnumerable
Remarks
Represents a collection of mappings for the fields of a data source and their corresponding short aliases used for data binding in expressions.
Constructors
DataFieldMappingCollection()
Initializes a new instance of the DataFieldMappingCollection class.
Declaration
public DataFieldMappingCollection()
DataFieldMappingCollection(DataFieldMapping[])
Initializes a new instance of the DataFieldMappingCollection class.
Declaration
public DataFieldMappingCollection(DataFieldMapping[] mappings)
Parameters
DataFieldMapping[]
mappings
Specifies a range of mappings to add to the collection. |
DataFieldMappingCollection(DataFieldMappingCollection)
Initializes a new instance of the DataFieldMappingCollection class.
Declaration
public DataFieldMappingCollection(DataFieldMappingCollection mappings)
Parameters
DataFieldMappingCollection
mappings
Specifies a range of mappings to add to the collection. |
Properties
Item[String]
Gets the mapping of the specified field from the collection.
Declaration
public DataFieldMapping this[string name] { get; }
Parameters
System.String
name
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
public void Add(string name, string alias)
Parameters
System.String
name
Specifies the name of the field for the new mapping. |
System.String
alias
Specifies the alias of the field for the new mapping. |
AddRange(IEnumerable<DataFieldMapping>)
Adds a range of mappings to the collection.
Declaration
public void AddRange(IEnumerable<DataFieldMapping> mappings)
Parameters
System.Collections.Generic.IEnumerable<DataFieldMapping>
mappings
Specifies a range of mappings to add to the collection. |
AddRange(DataFieldMappingCollection)
Adds a range of mappings to the collection.
Declaration
public void AddRange(DataFieldMappingCollection mappings)
Parameters
DataFieldMappingCollection
mappings
Specifies a range of mappings to add to the collection. |
Contains(String)
Determines if the collection contains a mapping for the specified field.
Declaration
public bool Contains(string name)
Parameters
System.String
name
Specifies the name of a field from the collection. |
Returns
System.Boolean
True if a mapping for the specified field exists, False otherwise. |
ToArray()
Converts the collection to an array of mappings.
Declaration
public DataFieldMapping[] ToArray()
Returns
DataFieldMapping[]
Array of mappings contained in the collection. |