ZennoLab Assemblies Documentation
Remove Method (HtmlElementCollection)
Example 
ZennoLab.CommandCenter Namespace > HtmlElementCollection Class : Remove Method

Type: System.Int32

The zero-based index of the html element to remove.

Removes the element at the specified index of the HtmlElementCollection.
Syntax
public void Remove( 
   int index
)

Parameters

index

Type: System.Int32

The zero-based index of the html element to remove.

Exceptions
ExceptionDescription
index is less than 0 or index is equal to or greater than Count.
Example
The following code shows the Remove method call
// 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);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

HtmlElementCollection Class
HtmlElementCollection Members
Add Method
AddRange Method
Insert Method
InsertRange Method