Click or drag to resize

MaterialTable Methods

The MaterialTable type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds a new material to the table based on the default material.
Public methodAdd(Material)
Adds a new material to the table based on a given material.
Public methodAdd(Material, Boolean)
Adds a new material to the table based on a given material.
Public methodClear
Marks all items as deleted.
(Inherited from CommonComponentTableT.)
Public methodDelete (Overrides CommonComponentTableTDelete(T).)
Public methodDeleteAt
Removes a material at a specific position from this material table.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFind(Guid, Boolean)
Finds a material with a matching id.
Public methodFind(Material, Boolean)
Finds a material index.
Public methodFind(String, Boolean)
Finds a material with a given name.
Public methodFindId
Uses the guid to find a model component. Deleted objects cannot be found by id. The guid is the value that is stored in the .Id property. In a single document, no two active objects have the same guid. If an object is replaced with a new object, then the guid persists. For example, if the _Move command moves an object, then the moved object inherits its guid from the starting object. If the Copy command copies an object, then the copy gets a new guid. This guid persists through file saving/opening operations. This function will not find grip objects.
(Inherited from CommonComponentTableT.)
Public methodFindIndex
Retrieves a Material object based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.
Public methodGetEnumerator
Returns the enumerator that yields all items.
(Inherited from CommonComponentTableT.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodModify
Modify material settings.
Public methodResetMaterial
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also