ZennoLab Assemblies Documentation
IsVoid Property (HtmlElementCollection)
Example 
ZennoLab.CommandCenter Namespace > HtmlElementCollection Class : IsVoid Property
Gets the specified collection is void collection or not.
Syntax
public bool IsVoid {get;}

Property Value

Type: System.Boolean

true if collection do not represented on the server; otherwise, false.

Example
The following code example uses the IsVoid property.
public static int Execute(Instance instance, IZennoPosterProjectModel project)
{
    // clear cookie
    instance.ClearCookie();
    
    // go to lessons.zennolab.com
    Tab tab = instance.MainTab;
    if ((tab.IsVoid) || (tab.IsNull)) return -1;
    if (tab.IsBusy) tab.WaitDownloading();
    tab.Navigate("lessons.zennolab.com");
    if (tab.IsBusy) tab.WaitDownloading();
    
    // find elements by tag
    HtmlElementCollection heCol = tab.FindElementsByTags("input:checkbox");
    
    // if collection is void then return -1
    if (heCol.IsVoid) return -1;
    
    return 0;
}
public static function Execute($instance, $project)
{
    // clear cookie
    $instance->ClearCookie();
    
    // go to lessons.zennolab.com
    $tab = $instance->MainTab;
    if (($tab->IsVoid) || ($tab->IsNull)) return -1;
    if ($tab->IsBusy) $tab->WaitDownloading();
    $tab->Navigate("lessons.zennolab.com");
    if ($tab->IsBusy) $tab->WaitDownloading();
    
    // find elements by tag
    $heCol = $tab->FindElementsByTags("input:checkbox");
    
    // if collection is void then return -1
    if ($heCol->IsVoid) return -1;
    
    return 0;
}
Requirements

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

See Also

Reference

HtmlElementCollection Class
HtmlElementCollection Members
ErrorDetected Property