{{< psd/tize >}}
## PsdImage.ActiveLayer property

Gets or sets the active layer.

```csharp
public Layer ActiveLayer { get; set; }
```

### Property Value

The active layer.

### Exceptions

| exception | condition |
| --- | --- |
| [TiffImageException](../../../aspose.psd.coreexceptions.imageformats/tiffimageexception/) | There is no active layer and no layers in image. |
| [PsdImageException](../../../aspose.psd.coreexceptions.imageformats/psdimageexception/) | The active layer cannot be set as it belongs to another image. |

### See Also

* class [Layer](../../../aspose.psd.fileformats.psd.layers/layer/)
* class [PsdImage](../)
* namespace [Aspose.PSD.FileFormats.Psd](../../../aspose.psd.fileformats.psd/)
* assembly [Aspose.PSD](../../../)


