> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LinkToSection Object

This object represents a link between the class and the Document Definition section or section variant. After a link has been set up, pages of the linked class may only be found in the specified section. You can also set the role of the page in the section: first page or any page.

Please note that links to section variants are only supported for non-invoice Document Definitions. For invoice projects you may create only links to sections.

## Properties

| **Name** | **Type** | **Description** |
| - | - | - |
| **PageRole** | [**PageRoleEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pageroleenum.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | Specifies if the page may be only the first in the section or any page of the section. |
| **Section** | [**SectionDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/sectiondefinition.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | Specifies the section of a Document Definition. |
| **VariantName** | [**String**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md), read-only | Stores the name of the section variant. Unavailable for invoice projects. |

## Related objects

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/LinkToSection.gif?s=c20c299380812477f1346d908c72bb50)

## Output parameter

This object is the output parameter of the [**AddNew**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/linkstosections-addnew.md) and [**Item**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/item.md) methods of the [**LinksToSections**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/linkstosections.md) object.

## Input parameter

This object is the input parameter of the [**Delete**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/delete.md) method of the [**LinksToSections**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/linkstosections.md) object.

## Samples

This object is used in the following code samples: [Classification](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#classification).

## See also

[**LinksToSections**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/linkstosections.md)

[Working with Properties](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md)
