public GetActionControls ( HtmlControl tableRow ) : IList |
||
tableRow | HtmlControl | The table row. |
return | IList |
public IList<Element> GetActionControls(HtmlControl tableRow)
{
IList<Element> controls = new List<Element>();
int nCount = 0;
ICollection<Element> cellList = tableRow.ChildNodes;
foreach (Element cell in cellList)
{
if (cell.ChildNodes[0].TagName == "a")
{
nCount = cell.Children.Count;
for (int i = 0; i <= nCount - 1; i++)
{
controls.Add(cell.ChildNodes[i]);
}
return controls;
}
}
return null;
}