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
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
this[int]
Gets the Aspose.Html.Forms.OptionElement at the specified index.
public OptionElement this[int index] { get; }
Property Value
Methods
Add()
Add new option.
public OptionElement Add()
Returns
Return created OptionElement.
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<optionelement> GetEnumerator()
Returns
Returns the enumerator of option elements
Remove(OptionElement)
Remove the option from list.
public void Remove(OptionElement option)
Parameters
option
OptionElement
The OptionElement. </optionelement>