Skybound Rebar

RebarBand.RebarButtonCollection.IndexOf Method 

Returns the zero-based index of the first occurrence of a specified value in this instance.

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

Parameters

value
The RebarButton value to locate.

Return Value

The zero-based index of the first occurrence of value if found; otherwise, returns -1.

Remarks

This method gives you easy access to the index value of the RebarButton in the collection.

See Also

RebarBand.RebarButtonCollection Class | Skybound.Rebar Namespace