Skybound Rebar

RebarBand.RebarButtonCollection.Add Method 

Adds an instance of type RebarButton to the end of this instance.

[Visual Basic]
Public Function Add( _
   ByVal value As RebarButton _
) As Integer
[C#]
public int Add(
   RebarButton value
);

Parameters

value
The RebarButton to be added to the end of this instance.

Return Value

The zero-based index value of the RebarButton added to the collection.

Remarks

You can also add new RebarButton objects to the collection by using the Insert method.

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

Exceptions

Exception Type Condition
ArgumentNullException

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

See Also

RebarBand.RebarButtonCollection Class | Skybound.Rebar Namespace