
**Inheritance:**
java.lang.Object
```
public class TableField
```

Represents a field of a table in a project.
## Constructors

| Constructor | Description |
| --- | --- |
| [TableField()](#TableField--) | Initializes a new instance of the [TableField](../../com.aspose.tasks/tablefield) class. |
## Methods

| Method | Description |
| --- | --- |
| [getAlignData()](#getAlignData--) | Gets the alignment of data in a table field. |
| [getAlignTitle()](#getAlignTitle--) | Gets the alignment of the title in a table field. |
| [getField()](#getField--) | Gets the type of a table field. |
| [getTitle()](#getTitle--) | Gets the title of the field in a table. |
| [getWidth()](#getWidth--) | Gets the width in points of the field column in a table. |
| [getWrapHeader()](#getWrapHeader--) | Gets a value indicating whether the table column heading can wrap to multiple lines, or if it should be truncated when it exceeds the column width. |
| [getWrapText()](#getWrapText--) | Gets a value indicating whether the column text can wrap to multiple lines, or if it should be truncated when it exceeds the column width. |
| [setAlignData(int value)](#setAlignData-int-) | Sets the alignment of data in a table field. |
| [setAlignTitle(int value)](#setAlignTitle-int-) | Sets the alignment of the title in a table field. |
| [setField(int value)](#setField-int-) | Sets the type of a table field. |
| [setTitle(String value)](#setTitle-java.lang.String-) | Sets the title of the field in a table. |
| [setWidth(int value)](#setWidth-int-) | Sets the width in points of the field column in a table. |
| [setWrapHeader(boolean value)](#setWrapHeader-boolean-) | Sets a value indicating whether the table column heading can wrap to multiple lines, or if it should be truncated when it exceeds the column width. |
| [setWrapText(boolean value)](#setWrapText-boolean-) | Sets a value indicating whether the column text can wrap to multiple lines, or if it should be truncated when it exceeds the column width. |
### TableField() {#TableField--}
```
public TableField()
```


Initializes a new instance of the [TableField](../../com.aspose.tasks/tablefield) class.

### getAlignData() {#getAlignData--}
```
public final int getAlignData()
```


Gets the alignment of data in a table field.

**Returns:**
int - the alignment of data in a table field.
### getAlignTitle() {#getAlignTitle--}
```
public final int getAlignTitle()
```


Gets the alignment of the title in a table field.

**Returns:**
int - the alignment of the title in a table field.
### getField() {#getField--}
```
public final int getField()
```


Gets the type of a table field.

**Returns:**
int - the type of a table field.
### getTitle() {#getTitle--}
```
public final String getTitle()
```


Gets the title of the field in a table.

**Returns:**
java.lang.String - the title of the field in a table.
### getWidth() {#getWidth--}
```
public final int getWidth()
```


Gets the width in points of the field column in a table.

**Returns:**
int - the width in points of the field column in a table.
### getWrapHeader() {#getWrapHeader--}
```
public final boolean getWrapHeader()
```


Gets a value indicating whether the table column heading can wrap to multiple lines, or if it should be truncated when it exceeds the column width.

**Returns:**
boolean - a value indicating whether the table column heading can wrap to multiple lines, or if it should be truncated when it exceeds the column width.
### getWrapText() {#getWrapText--}
```
public final boolean getWrapText()
```


Gets a value indicating whether the column text can wrap to multiple lines, or if it should be truncated when it exceeds the column width.

--------------------

Supported by MSP 2010 version and later.

**Returns:**
boolean - a value indicating whether the column text can wrap to multiple lines, or if it should be truncated when it exceeds the column width.
### setAlignData(int value) {#setAlignData-int-}
```
public final void setAlignData(int value)
```


Sets the alignment of data in a table field.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the alignment of data in a table field. |

### setAlignTitle(int value) {#setAlignTitle-int-}
```
public final void setAlignTitle(int value)
```


Sets the alignment of the title in a table field.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the alignment of the title in a table field. |

### setField(int value) {#setField-int-}
```
public final void setField(int value)
```


Sets the type of a table field.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the type of a table field. |

### setTitle(String value) {#setTitle-java.lang.String-}
```
public final void setTitle(String value)
```


Sets the title of the field in a table.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | the title of the field in a table. |

### setWidth(int value) {#setWidth-int-}
```
public final void setWidth(int value)
```


Sets the width in points of the field column in a table.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the width in points of the field column in a table. |

### setWrapHeader(boolean value) {#setWrapHeader-boolean-}
```
public final void setWrapHeader(boolean value)
```


Sets a value indicating whether the table column heading can wrap to multiple lines, or if it should be truncated when it exceeds the column width.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | a value indicating whether the table column heading can wrap to multiple lines, or if it should be truncated when it exceeds the column width. |

### setWrapText(boolean value) {#setWrapText-boolean-}
```
public final void setWrapText(boolean value)
```


Sets a value indicating whether the column text can wrap to multiple lines, or if it should be truncated when it exceeds the column width.

--------------------

Supported by MSP 2010 version and later.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | a value indicating whether the column text can wrap to multiple lines, or if it should be truncated when it exceeds the column width. |

