SelectElement GetOptionElement Method (Int32)C# API
Gets the OptionElement at the specifed index.

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

public OptionElement GetOptionElement(
	int index
)

Parameters

index
Type: System Int32
The index of the OptionElement to retrieve.

Return Value

The OptionElement at the specified index.
Exceptions

Examples

The following example demonstrates getting the OptionElement objects by index from a SelectElement object.
// iterate over the options within a SelectElement 
for (int i = 0; i < selectElement.OptionCount; i++)
{
    OptionElement optionElement = selectElement.GetOptionElement(i);
}
See Also