SelectElement OptionCount Property C# API
Gets the number of OptionElement objects in this SelectElement.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.7.98 (1.0.0.0)
Syntax

public int OptionCount { get; }

Field Value

The number of options available in this SelectElement.
Examples

The following example demonstrates using the OptionCount property to iterate over all OptionElements in a SelectElement.
// iterate over the options within a SelectElement 
for (int i = 0; i < selectElement.OptionCount; i++)
{
    OptionElement optionElement = selectElement.GetOptionElement(i);
}
See Also