ComponentOne Basic Library for WPF and Silverlight
C1IndexOf Method


C1.Silverlight Namespace > Extensions Class : C1IndexOf Method
The items control.
The value.
--- SL2 BUG --- ItemsControl doesn't use Equals for comparison (ItemCollection.IndexOf)
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function C1IndexOf( _
   ByVal itemsControl As System.Windows.Controls.ItemsControl, _
   ByVal value As System.Object _
) As System.Integer
'Usage
 
Dim itemsControl As System.Windows.Controls.ItemsControl
Dim value As System.Object
Dim value As System.Integer
 
value = Extensions.C1IndexOf(itemsControl, value)
[System.Runtime.CompilerServices.Extension()]
public static System.int C1IndexOf( 
   System.Windows.Controls.ItemsControl itemsControl,
   System.object value
)

Parameters

itemsControl
The items control.
value
The value.
See Also

Reference

Extensions Class
Extensions Members