Skybound Rebar

Rebar.RebarBandCollection.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 RebarBand _
) As Integer
[C#]
public int IndexOf(
   RebarBand value
);

Parameters

value
The RebarBand 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 RebarBand in the collection. You can also use the Index property to retrieve the index of a band in the collection that contains it.

See Also

Rebar.RebarBandCollection Class | Skybound.Rebar Namespace