共用方式為


MenuItemCollection.IndexOf(MenuItem) Method

Definition

public int IndexOf (Xamarin.Forms.MenuItem item);
abstract member IndexOf : Xamarin.Forms.MenuItem -> int
override this.IndexOf : Xamarin.Forms.MenuItem -> int

Parameters

item
MenuItem

Returns

System.Int32

Implements

System.Collections.Generic.IList`1.IndexOf(`0)

Applies to