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

# IImageWindow

> Control the FlexiCapture image window from scripts with IImageWindow: set image scale, docking, and toolbar visibility, and step through page controls.

## What it does

Represents the image window.

## Methods

| **Definition**                                                                                    | **Description**                                              |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| EnsureRectVisible( imageRect : [IShellRect](/flexi-capture/appendix/scripts-shell/i-shell-rect) ) | Moves the scroll box to make the specified rectangle visible |

## 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>The coordinates of the left upper corner of the main window are (0, 0).</p><p>If the size of the client area is smaller than the size of the TotalRect, the image window will have scrollbars.</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>IImageWindow</strong> relative to <a href="/flexi-capture/appendix/scripts-shell/iformwindow">IFormWindow</a> in the document editor</p></td></tr><tr><td><p>DocumentEditor</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/idocumenteditor">IDocumentEditor</a></p></td><td><p>Read-only</p></td><td><p>The document editor</p></td></tr><tr><td><p>FirstPage</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/ipagecontrol">IPageControl</a></p></td><td><p>Read-only</p></td><td><p>The first 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>ImageScale</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 image scale. The range of admissible values is from 1/8 to 8.</p></td></tr><tr><td><p>IsDocked</p></td><td><p>bool</p></td><td><p>Read/write</p></td><td><p>Specifies whether the image window is docked</p></td></tr><tr><td><p>LastPage</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/ipagecontrol">IPageControl</a></p></td><td><p>Read-only</p></td><td><p>The last page</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 size of the <strong>IImageWindow</strong> window (numerator) to the size of the <a href="/flexi-capture/appendix/scripts-shell/idocumenteditor">IDocumentEditor</a> window (denominator).</p><p>If the <strong>Docking</strong> property value is <strong>DT\_Top</strong> or <strong>DT\_Bottom</strong>, the ratio between the y-extents is measured.</p><p>Otherwise, the ratio between the x-extents is measured.</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>ShowBWImages</p></td><td><p>bool</p></td><td><p>Read/write</p></td><td><p>Specifies whether to show a black-and-white image</p></td></tr><tr><td><p>ShowToolbar</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/irational">IShellRational</a></p></td><td><p>Read/write</p></td><td><p>Specifies whether to show the toolbar</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 area occupied by all page images</p></td></tr></tbody></table>
