> ## 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.

# ISelection

> ISelection reflects the selection in a FlexiCapture station window: read selected documents and pages as item collections or IDocument and IPage objects.

## What it does

Represents the selection of documents or pages.

## Properties

| **Name**      | **Type**                                                                     | **Access** | **Description**                                                                                                    |
| ------------- | ---------------------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------ |
| DocumentItems | [IDocumentItems](/flexi-capture/appendix/scripts-shell/idocumentitems)       | Read-only  | The selected documents                                                                                             |
| Documents     | [IDocumentsCollection](/flexi-capture/appendix/scripts-shell/idoccollection) | Read-only  | Objects of the [IDocument](/flexi-capture/appendix/scripts/idocument) type corresponding to the selected documents |
| PageItems     | [IPageItems](/flexi-capture/appendix/scripts-shell/ipageitems)               | Read-only  | The selected pages                                                                                                 |
| Pages         | [IPagesCollection](/flexi-capture/appendix/scripts-shell/ipagecollection)    | Read-only  | Objects of the [IPage](/flexi-capture/appendix/scripts/ipage) type corresponding to the selected pages             |
| Type          | [TSelectionType](/flexi-capture/appendix/scripts-shell/tselectiontype)       | Read-only  | The selection type                                                                                                 |

<Note>
  If the document is collapsed, the **DocumentItems\[i].PageItems.Count** property returns "0".
</Note>
