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

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

public int OptionCount { get; }

Field Value

The number of options available in this SelectElement.

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