Class ScriptObjectCollection
Provides a thread-safe wrapper for obtaining and iterating Document Object Model (DOM) collections.
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.Collections.Generic.IEnumerable<ScriptObject>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Browser
Assembly: OpenSilver.Browser.dll
Syntax
public sealed class ScriptObjectCollection : ScriptObject, IDynamicMetaObjectProvider, IEnumerable<ScriptObject>, IEnumerable
Properties
| Improve this Doc View SourceCount
Gets the number of items in the collection.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 | A count of items in the collection. |
Item[Int32]
Gets an item from the collection at the specified index.
Declaration
public ScriptObject this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the item to be retrieved. |
Property Value
Type | Description |
---|---|
ScriptObject | A reference to an HTML element. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | index is invalid. |
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerable<ScriptObject>.GetEnumerator()
Declaration
IEnumerator<ScriptObject> IEnumerable<ScriptObject>.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<ScriptObject> |
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable