Share via


Layout.IndexOf(IView) Method

Definition

Gets the index of a specified child view.

public:
 virtual int IndexOf(Microsoft::Maui::IView ^ item);
public int IndexOf (Microsoft.Maui.IView item);
abstract member IndexOf : Microsoft.Maui.IView -> int
override this.IndexOf : Microsoft.Maui.IView -> int
Public Function IndexOf (item As IView) As Integer

Parameters

item
IView

The child view of which to determine the index.

Returns

The index of the specified view, if the view was not found this will return -1.

Implements

Applies to