Class OptionCollection

Class OptionCollection

Namespace: Aspose.Html.Forms
Assembly: Aspose.HTML.dll (25.2.0)

The OptionElements represents a wrapper that is associated with the IHTMLOptionsCollection

[ComVisible(true)]
public class OptionCollection : IEnumerable<optionelement>, IEnumerable

Inheritance

objectOptionCollection

Implements

IEnumerable<optionelement>, IEnumerable

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

Count

The number of Option in the list.

public int Count { get; }

Property Value

int

this[int]

Gets the Aspose.Html.Forms.OptionElement at the specified index.

public OptionElement this[int index] { get; }

Property Value

OptionElement

Methods

Add()

Add new option.

public OptionElement Add()

Returns

OptionElement

Return created OptionElement.

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<optionelement> GetEnumerator()

Returns

IEnumerator<OptionElement&gt;

Returns the enumerator of option elements

Remove(OptionElement)

Remove the option from list.

public void Remove(OptionElement option)

Parameters

option OptionElement

The OptionElement. </optionelement>