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

# Region オブジェクト（IRegion インターフェイス）

これは補助オブジェクトです。ABBYY FlexiCapture SDK のブロックの領域に関する情報を格納するためのものです。

*領域*は、上下に並べて配置された矩形の集合として表されます。各矩形は、下側の矩形の上辺が上側の矩形の下辺と一致するように (つまり矩形同士が重ならないように) 配置されます。ABBYY FlexiCapture SDK における正しい領域と正しくない領域の例を次の図に示します。

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/Regions.gif?s=74f94819d4b8b683407f3ea8bc4d5c45)

空の **Region** オブジェクトは [**IEngine::CreateRegion**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createxxx.md) メソッドを呼び出して作成できます。作成後、**AddRect** メソッドを呼び出して矩形を 1 つずつ追加します。**Region** オブジェクトは上から下への順序での追加に最適化されており、この方法が最も高速であるため、矩形は上から下の順に追加することをお勧めします。

## Properties

| **Name** | **型** | **Description** |
| - | - | - |
| [**Bottom**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region-bottom.md) | [**Integer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)、読み取り専用 | 指定された矩形の下端の座標を返します。 |
| **BoundingRectangle** | [**Rectangle**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/rectangle.md)、[読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | 領域の最小外接矩形を返します。 |
| [**Count**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/count.md) | [**Integer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)、読み取り専用 | 領域内の矩形の数を格納します。 |
| **IsEmpty** | [**Boolean**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)、読み取り専用 | 領域が空かどうかを示します。 |
| [**Left**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region-left.md) | [**Integer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)、読み取り専用 | 指定された矩形の左端の座標を返します。 |
| [**Right**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region-right.md) | [**Integer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)、読み取り専用 | 指定された矩形の右端の座標を返します。 |
| [**Top**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region-top.md) | [**Integer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)、読み取り専用 | 指定された矩形の上端の座標を返します。 |

## メソッド

| **名前** | **説明** |
| - | - |
| [**AddRect**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region-addrect.md) | 領域にエリアを追加します。 |
| [**CopyFrom**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/copyfrom.md) | 現在のオブジェクトのPropertiesを、別のオブジェクトの同様のPropertiesの値で初期化します。 |
| [**HasIntersectionWithRect**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region-hasintersectionwithrect.md) | 指定された矩形と現在の領域に重複領域があるかどうかを確認します。 |
| [**HasIntersectionWithRegion**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region-hasintersectionwithregion.md) | 指定された領域と現在の領域に重複領域があるかどうかを確認します。 |
| [**IsEqual**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region-isequal.md) | 領域が等しいかどうかを確認します。 |
| [**IsPointInRegion**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region-ispointinregion.md) | 指定された点が現在の領域内にあるかどうかを確認します。 |
| [**IsRectInRegion**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region-isrectinregion.md) | 指定された矩形が現在の領域内にあるかどうかを確認します。 |
| [**IsRegionInRegion**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region-isregioninregion.md) | 指定された領域が現在の領域内にあるかどうかを確認します。 |
| [**LoadFromFile**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/loadfromfile.md) | ディスク上のファイルからオブジェクトの内容を復元します。 |
| [**LoadFromMemory**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/loadfrommemory.md) | グローバルメモリからオブジェクトの内容を復元します。 |
| [**MakeEmpty**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region-makeempty.md) | 領域からすべての矩形を削除します。 |
| [**SaveToFile**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/savetofile.md) | オブジェクトの内容をディスク上のファイルに保存します。 |
| [**SaveToMemory**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/savetomemory.md) | オブジェクトの内容をグローバルメモリに保存します。 |

## 出力パラメーター

このオブジェクトは、次のメソッドおよびPropertiesの出力パラメーターです。

* [**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md) オブジェクトの [**CreateRegion**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createxxx.md) メソッド
* [**Block**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/block.md) オブジェクトの **Region** プロパティ
* [**BlockDefinition**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/blockdefinition.md) オブジェクトの **Region** プロパティ
* [**RecognizedCharacterInfo**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/recognizedcharacterinfo.md) オブジェクトの **Region** プロパティ
* [**TextRecognitionParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/textrecognitionparams.md) オブジェクトの **MarkingRegion** プロパティ
* [**ImageModification**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imagemodification.md) オブジェクトの **ClipRegion** プロパティ
* [**TextRegion**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/textregion.md) オブジェクトの **Region** プロパティ

## 入力パラメーター

このオブジェクトは、次のメソッドの入力パラメーターとして使用されます。

* [**Block**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/block.md) オブジェクトの [**MatchBlock**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/block-matchblock.md) メソッドおよび **Region** プロパティ
* [**BlockDefinitions**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/blockdefinitions.md) オブジェクトの [**AddNew**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/blockdefinitions-addnew.md) メソッド
* [**ImageProcessingTools**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingtools.md) オブジェクトの [**FilterColor**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingtools-filtercolor.md)、[**FillRegionWithColor**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingtools-fillregionwithcolor.md)、[**InvertRegion**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingtools-invertregion.md) メソッド
* [**ImageModification**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imagemodification.md) オブジェクトの [**ClipRegion**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imagemodification.md#clipregion) プロパティ
* [**PageDefinition**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/pagedefinition.md) オブジェクトの [**DetectBlocks**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/pagedefinition-detectblocks.md) メソッド

## 関連項目

[Properties の操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md)
