ZennoLab Assemblies Documentation
Remove Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > HtmlElementCollection Class : Remove Method
index

Type: System.Int32

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

Glossary Item Box

Removes the element at the specified index of the HtmlElementCollection.

Syntax

C# 
public void Remove( 
   int index
)

Parameters

index

Type: System.Int32

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

Exceptions

ExceptionDescription
ArgumentOutOfRangeExceptionindex is less than 0 or index is equal to or greater than Count.

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);
PHPCopy 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

© 2013 All Rights Reserved.