ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > HtmlElementCollection Class : Remove Method |
Type: System.Int32
The zero-based index of the html element to remove.
Type: System.Int32
The zero-based index of the html element to remove.
Exception | Description |
---|---|
ArgumentOutOfRangeException | index is less than 0 or index is equal to or greater than Count. |
// find elements by tag HtmlElementCollection heCol = tab.FindElementsByTags("input:checkbox"); // remove last element heCol.Remove(heCol.Count-1);
// find elements by tag $heCol = $tab->FindElementsByTags("input:checkbox"); // remove last element $heCol->Remove($heCol->Count-1);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.