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
public ControlTester this[
   int index
] {get;}


The index of the ControlTester.

Property Value

The ControlTester at the specified index.


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