Skybound Rebar

RebarBand.RebarButtonCollection.AddRange Method 

Adds the elements of an array to the end of this RebarBand.RebarButtonCollection.

[Visual Basic]
Public Sub AddRange( _
   ByVal buttons As RebarButton() _
)
[C#]
public void AddRange(
   RebarButton[] buttons
);

Parameters

buttons
The array whose elements are to be added to the end of this RebarBand.RebarButtonCollection.

Remarks

The RebarButton objects contained in the buttons array are appended to the end of the collection.

You can use method to quickly add a group of previouly created RebarButton objects to the collection instead of manually adding each RebarButton to the collection using the Add method.

To remove a RebarButton that you have previously added, use the Remove, RemoveAt or Clear methods.

Exceptions

Exception Type Condition
ArgumentNullException

The value parameter is a null reference (Nothing in Visual Basic).

-or-

One of the elements of value is a null reference (Nothing in Visual Basic).

See Also

RebarBand.RebarButtonCollection Class | Skybound.Rebar Namespace