
**Inheritance:**
java.lang.Object
```
public abstract class ViewColumn
```

Represents a column in a project view.
## Methods

| Method | Description |
| --- | --- |
| [getField()](#getField--) | Gets column field. |
| [getName()](#getName--) | Gets the column name. |
| [getStringAlignment()](#getStringAlignment--) | Gets alignment of the text (can be one of the values of the [HorizontalStringAlignment](../../com.aspose.tasks/horizontalstringalignment) enumeration). |
| [getTextStyleModificationCallback()](#getTextStyleModificationCallback--) | Gets the callback which can be used to customize the appearance of the column's cells. |
| [getWidth()](#getWidth--) | Gets the column width. |
| [setField(int value)](#setField-int-) | Sets column field. |
| [setStringAlignment(int value)](#setStringAlignment-int-) | Sets alignment of the text (can be one of the values of the [HorizontalStringAlignment](../../com.aspose.tasks/horizontalstringalignment) enumeration). |
| [setTextStyleModificationCallback(ITextStyleModificationCallback value)](#setTextStyleModificationCallback-com.aspose.tasks.ITextStyleModificationCallback-) | Sets the callback which can be used to customize the appearance of the column's cells. |
### getField() {#getField--}
```
public abstract int getField()
```


Gets column field. `Field`([getField()](../../com.aspose.tasks/viewcolumn\#getField--)/[setField(int)](../../com.aspose.tasks/viewcolumn\#setField-int-)).

**Returns:**
int - column field.
### getName() {#getName--}
```
public final String getName()
```


Gets the column name.

**Returns:**
java.lang.String - the column name.
### getStringAlignment() {#getStringAlignment--}
```
public final int getStringAlignment()
```


Gets alignment of the text (can be one of the values of the [HorizontalStringAlignment](../../com.aspose.tasks/horizontalstringalignment) enumeration).

**Returns:**
int - alignment of the text (can be one of the values of the [HorizontalStringAlignment](../../com.aspose.tasks/horizontalstringalignment) enumeration).
### getTextStyleModificationCallback() {#getTextStyleModificationCallback--}
```
public final ITextStyleModificationCallback getTextStyleModificationCallback()
```


Gets the callback which can be used to customize the appearance of the column's cells.

**Returns:**
[ITextStyleModificationCallback](../../com.aspose.tasks/itextstylemodificationcallback) - the callback which can be used to customize the appearance of the column's cells.
### getWidth() {#getWidth--}
```
public final int getWidth()
```


Gets the column width.

**Returns:**
int - the column width.
### setField(int value) {#setField-int-}
```
public abstract void setField(int value)
```


Sets column field. `Field`([getField()](../../com.aspose.tasks/viewcolumn\#getField--)/[setField(int)](../../com.aspose.tasks/viewcolumn\#setField-int-)).

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | column field. |

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


Sets alignment of the text (can be one of the values of the [HorizontalStringAlignment](../../com.aspose.tasks/horizontalstringalignment) enumeration).

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | alignment of the text (can be one of the values of the [HorizontalStringAlignment](../../com.aspose.tasks/horizontalstringalignment) enumeration). |

### setTextStyleModificationCallback(ITextStyleModificationCallback value) {#setTextStyleModificationCallback-com.aspose.tasks.ITextStyleModificationCallback-}
```
public final void setTextStyleModificationCallback(ITextStyleModificationCallback value)
```


Sets the callback which can be used to customize the appearance of the column's cells.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [ITextStyleModificationCallback](../../com.aspose.tasks/itextstylemodificationcallback) | the callback which can be used to customize the appearance of the column's cells. |

