# NamedLayerStateTable class

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

```cs
public sealed class NamedLayerStateTable
```

All named layer states in a Rhino document.

## Properties

- [Count](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.namedlayerstatetable/count.md): Returns the number of named layers states in the document.
- [Document](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.namedlayerstatetable/document.md): Document that owns this table.
- [Names](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.namedlayerstatetable/names.md): Returns the names of named layer states in the document.

## Methods

- [Delete](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.namedlayerstatetable/delete.md): Deletes an existing named layer state.
- [FindName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.namedlayerstatetable/findname.md): Returns the index of an existing named layer state.
- [Import](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.namedlayerstatetable/import.md): Imports named layer states from a 3dm file.
- [Rename](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.namedlayerstatetable/rename.md): Renames an existing named layer state.
- [Restore](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.namedlayerstatetable/restore.md): (2 overloads) Restores a named layer state.
- [Save](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.namedlayerstatetable/save.md): (2 overloads) Saves or updates a named layer state.
