Table of Contents

Method FindHostObjectIndex

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

FindHostObjectIndex(Predicate<object>)

Finds the index of the first host object in HostObjects that matches the specified predicate.

public virtual int FindHostObjectIndex(Predicate<object> predicate)

Parameters

predicate Predicate<object>

A function to test each host object for a condition.

Returns

int

The zero-based index of the first matching host object if found; otherwise, -1.

Exceptions

ArgumentNullException

Thrown if predicate is null.