---
title: "PsdProcessor.TextCallback Property "
canonical: https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Templates_PsdProcessor_TextCallback.htm
product: "Graphics Mill"
---

# PsdProcessor.TextCallback Property 
 
Gets or sets the callback function that processes text layers. The function should accept an alias for the calling object, a [PsdTextFrame](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_Psd_PsdTextFrame.htm.md), and a string and return a [Text](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Text.htm.md). 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, Text> TextCallback { get; set; }
```
 
## Examples
  
```csharp
var psdProcessor = new PsdProcessor();

psdProcessor.TextCallback = (processor, textFrame, textString) =>
{
    var text = processor.ProcessText(textFrame);
    text.String = textString;

    text.Brush = new SolidBrush(RgbColor.DarkRed);

    return text;
};

psdProcessor.Render(@"Images\BusinessCard.psd", @"Images\Output\RedText.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)
