---
title: "ColumnInfo"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/columninfo/"
product: "Aspose.PDF for Java API Reference"
description: "This class represents a column's info."
---

**Inheritance:**
java.lang.Object, com.aspose.pdf.ColumnInfo

```
public final class ColumnInfo extends Object
```

This class represents a column's info.

## Constructors

| Constructor | Description |
| --- | --- |
| [ColumnInfo](#ColumnInfo--) | Initializes a new instance of the ColumnInfo class. |

## Methods

| Method | Description |
| --- | --- |
| [getColumnCount](#getColumnCount--) | Gets int value that indicates the number of columns. |
| [getColumnSpacing](#getColumnSpacing--) | <p> Gets or sets a string that contains the spacing between columns. The value of each spacing should be separated by blank. The default unit is point, but cm and inch are also supported.For example,"120 2.5cm 1.5inch". </p><hr> <p> If this property is not set, default value 0 will be used for each spacing. </p> |
| [getColumnWidths](#getColumnWidths--) | Gets or sets a string that contains the width of columns. The value of each column should be separated by blank.The default unit is point, but cm, inch and percentage of available width are also supported. For example,"120 2.5cm 1.5inch" |
| [setColumnCount](#setColumnCount-int-) | Sets int value that indicates the number of columns. |
| [setColumnSpacing](#setColumnSpacing-java.lang.String-) | <p> Gets or sets a string that contains the spacing between columns. The value of each spacing should be separated by blank. The default unit is point, but cm and inch are also supported.For example,"120 2.5cm 1.5inch". </p><hr> <p> If this property is not set, default value 0 will be used for each spacing. </p> |
| [setColumnWidths](#setColumnWidths-java.lang.String-) | Gets or sets a string that contains the width of columns. The value of each column should be separated by blank.The default unit is point, but cm, inch and percentage of available width are also supported. For example,"120 2.5cm 1.5inch" |

### ColumnInfo {#ColumnInfo--}
```
public ColumnInfo()
```

Initializes a new instance of the ColumnInfo class.

### getColumnCount {#getColumnCount--}
```
public int getColumnCount()
```

Gets int value that indicates the number of columns.

**Returns:**
column count

### getColumnSpacing {#getColumnSpacing--}
```
public String getColumnSpacing()
```

<p> Gets or sets a string that contains the spacing between columns. The value of each spacing should be separated by blank. The default unit is point, but cm and inch are also supported.For example,"120 2.5cm 1.5inch". </p><hr> <p> If this property is not set, default value 0 will be used for each spacing. </p>

**Returns:**
String value

### getColumnWidths {#getColumnWidths--}
```
public String getColumnWidths()
```

Gets or sets a string that contains the width of columns. The value of each column should be separated by blank.The default unit is point, but cm, inch and percentage of available width are also supported. For example,"120 2.5cm 1.5inch"

**Returns:**
String value

### setColumnCount {#setColumnCount-int-}
```
public void setColumnCount(int value)
```

Sets int value that indicates the number of columns.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | column count |

### setColumnSpacing {#setColumnSpacing-java.lang.String-}
<p> Gets or sets a string that contains the spacing between columns. The value of each spacing should be separated by blank. The default unit is point, but cm and inch are also supported.For example,"120 2.5cm 1.5inch". </p><hr> <p> If this property is not set, default value 0 will be used for each spacing. </p>

### setColumnWidths {#setColumnWidths-java.lang.String-}
Gets or sets a string that contains the width of columns. The value of each column should be separated by blank.The default unit is point, but cm, inch and percentage of available width are also supported. For example,"120 2.5cm 1.5inch"
