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

# IDocumentsWindow

> Script the FlexiCapture documents window through IDocumentsWindow: find document and page items, scroll to a rectangle, and read selected or focused items.

## What it does

The window for displaying documents in **Thumbnails View** or in **Details View**.

## Methods

<table width="100%"><thead><tr><th><p><strong>Definition</strong></p></th><th><p><strong>Description</strong></p></th></tr></thead><tbody><tr><td><p>EnsureRectVisible( imageRect : <a href="/flexi-capture/appendix/scripts-shell/i-shell-rect">IShellRect</a> )</p></td><td><p>Moves the scroll box to make the specified rectangle visible</p></td></tr><tr><td><p>FindDocumentItem( document : <a href="/flexi-capture/appendix/scripts/idocument">IDocument</a> ) : <a href="/flexi-capture/appendix/scripts-shell/idocumentitem">IDocumentItem</a></p></td><td><p>Retrieves <a href="/flexi-capture/appendix/scripts-shell/idocumentitem">IDocumentItem</a> by the <a href="/flexi-capture/appendix/scripts/idocument">IDocument object of ControllerInterop</a></p></td></tr><tr><td><p>FindPageItem( page : <a href="/flexi-capture/appendix/scripts/ipage">IPage</a> ) : <a href="/flexi-capture/appendix/scripts-shell/ipageitem">IPageItem</a></p></td><td><p>Retrieves <a href="/flexi-capture/appendix/scripts-shell/ipageitem">IPageItem</a> by the <a href="/flexi-capture/appendix/scripts/ipage">IPage object of ControllerInterop</a>.</p><p><strong>Note: </strong> If the <a href="/flexi-capture/appendix/scripts-shell/idocumentitem">IDocumentItem</a>, that contains the IPageItem you are looking for is collapsed (i.e. if Expanded=false), no IPageItem will be found.</p></td></tr></tbody></table>

## Properties

<table width="100%"><thead><tr><th><p><strong>Name</strong></p></th><th><p><strong>Type</strong></p></th><th><p><strong>Access</strong></p></th><th><p><strong>Description</strong></p></th></tr></thead><tbody><tr><td><p>ClientRect</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/i-shell-rect">IShellRect</a></p></td><td><p>Read-only</p></td><td><p>The rectangle of the client area (in window coordinates).</p><p>Coordinates of the left upper corner of the main window are (0, 0).</p></td></tr><tr><td><p>Docking</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/tdockingtype">TDockingType</a></p></td><td><p>Read/write</p></td><td><p>The position of <strong>IDocumentsWindow</strong> in the document editor</p></td></tr><tr><td><p>FocusedItem</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/idocumentitem">IDocumentItem</a></p></td><td><p>Read-only</p></td><td><p>Focused document. If the focus is placed on a page, the property returns the document containing this page.</p></td></tr><tr><td><p>Handle</p></td><td><p>int</p></td><td><p>Read-only</p></td><td><p>The handle of the window</p></td></tr><tr><td><p>Items</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/idocumentitems">IDocumentItems</a></p></td><td><p>Read-only</p></td><td><p>The collection of documents</p></td></tr><tr><td><p>Ratio</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/irational">IShellRational</a></p></td><td><p>Read/write</p></td><td><p>The ratio of the window size to the size of the parent window</p></td></tr><tr><td><p>ScrollPos</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/ipoint">IPoint</a></p></td><td><p>Read/write</p></td><td><p>The position of the scroll box</p></td></tr><tr><td><p>SelectedItems</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/idocumentitems">IDocumentItems</a></p></td><td><p>Read-only</p></td><td><p>Selected documents</p></td></tr><tr><td><p>TaskWindow</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/itaskwindow">ITaskWindow</a></p></td><td><p>Read-only</p></td><td><p>The task window</p></td></tr><tr><td><p>TotalRect</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/i-shell-rect">IShellRect</a></p></td><td><p>Read-only</p></td><td><p>The rectangle of the whole window</p></td></tr></tbody></table>
