LayerIsVisible Property
Gets or sets a value indicating whether the layer is visible

Namespace: Aspose.PSD.FileFormats.Psd.Layers
Assembly: Aspose.PSD (in Aspose.PSD.dll) Version: 20.6
public bool IsVisible { get; set; }

Property Value

Type: Boolean
true if this instance is visible; otherwise, false.
The following example demonstrates how you can change LayerGroup visibility in Aspose.PSD

string sourceFilePath = "input.psd";
string outputFilePath = "output.psd";

// make changes in layer names and save it
using (var image = (PsdImage)Image.Load(sourceFilePath))
    for (int i = 0; i < image.Layers.Length; i++)
        var layer = image.Layers[i];

        // Turn off everything inside a group
        if (layer is LayerGroup)
            layer.IsVisible = false;

See Also