Version

IndexOf Method (LayoutItemsCollection)

Retruns the index of the passed in item in the layout items collection.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal item As ILayoutItem _
) As Integer
public int IndexOf( 
   ILayoutItem item
)

Parameters

item
The ILayoutItem whose index should be retrieved.

Return Value

The index of the specified item, or -1 if the item was not found.
Remarks

Layout manager keeps track of the order in which items are added. Some layout managers may layout items in the order in which they were added.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also