Click or drag to resize
MaterialTable Class

[Missing <summary> documentation for "T:Rhino.DocObjects.Tables.MaterialTable"]

Inheritance Hierarchy
SystemObject
  Rhino.DocObjects.TablesMaterialTable

Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public sealed class MaterialTable : IEnumerable<Material>, 
	IEnumerable

The MaterialTable type exposes the following members.

Properties
  NameDescription
Public propertyCount
Returns number of materials in the material table, including deleted materials.
Public propertyCurrentMaterialIndex
At all times, there is a "current" material. Unless otherwise specified, new objects are assigned to the current material. The current material is never locked, hidden, or deleted.
Public propertyCurrentMaterialSource
Gets or sets the current material source.
Public propertyDocument
Document that owns this table.
Public propertyItem
Conceptually, the material table is an array of materials. The operator[] can be used to get individual materials. A material is either active or deleted and this state is reported by Material.IsDeleted.
Top
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 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(String, Boolean)
Finds a meterial with a given name.
Public methodGetEnumerator
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