ModelItemCollection.IndexOf Method
When overridden in a derived class, returns the index of the specified item.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Function IndexOf ( _
item As ModelItem _
) As Integer
public abstract int IndexOf(
ModelItem item
)
public:
virtual int IndexOf(
ModelItem^ item
) abstract
abstract IndexOf :
item:ModelItem -> int
public abstract function IndexOf(
item : ModelItem
) : int
Parameters
- item
Type: Microsoft.Windows.Design.Model.ModelItem
The ModelItem to find the index of.
Return Value
Type: System.Int32
Returns an integer representing the index of the specified ModelItem. If the item is not found it returns -1.
Implements
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Model Namespace