---
title: "TextSpan Constructor "
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_Codecs_Psd_TextSpan_ctor_15_00f813bc.htm
product: "Graphics Mill"
---

# TextSpan Constructor 
 
Initializes a new instance of the [TextSpan](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_Psd_TextSpan.htm.md) class with the specified parameters.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs.Psd](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs_Psd.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
protected TextSpan(float fontSize,string fontName,Color color,FontCaps fontCaps,float tracking,float hScale,float vScale,bool fauxBold,bool fauxItalic,bool underline,bool strikeout,float leading,string string,DigitType digitType,ReadOnlyCollection<OpenTypeFeature> openTypeFeatures
)
```
 
### Parameters
 
 - fontSize
     - Type: System.Single

 - fontName
     - Type: System.String
The font name.

 - color
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md)
The text color.

 - fontCaps
     - Type: [Aurigma.GraphicsMill.Codecs.Psd.FontCaps](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_Psd_FontCaps.htm.md)
The font caps style.

 - tracking
     - Type: System.Single
The character tracking value.

 - hScale
     - Type: System.Single

 - vScale
     - Type: System.Single

 - fauxBold
     - Type: System.Boolean

 - fauxItalic
     - Type: System.Boolean

 - underline
     - Type: System.Boolean
A value indicating whether the text is underlined.

 - strikeout
     - Type: System.Boolean

 - leading
     - Type: System.Single
The line leading value.

 - string
     - Type: System.String

 - digitType
     - Type: [Aurigma.GraphicsMill.Codecs.Psd.DigitType](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_Psd_DigitType.htm.md)
The digit type.

 - openTypeFeatures
     - Type: System.Collections.ObjectModel.ReadOnlyCollection&lt;[OpenTypeFeature](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_OpenTypeFeature.htm.md)&gt;
The OpenType features to apply.
   
## See Also

### Reference

- [TextSpan Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_Psd_TextSpan.htm.md)
- [Aurigma.GraphicsMill.Codecs.Psd Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs_Psd.htm.md)
