ZennoLab Assemblies Documentation
IsVoid Property (HtmlElementCollection)
Example 
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: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

Reference

HtmlElementCollection Class
HtmlElementCollection Members
ErrorDetected Property

Send Feedback