# File3dmLayerTable class

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

```cs
public class File3dmLayerTable : File3dmCommonComponentTable<Layer>, IList<Layer>
```

Provides access to layers in the 3dm file.

## Properties

- [ComponentType](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.file3dmlayertable/componenttype.md): Returns [ModelComponentType.Layer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponenttype.md).

## Methods

- [AddDefaultLayer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.file3dmlayertable/adddefaultlayer.md): Easy way to add a default layer to the model.
- [AddLayer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.file3dmlayertable/addlayer.md): (2 overloads) Add a new layer to the model.
- [FindIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.file3dmlayertable/findindex.md): Retrieves a Layer object based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.
- [FindName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.file3dmlayertable/findname.md): Finds a Layer given its name.
- [FindNameHash](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.file3dmlayertable/findnamehash.md): Finds a Layer given its name hash.

## Inherited Members

- From [File3dmCommonComponentTable<T>](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.file3dmcommoncomponenttable-1.md): [Add](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.file3dmcommoncomponenttable-1/add.md), [Delete](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.file3dmcommoncomponenttable-1/delete.md), [Dump](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.file3dmcommoncomponenttable-1/dump.md)
- From [CommonComponentTable<T>](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1.md): [Count](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/count.md), [Clear](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/clear.md), [FindId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/findid.md), [GetEnumerator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/getenumerator.md)
