# MaterialRef class

Namespace: [Rhino.DocObjects](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.docobjects.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public class MaterialRef : IDisposable
```

## Finalizer

- [~MaterialRef](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.materialref/finalize.md)

## Properties

- [BackFaceMaterialId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.materialref/backfacematerialid.md): The Id of the Material used to render the back of an object.
- [BackFaceMaterialIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.materialref/backfacematerialindex.md): The index of the material used to render the back of an object
- [FrontFaceMaterialId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.materialref/frontfacematerialid.md): The Id of the Material used to render the front of an object.
- [FrontFaceMaterialIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.materialref/frontfacematerialindex.md): The index of the material used to render the front of an object
- [MaterialSource](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.materialref/materialsource.md): Determines if the simple material should come from the object or from it's layer.
- [PlugInId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.materialref/pluginid.md): Identifies a rendering plug-in

## Methods

- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.materialref/dispose.md)
