Show / Hide Table of Contents

Class ScriptObjectCollection

Provides a thread-safe wrapper for obtaining and iterating Document Object Model (DOM) collections.

Inheritance
System.Object
ScriptObject
ScriptObjectCollection
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.Collections.Generic.IEnumerable<ScriptObject>
System.Collections.IEnumerable
Inherited Members
ScriptObject.Dispatcher
ScriptObject.ManagedObject
ScriptObject.ConvertTo<T>()
ScriptObject.GetProperty(Int32)
ScriptObject.GetProperty(String)
ScriptObject.Invoke(String, Object[])
ScriptObject.InvokeSelf(Object[])
ScriptObject.SetProperty(Int32, Object)
ScriptObject.SetProperty(String, Object)
ScriptObject.ConvertTo(Type, Boolean)
ScriptObject.IDynamicMetaObjectProvider.GetMetaObject(Expression)
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 Source

Count

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.

| Improve this Doc View Source

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 Source

IEnumerable<ScriptObject>.GetEnumerator()

Declaration
IEnumerator<ScriptObject> IEnumerable<ScriptObject>.GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<ScriptObject>
| Improve this Doc View Source

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

System.Dynamic.IDynamicMetaObjectProvider
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
  • Improve this Doc
  • View Source