MailBee.NET Objects 7.2

ElementCollection.AddRange Method (ElementCollection, Int32, Int32, Int32)

Adds elements from another ElementCollection object within the specified range.

public void AddRange(
   ElementCollection elems,
   int srcIndex,
   int count,
   int destIndex
);

Parameters

elems
The source ElementCollection to add elements from.
srcIndex
The zero-based index in elems collection from which to copy the elements.
count
Number of elements to be added from elems collection.
destIndex
The zero-based index in the current collection where to insert the first element from the copied range.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException elems is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException The specified index is not valid.

See Also

ElementCollection Class | MailBee.Html Namespace | ElementCollection.AddRange Overload List