ZennoLab Assemblies Documentation
Count Property
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > HtmlElementCollection Class : Count Property

Glossary Item Box

Gets the number of elements actually contained in the HtmlElementCollection.

Syntax

C# 
public int Count {get;}

Property Value

Type: System.Int32
The number of elements actually contained in the HtmlElementCollection.

Remarks

The Count property it is the number of elements that are actually in the HtmlElementCollection.

Example

The following code example shows the value of the Count property.
C#Copy Code
// find elements by tag
HtmlElementCollection heCol = tab.FindElementsByTags("input:checkbox");
 
// get count of collection
int count = heCol.Count;
PHPCopy Code
// find elements by tag
$heCol = $tab->FindElementsByTags("input:checkbox");
 
// get count of collection
$count = $heCol->Count;

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.