メインコンテンツへスキップ
ABBYY FlexiLayout Studio では、FlexiLayout の出力パラメーターを指定できます。この FlexiLayout を適用すると、その出力パラメーターは次に適用される FlexiLayout に渡されます。
名前付きパラメーターは、メインの FlexiLayout から追加の FlexiLayout に渡すこともできます。
ブロックのプロパティ ダイアログの Expression field で、出力パラメーターを指定できます。 次のセクションでは、名前付きパラメーターを操作するために使用できる関数について説明します。

出力パラメーターを設定する

  • SetOutputParameterInt
  • SetOutputParameterIntArray
  • SetOutputParameterString
  • SetOutputParameterStringArray
  • SetOutputParameterRect
  • SetOutputParameterRectArray
これらの関数は、出力用の名前付きパラメーターを設定します。
出力用の名前付きパラメーターは、FlexiLayout のプロパティ ダイアログで設定することもできます。

名前付きパラメーターの存在を確認する

  • NamedParameterIntExists
  • NamedParameterIntArrayExists
  • NamedParameterStringExists
  • NamedParameterStringArrayExists
  • NamedParameterRectExists
  • NamedParameterRectArrayExists
これらの関数は、出力用の名前付きパラメーターが存在するかどうかを確認します。

名前付きパラメーターを取得する

  • GetNamedParameterInt
  • GetNamedParameterIntArray
  • GetNamedParameterString
  • GetNamedParameterStringArray
  • GetNamedParameterRect
  • GetNamedParameterRectArray
これらの関数は、名前付きパラメーターを取得します。 例:
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;