ClassDataFieldMappingCollection
Represents a collection of DataFieldMapping objects.
Definition
Namespace:Telerik.Reporting
Assembly:Telerik.Reporting.dll
Syntax:
[TypeConverter(typeof(DataFieldMappingCollectionConverter))]
public class DataFieldMappingCollection : Collection<DataFieldMapping>
Inheritance: objectCollection<DataFieldMapping>DataFieldMappingCollection
Constructors
DataFieldMappingCollection()
Initializes a new instance of the DataFieldMappingCollection class.
Declaration
public DataFieldMappingCollection()
DataFieldMappingCollection(DataFieldMappingCollection)
Initializes a new instance of the DataFieldMappingCollection class.
Declaration
public DataFieldMappingCollection(DataFieldMappingCollection mappings)
Parameters
mappings
Specifies a range of mappings to add to the collection.
DataFieldMappingCollection(DataFieldMapping[])
Initializes a new instance of the DataFieldMappingCollection class.
Declaration
public DataFieldMappingCollection(DataFieldMapping[] mappings)
Parameters
mappings
Specifies a range of mappings to add to the collection.
Properties
this[string]
Gets the mapping of the specified field from the collection.
Declaration
public DataFieldMapping this[string name] { get; }
Parameters
name
string
Specifies the name of a field from the collection.
Property Value
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
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
public void AddRange(DataFieldMappingCollection mappings)
Parameters
mappings
Specifies a range of mappings to add to the collection.
AddRange(IEnumerable<DataFieldMapping>)
Adds a range of mappings to the collection.
Declaration
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
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
public DataFieldMapping[] ToArray()
Returns
Array of mappings contained in the collection.