PsdProcessor.StringCallback Property

Gets or sets the callback function that processes text layers. The function should accept an alias for the calling object and a PsdTextFrame and return a String. It is convenient to use lambda expressions as demonstrated below.

Namespace: Aurigma.GraphicsMill.Templates
Assembly: Aurigma.GraphicsMill.Templates (in Aurigma.GraphicsMill.Templates.dll)

Syntax

C#
public Func<PsdProcessor, PsdTextFrame, string> StringCallback { get; set; }

Examples

C#
var psdProcessor = new PsdProcessor();

psdProcessor.StringCallback = (processor, textFrame) =>
{
    string text = "{" + textFrame.Text + "}";
    return text;
};

psdProcessor.Render(@"Images\BusinessCard.psd", @"Images\Output\AddBraces.pdf");

See Also

Reference