Specifies that a control should be found by the child content text. Finds the control having the child with the specified content. Uses Title as the default term case.

Inherited from TermFindAttribute.

<a href="/products">
    <span class="icon-products"></span>
    <span class="item-name">Products</span>
    <span class="item-count">15</span>
</a>
[FindByChildContent(ChildIndex = 1)]
public Link<_> Products { get; private set; }

Properties

public int

ChildIndex { get; set; }

Gets or sets the index of the child element. The default value is 0.