# WorksessionFileLayerValues 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) · Since v9.0

```cs
public sealed class WorksessionFileLayerValues : IDisposable
```

Layer settings saved in a Rhino worksession (.rws) file.

## Constructors

- [WorksessionFileLayerValues](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilelayervalues/ctor.md): (2 overloads) Creates layer settings with the defaults: visible, unlocked and black.

## Finalizer

- [~WorksessionFileLayerValues](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilelayervalues/finalize.md): Releases the native layer settings.

## Properties

- [Color](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilelayervalues/color.md): Gets or sets the layer color.
- [Locked](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilelayervalues/locked.md): Gets or sets whether the layer is locked.
- [Visible](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilelayervalues/visible.md): Gets or sets whether the layer is visible.

## Methods

- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilelayervalues/dispose.md): Releases the native layer settings.
- [GetLayer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilelayervalues/getlayer.md): Gets a copy of the rest of the layer's settings, saved by Rhino 9 and later. Reading an older file leaves this set to a default layer.
- [SetLayer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.worksessionfilelayervalues/setlayer.md): Replaces the layer settings with a copy of layer.
