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

```
public final class TocInfo extends Object
```

Represents table of contents info.

## Constructors

| Constructor | Description |
| --- | --- |
| [TocInfo](#TocInfo--) | Initializes a new instance of the {@code TocInfo} class. |

## Methods

| Method | Description |
| --- | --- |
| [getColumnInfo](#getColumnInfo--) | Gets column info. |
| [getCopyToOutlines](#getCopyToOutlines--) | Gets or sets is TOC copied to outlines. |
| [getFormatArray](#getFormatArray--) | Gets format array for table of contents. |
| [getFormatArrayLength](#getFormatArrayLength--) | Gets format array length |
| [getLevelIndentation](#getLevelIndentation--) | Get Level indentation |
| [getLineDash](#getLineDash--) | Gets or sets TOC line dash. |
| [getPageNumbersPrefix](#getPageNumbersPrefix--) | Gets is prefix before page number. |
| [getTitle](#getTitle--) | Gets table of contents title. |
| [isCountTocPages](#isCountTocPages--) | Gets is count or passed toc pages. |
| [isShowPageNumbers](#isShowPageNumbers--) | Gets is show page numbers at Toc. |
| [setColumnInfo](#setColumnInfo-com.aspose.pdf.ColumnInfo-) | Sets column info. |
| [setCopyToOutlines](#setCopyToOutlines-boolean-) | Gets or sets is TOC copied to outlines. |
| [setCountTocPages](#setCountTocPages-boolean-) | Sets is count or passed toc pages. |
| [setFormatArray](#setFormatArray-com.aspose.pdf.LevelFormat:A-) | Sets format array for table of contents. |
| [setFormatArrayLength](#setFormatArrayLength-int-) | Sets format array length |
| [setLevelIndentation](#setLevelIndentation-int-) | Set Level indentation |
| [setLineDash](#setLineDash-int-) | Gets or sets TOC line dash. |
| [setPageNumbersPrefix](#setPageNumbersPrefix-java.lang.String-) | Sets is prefix before page number. |
| [setShowPageNumbers](#setShowPageNumbers-boolean-) | Sets is show page numbers at Toc. |
| [setTitle](#setTitle-com.aspose.pdf.TextFragment-) | Sets table of contents title. |

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

Initializes a new instance of the {@code TocInfo} class.

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

Gets column info.

**Returns:**
ColumnInfo instance

### getCopyToOutlines {#getCopyToOutlines--}
```
public final boolean getCopyToOutlines()
```

Gets or sets is TOC copied to outlines.

**Returns:**
boolean value

### getFormatArray {#getFormatArray--}
```
public final LevelFormat [] getFormatArray()
```

Gets format array for table of contents.

**Returns:**
LevelFormat array

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

Gets format array length

**Returns:**
boolean value

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

Get Level indentation

**Returns:**
int value

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

Gets or sets TOC line dash.

**Returns:**
TabLeaderType value

### getPageNumbersPrefix {#getPageNumbersPrefix--}
```
public final String getPageNumbersPrefix()
```

Gets is prefix before page number.

**Returns:**
String value

### getTitle {#getTitle--}
```
public final TextFragment getTitle()
```

Gets table of contents title.

**Returns:**
TextFragment instance

### isCountTocPages {#isCountTocPages--}
```
public final boolean isCountTocPages()
```

Gets is count or passed toc pages.

**Returns:**
boolean value

### isShowPageNumbers {#isShowPageNumbers--}
```
public final boolean isShowPageNumbers()
```

Gets is show page numbers at Toc.

**Returns:**
boolean value

### setColumnInfo {#setColumnInfo-com.aspose.pdf.ColumnInfo-}
Sets column info.

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

Gets or sets is TOC copied to outlines.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | boolean value |

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

Sets is count or passed toc pages.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | boolean value |

### setFormatArray {#setFormatArray-com.aspose.pdf.LevelFormat:A-}
Sets format array for table of contents.

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

Sets format array length

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | boolean value |

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

Set Level indentation

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | int value |

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

Gets or sets TOC line dash.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | TabLeaderType value |

### setPageNumbersPrefix {#setPageNumbersPrefix-java.lang.String-}
Sets is prefix before page number.

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

Sets is show page numbers at Toc.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | boolean value |

### setTitle {#setTitle-com.aspose.pdf.TextFragment-}
Sets table of contents title.
