Layer.DisplayName property

Gets or sets the display name of the layer.

public string DisplayName { get; set; }

Property Value

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