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
Initializes a new instance of the DataFieldMappingCollection class.
public DataFieldMappingCollection()
Initializes a new instance of the DataFieldMappingCollection class.
public DataFieldMappingCollection(DataFieldMapping[] mappings)
Specifies a range of mappings to add to the collection.
Initializes a new instance of the DataFieldMappingCollection class.
public DataFieldMappingCollection(DataFieldMappingCollection mappings)
Specifies a range of mappings to add to the collection.
Properties
Gets the mapping of the specified field from the collection.
public DataFieldMapping this[string name] { get; }
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.
public void Add(string name, string alias)
Specifies the name of the field for the new mapping.
aliasstringSpecifies the alias of the field for the new mapping.
Adds a range of mappings to the collection.
public void AddRange(DataFieldMappingCollection mappings)
Specifies a range of mappings to add to the collection.
Adds a range of mappings to the collection.
public void AddRange(IEnumerable<DataFieldMapping> mappings)
Specifies a range of mappings to add to the collection.
Contains(string)
bool
Determines if the collection contains a mapping for the specified field.
public bool Contains(string name)
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.
public DataFieldMapping[] ToArray()
Array of mappings contained in the collection.