Specifies that a control should use the nth occurring element matching the control’s definition.

Inherited from FindAttribute.

<label>
    <input type="radio" name="gender" value="Male" />Male
</label>
<label>
    <input type="radio" name="gender" value="Female" />Female
</label>
[FindByIndex(0)]
public RadioButton<_> MaleGender { get; private set; }

[FindByIndex(1)]
public RadioButton<_> FemaleGender { get; private set; }