---
title: "PsdProcessor.StringCallback Property "
canonical: https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Templates_PsdProcessor_StringCallback.htm
product: "Graphics Mill"
---

# 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](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_Psd_PsdTextFrame.htm.md) and return a String. It is convenient to use lambda expressions as demonstrated below.
 
**Namespace:** [Aurigma.GraphicsMill.Templates](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Templates.htm.md)
 **Assembly:** Aurigma.GraphicsMill.Templates (in Aurigma.GraphicsMill.Templates.dll)
 
## Syntax
  
```csharp
public Func<PsdProcessor, PsdTextFrame, string> StringCallback { get; set; }
```
 
## Examples
  
```csharp
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

- [PsdProcessor Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Templates_PsdProcessor.htm.md)
- [Aurigma.GraphicsMill.Templates Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Templates.htm.md)
