EnumValueCollectionTIndexOf Method

Determines the index of a specific item in the IListT.


Namespace: TwinCAT.TypeSystem
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public int IndexOf(
    EnumValue<T> item
)

Parameters

item  EnumValueT

The object to locate in the IListT.

Return Value

Int32
The index of item if found in the list; otherwise, -1.

Implements

IListTIndexOf(T)

Reference

EnumValueCollectionT Class TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026