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: 21.11
public string DisplayName { get; set; }

Property Value

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

// 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";

See Also