Ejemplo n.º 1
0
        /// <summary>
        /// Finds the first row that meets the <see cref="TableRowAttributeConstraint"/>.
        /// If no match is found, <c>null</c> is returned.
        /// </summary>
        /// <param name="findBy">The constraint used to identify the table cell.</param>
        /// <returns>The searched for <see cref="TableRow"/>; otherwise <c>null</c>.</returns>
        public TableRow FindRow(TableRowAttributeConstraint findBy)
        {
            TableRow row = ElementsSupport.TableRow(DomContainer, findBy, new ElementsInFirstTBody(this));

            if (row.Exists)
            {
                return(row);
            }

            return(null);
        }
 public TableRow TableRow(BaseConstraint findBy)
 {
     return(ElementsSupport.TableRow(DomContainer, findBy, this));
 }
 /// <summary>
 /// Returns the table row belonging to this table body (not including table rows
 /// from tables nested in this table body).
 /// </summary>
 /// <param name="findBy">The find by.</param>
 /// <returns></returns>
 public override TableRow TableRow(BaseConstraint findBy)
 {
     return(ElementsSupport.TableRow(DomContainer, findBy, new Rows(this)));
 }