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

# On Region Change

> On Region Change は、FlexiCapture の Image ウィンドウで field Region が変更される前に実行されます。AllowChangeRegion Parameter でこの変更をブロックできます。

<div id="when-it-is-launched">
  ## 起動タイミング
</div>

スクリプトは、Image ウィンドウ内の領域が変更される前に起動されます。

* **AllowChangeRegion.Value** プロパティが **true** に設定されている場合、スクリプトの実行後に領域が変更されます。
* **AllowChangeRegion.Value** プロパティが **false** に設定されている場合、領域は変更されません。

既定では、**AllowChangeRegion** パラメーターの値は **true** です。

<div id="parameters">
  ## パラメーター
</div>

<table width="100%">
  <thead>
    <tr>
      <th>
        <p>
          <strong>名前</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>型</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>アクセス</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>説明</strong>
        </p>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <p>AllowChangeRegion</p>
      </td>

      <td>
        <p>
          <a href="/ja/flexi-capture/appendix/scripts-shell/iboolean">IBoolean</a>
        </p>
      </td>

      <td>
        <p>読み取り/書き込み</p>
      </td>

      <td>
        <p>領域を変更するかどうかを指定します。</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>Context</p>
      </td>

      <td>
        <p>
          <a href="/ja/flexi-capture/appendix/scripts-shell/ifieldcontrol">IFieldRegionControl</a>
        </p>
      </td>

      <td>
        <p>読み取り/書き込み</p>
      </td>

      <td>
        <p>領域です。</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>NewRegionParam</p>
      </td>

      <td>
        <p>
          <a href="/ja/flexi-capture/appendix/scripts-shell/i-shell-rects">IShellRects</a>
        </p>
      </td>

      <td>
        <p>読み取り/書き込み</p>
      </td>

      <td>
        <p>領域の矩形です。テーブルの場合は、テーブル領域全体が渡されます。</p>

        <p>
          <strong>注: </strong> 領域のコンテナを変更した場合、このコンテナの新しい領域が返され、子要素の新しい領域は返されません。子要素の領域を変更した場合は、その子要素の新しい領域のみが返されます。テーブルでは、列または行の領域を変更した場合でも、常にテーブル領域が返されます。
        </p>
      </td>
    </tr>
  </tbody>
</table>
