Bexel Manager API Documentation
Bexel.Api.IReadOnlyMaterialCollection Interface Reference

Represents a read-only collection of Bexel.Api.Materials. More...

Inheritance diagram for Bexel.Api.IReadOnlyMaterialCollection:
IReadOnlyCollection Bexel.Api.ReadOnlyMaterialCollection Bexel.Api.ElementMaterials Bexel.Api.FamilyMaterials Bexel.Api.ProjectMaterials

Public Member Functions

Material GetMaterialByID (MaterialID id)
 Retrieves the material with the specified ID. More...
 
Material GetMaterialByID (int internalID)
 Retrieves the material with the specified internal ID. More...
 
Material GetMaterialByName (string name)
 Retrieves the material with the specified name. More...
 
IEnumerable< MaterialGetMaterialsByName (string name)
 Retrieves the materials with the specified name. More...
 
bool ContainsKey (MaterialID id)
 Determines whether the collection contains the material with the specified ID. More...
 
bool ContainsKey (int internalID)
 Determines whether the collection contains the material with the specified internal ID. More...
 

Properties

Material this[MaterialID id] [get]
 Retrieves the material with the specified ID. More...
 
Material this[int internalID] [get]
 Retrieves the material with the specified internal ID. More...
 

Detailed Description

Represents a read-only collection of Bexel.Api.Materials.

Member Function Documentation

◆ ContainsKey() [1/2]

bool Bexel.Api.IReadOnlyMaterialCollection.ContainsKey ( MaterialID  id)

Determines whether the collection contains the material with the specified ID.

Parameters
idID of the material.
Returns
True if material with the specified ID exists, False otherwise.

Implemented in Bexel.Api.ReadOnlyMaterialCollection.

◆ ContainsKey() [2/2]

bool Bexel.Api.IReadOnlyMaterialCollection.ContainsKey ( int  internalID)

Determines whether the collection contains the material with the specified internal ID.

Parameters
internalIDInternal ID of the material.
Returns
True if material with the specified internal ID exists, False otherwise.

Implemented in Bexel.Api.ReadOnlyMaterialCollection.

◆ GetMaterialByID() [1/2]

Material Bexel.Api.IReadOnlyMaterialCollection.GetMaterialByID ( MaterialID  id)

Retrieves the material with the specified ID.

Parameters
idID of the material.
Returns
A material with the specified ID, null if no such material exists within the collection.

Implemented in Bexel.Api.ReadOnlyMaterialCollection.

◆ GetMaterialByID() [2/2]

Material Bexel.Api.IReadOnlyMaterialCollection.GetMaterialByID ( int  internalID)

Retrieves the material with the specified internal ID.

Parameters
internalIDInternal ID of the material.
Returns
A material with the specified internal ID, null if no such material exists within the collection.

Implemented in Bexel.Api.ReadOnlyMaterialCollection.

◆ GetMaterialByName()

Material Bexel.Api.IReadOnlyMaterialCollection.GetMaterialByName ( string  name)

Retrieves the material with the specified name.

Parameters
nameName of the material.
Returns
A material with the specified name, null if no such material exists within the collection.

Implemented in Bexel.Api.ReadOnlyMaterialCollection.

◆ GetMaterialsByName()

IEnumerable<Material> Bexel.Api.IReadOnlyMaterialCollection.GetMaterialsByName ( string  name)

Retrieves the materials with the specified name.

Parameters
nameName of the material.
Returns
All materials with the specified name, empty collection if no such materials exist within the collection.

Implemented in Bexel.Api.ReadOnlyMaterialCollection.

Property Documentation

◆ this[int internalID]

Material Bexel.Api.IReadOnlyMaterialCollection.this[int internalID]
get

Retrieves the material with the specified internal ID.

Parameters
internalIDInternal ID of the material.
Returns
A material with the specified internal ID.
Exceptions
System.Collections.Generic.KeyNotFoundExceptionNo material with the specified internal ID exists within the collection.

◆ this[MaterialID id]

Material Bexel.Api.IReadOnlyMaterialCollection.this[MaterialID id]
get

Retrieves the material with the specified ID.

Parameters
idID of the material.
Returns
A material with the specified ID.
Exceptions
System.Collections.Generic.KeyNotFoundExceptionNo material with the specified ID exists within the collection.