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

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

IList<T>.IndexOf(T)

.NET Framework Security

See Also

Reference

ModelItemCollection Class

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility Architecture