Show / Hide Table of Contents

Interface ILoadCollection

Namespace: Experior.Interfaces.Collections
Assembly: Experior.Interfaces.dll
Syntax
public interface ILoadCollection : IEnumerable<ILoad>, IEnumerable

Properties

Values

Declaration
IReadOnlyCollection<ILoad> Values { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyCollection<ILoad>

Methods

Add(ILoad)

Add an load to the scene

Declaration
void Add(ILoad load)
Parameters
Type Name Description
ILoad load

The load

AddRange(IEnumerable<ILoad>)

Add loads to the scene

Declaration
void AddRange(IEnumerable<ILoad> loads)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ILoad> loads

Any()

Declaration
bool Any()
Returns
Type Description
System.Boolean

Clear()

Declaration
void Clear()

Contains(ILoad)

Declaration
bool Contains(ILoad item)
Parameters
Type Name Description
ILoad item
Returns
Type Description
System.Boolean

Count(Func<ILoad, Boolean>)

Declaration
int Count(Func<ILoad, bool> predicate = null)
Parameters
Type Name Description
System.Func<ILoad, System.Boolean> predicate
Returns
Type Description
System.Int32

Get(Func<ILoad, Boolean>)

Declaration
IReadOnlyCollection<ILoad> Get(Func<ILoad, bool> predicate)
Parameters
Type Name Description
System.Func<ILoad, System.Boolean> predicate
Returns
Type Description
System.Collections.Generic.IReadOnlyCollection<ILoad>

Get(String)

Declaration
ILoad Get(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
ILoad

Get(UInt64)

Declaration
ILoad Get(ulong entityid)
Parameters
Type Name Description
System.UInt64 entityid
Returns
Type Description
ILoad

GetEnumerator()

Declaration
IEnumerator<ILoad> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<ILoad>

OfType<T>()

Filters the list of loads based on a specified type.

Declaration
IReadOnlyCollection<T> OfType<T>()
    where T : ILoad
Returns
Type Description
System.Collections.Generic.IReadOnlyCollection<T>

An System.Collections.Generic.IEnumerable<T> that contains elements from the input sequence of type T.

Type Parameters
Name Description
T

The type to filter the elements of the sequence on.

Exceptions
Type Condition
System.ArgumentNullException

Remove(ILoad)

Remove specified load from the load list (i.e. no rendering, no appearance in list, forms etc). The load will NOT be disposed by removing it from this list.

Declaration
bool Remove(ILoad item)
Parameters
Type Name Description
ILoad item
Returns
Type Description
System.Boolean

true if successfully removed, otherwise false

Remarks

The load will NOT be disposed by removing it from this list

RemoveRange(IEnumerable<ILoad>)

Remove specified loads from loads list (i.e. no rendering, no appearance in list, forms etc). The loads will NOT be disposed by removing them from this list.

Declaration
bool RemoveRange(IEnumerable<ILoad> loads)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ILoad> loads
Returns
Type Description
System.Boolean

true if successfully removed, otherwise false

Remarks

The loads will NOT be disposed by removing it from this list

Where(Func<ILoad, Boolean>)

Declaration
IReadOnlyCollection<ILoad> Where(Func<ILoad, bool> predicate)
Parameters
Type Name Description
System.Func<ILoad, System.Boolean> predicate
Returns
Type Description
System.Collections.Generic.IReadOnlyCollection<ILoad>

Events

OnLoadsAdded

Raised when loads are added to the collection.

Declaration
event EventHandler<LoadCollectionChangedEventArgs> OnLoadsAdded
Event Type
Type Description
System.EventHandler<LoadCollectionChangedEventArgs>

OnLoadsRemoved

Raised when loads are removed to the collection.

Declaration
event EventHandler<LoadCollectionChangedEventArgs> OnLoadsRemoved
Event Type
Type Description
System.EventHandler<LoadCollectionChangedEventArgs>
Back to top Generated by DocFX