NUnitForms Class Library

ControlTester.Item Property

Allows you to find a ControlTester by index where the name is not unique.

[Visual Basic]
Overloads Public Default ReadOnly Property Item( _
   ByVal index As Integer _
) As ControlTester
[C#]
public ControlTester this[
   int index
] {get;}

Parameters

index
The index of the ControlTester.

Property Value

The ControlTester at the specified index.

Remarks

When a control is not uniquely identified by its name property, you can access it according to an index. This should only be used when you have dynamic controls and it is inconvenient to set the Name property uniquely. This was added to support the ability to find controls where their name is not unique. If all of your controls are uniquely named (I recommend this) then you will not need this.

See Also

ControlTester Class | NUnit.Extensions.Forms Namespace | ControlTester.Item Overload List