ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / CustomPropertyDefinitionCollection Class / AddRange Method
A collection of CustomPropertyDefinition objects to add.
Example

In This Topic
    AddRange Method (CustomPropertyDefinitionCollection)
    In This Topic
    Adds a range of CustomPropertyDefinition objects to the collection.
    Syntax
    'Declaration
     
    Public Sub AddRange( _
       ByVal collection As IEnumerable(Of CustomPropertyDefinition) _
    ) 
    public void AddRange( 
       IEnumerable<CustomPropertyDefinition> collection
    )

    Parameters

    collection
    A collection of CustomPropertyDefinition objects to add.
    Example
    var customProperties = new CustomPropertyDefinitionCollection();
    var newProperties = new List<CustomPropertyDefinition>
    {
        new CustomPropertyDefinition { Name = "Property1", Value = "Value1" },
        new CustomPropertyDefinition { Name = "Property2", Value = "Value2" }
    };
    customProperties.AddRange(newProperties);
    See Also