Removes the element at the specified index of the
HtmlElementCollection.
Syntax
Parameters
- index
Type: System.Int32
The zero-based index of the html element to remove.
Exceptions
Example
The following code shows the
Remove method call
| C# | Copy Code |
|---|
// find elements by tag
HtmlElementCollection heCol = tab.FindElementsByTags("input:checkbox");
// remove last element
heCol.Remove(heCol.Count-1); |
| PHP | Copy Code |
|---|
// find elements by tag
$heCol = $tab->FindElementsByTags("input:checkbox");
// remove last element
$heCol->Remove($heCol->Count-1); |
Requirements
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven
See Also