LayerDisplayName Property
Gets or sets the display name of the layer.

Namespace: Aspose.PSD.FileFormats.Psd.Layers
Assembly: Aspose.PSD (in Aspose.PSD.dll) Version: 19.9
Syntax
public string DisplayName { get; set; }

Property Value

Type: String
The display name of the layer.
Examples
The following example demonstrates ability to set the DisplayName value, in what the layer name display correct.
[C#]

// make changes in layer names and save it
string sourceFileName = "layers with names.psd";
string output = "output.psd";

using (var image = (PsdImage)Image.Load(sourceFileName))
{
    for (int i = 0; i < image.Layers.Length; i++)
    {
        var layer = image.Layers[i];
        // set new value into DisplayName property
        layer.DisplayName += "_changed";
    }

    image.Save(output);
}
See Also