[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.CustomPropertyDefinitionCollection.AddRange

AddRange Method

AddRange(IEnumerable<CustomPropertyDefinition>)

Adds a range of CustomPropertyDefinition objects to the collection.

Declaration
public void AddRange(IEnumerable<CustomPropertyDefinition> collection)
Parameters
Type Name Description
IEnumerable<CustomPropertyDefinition> collection

A collection of CustomPropertyDefinition objects to add.

Examples
var customProperties = new CustomPropertyDefinitionCollection();
var newProperties = new List<CustomPropertyDefinition>
{
    new CustomPropertyDefinition { Name = "Property1", Value = "Value1" },
    new CustomPropertyDefinition { Name = "Property2", Value = "Value2" }
};
customProperties.AddRange(newProperties);