DynaPDF.GetFieldTextAlign
-------------------------

The function returns the text alignment of a text field or button field.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [4.0](newinversion40.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.GetFieldTextAlign"; PDF; Field ) 

**MBS**( **"DynaPDF.GetFieldTextAlign";** /\* The function returns the text alignment of a text field or button field. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Field**) /\* The field index or field name.e.g. "FirstName" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Field | The field index or field name. | "FirstName" |

### Result

Returns text align or error.

### Description

The function returns the text alignment of a text field or button field.  
Value can be Left, Center, Right or Justify.  
See also [GetFieldTextAlign](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetFieldTextAlign.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetAnnotTextAlign](DynaPDFGetAnnotTextAlign.md)
- [DynaPDF.GetFieldOrientation](DynaPDFGetFieldOrientation.md)
- [DynaPDF.GetFieldTextColor](DynaPDFGetFieldTextColor.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldTextAlign](DynaPDFSetFieldTextAlign.md)
- [DynaPDF.SetFieldTextColor](DynaPDFSetFieldTextColor.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.GetFieldOrientation](DynaPDFGetFieldOrientation.md) - [DynaPDF.GetFieldTextColor](DynaPDFGetFieldTextColor.md)

[HTML Version](DynaPDFGetFieldTextAlign.shtml)