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

# IFieldControl

> IFieldControl gives scripts access to a document field control on a FlexiCapture form: expand or collapse fields, lock editing, and walk the control tree.

## What it does

Represents a control of the document field.

<Warning>
  The object returns **null** for fields not involved in distributed verification.
</Warning>

## 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>DeviceRect</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 control</p></td></tr><tr><td><p>Field</p></td><td><p><a href="/flexi-capture/appendix/scripts/ifield">IField</a></p></td><td><p>Read-only</p></td><td><p>The document field</p></td></tr><tr><td><p>FieldFullName</p></td><td><p>string</p></td><td><p>Read-only</p></td><td><p>The full name of the field</p></td></tr><tr><td><p>FieldRegionControls</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/i-field-region-controls">IFieldRegionControls</a></p></td><td><p>Read-only</p></td><td><p>The collection of field regions of the document.</p><p>For fields, that do not have regions, <strong>null</strong> is returned.</p></td></tr><tr><td><p>First</p></td><td><p>IFieldControl</p></td><td><p>Read-only</p></td><td><p>The first child control</p></td></tr><tr><td><p>FormWindow</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/iformwindow">IFormWindow</a></p></td><td><p>Read-only</p></td><td><p>The form window</p></td></tr><tr><td><p>IsExpandable</p></td><td><p>bool</p></td><td><p>Read-only</p></td><td><p>If the property is set to <strong>true</strong>, the field can be expanded and collapsed on the form. This property allows you to check whether the field is expandable before applying the <strong>IsExpanded</strong> property to it.</p><p>For group fields, the property is <strong>true</strong>.</p></td></tr><tr><td><p>IsExpanded</p></td><td><p>bool</p></td><td><p>Read/write</p></td><td><p>Retrieves information whether the group field is expanded. Allows you to collapse/expand the field.</p></td></tr><tr><td><p>IsUserReadOnly</p></td><td><p>bool</p></td><td><p>Read/write</p></td><td><p>Specifies whether the field is editable.</p><p>If the property is set to <strong>true</strong>, editing the field is not allowed.</p><p>If the property is set to <strong>false</strong>, the possibility to edit the field depends on the Document Definition settings.</p></td></tr><tr><td><p>Last</p></td><td><p>IFieldControl</p></td><td><p>Read-only</p></td><td><p>The last child control</p></td></tr><tr><td><p>Next</p></td><td><p>IFieldControl</p></td><td><p>Read-only</p></td><td><p>The next control</p></td></tr><tr><td><p>Parent</p></td><td><p>IFieldControl</p></td><td><p>Read-only</p></td><td><p>The parent control</p></td></tr><tr><td><p>Prev</p></td><td><p>IFieldControl</p></td><td><p>Read-only</p></td><td><p>The previous control</p></td></tr><tr><td><p>TextEditor</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/itexteditor">ITextEditor</a></p></td><td><p>Read-only</p></td><td><p>The field editor. For inactive fields, <strong>null</strong> is returned.</p></td></tr></tbody></table>
