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

# 名前付きパラメーター関数

> ABBYY FlexiLayout Studio の SetOutputParameter、NamedParameterExists、GetNamedParameter 関数を使用して、FlexiLayout 間で名前付きパラメーターを渡します。

ABBYY FlexiLayout Studio では、FlexiLayout の出力パラメーターを指定できます。この FlexiLayout を適用すると、その出力パラメーターは次に適用される FlexiLayout に渡されます。

<Note>
  名前付きパラメーターは、メインの FlexiLayout から追加の FlexiLayout に渡すこともできます。
</Note>

ブロックのプロパティ ダイアログの **Expression** field で、出力パラメーターを指定できます。

次のセクションでは、名前付きパラメーターを操作するために使用できる関数について説明します。

<div id="functions-that-set-an-output-parameter">
  ## 出力パラメーターを設定する関数
</div>

次の関数は、出力用の名前付きパラメーターを設定します。

* `SetOutputParameterInt`
* `SetOutputParameterIntArray`
* `SetOutputParameterString`
* `SetOutputParameterStringArray`
* `SetOutputParameterRect`
* `SetOutputParameterRectArray`

<Note>
  出力用の名前付きパラメーターは、FlexiLayout のプロパティ ダイアログで設定することもできます。
</Note>

<div id="functions-that-check-whether-a-named-parameter-exists">
  ## 名前付きパラメーターの存在を確認する関数
</div>

次の関数は、出力用の名前付きパラメーターが存在するかどうかを確認します。

* `NamedParameterIntExists`
* `NamedParameterIntArrayExists`
* `NamedParameterStringExists`
* `NamedParameterStringArrayExists`
* `NamedParameterRectExists`
* `NamedParameterRectArrayExists`

<div id="functions-that-get-a-named-parameter">
  ## 名前付きパラメーターを取得する関数
</div>

以下の関数は、名前付きパラメーターを取得します。

* `GetNamedParameterInt`
* `GetNamedParameterIntArray`
* `GetNamedParameterString`
* `GetNamedParameterStringArray`
* `GetNamedParameterRect`
* `GetNamedParameterRectArray`

例:

```text theme={null}
Rect outputRect;

if
GetNamedParameterRectArray( "RectArray" ).Count() > 1
then
outputRect = Rect( 394*dot, 816*dot, 2103*dot, 2247*dot ); //[, , , ]
else
outputRect = Rect( 591*dot, 1078*dot, 2453*dot, 1219*dot ); //[, , , ]
OutputRegion = outputRect;
```
