| 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: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven