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

# SetBlockLayerType メソッド

> ABBYY FineReader Engine API の RasterPictureBlock Object の SetBlockLayerType メソッド — IBlock::BlockLayerType プロパティを介してブロックのレイヤー（背景、前景、または非表示）を設定します。

このメソッドは、ブロックのレイヤーを変更します ([IBlock::BlockLayerType](/ja/fine-reader/engine/api-reference/layout-related-objects/block#blocklayertype) プロパティを設定します) 。

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

```cpp theme={null}
HRESULT SetBlockLayerType( BlockLayerTypeEnum Value );
```

### C\#

```csharp theme={null}
void SetBlockLayerType( BlockLayerTypeEnum Value );
```

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

```vb theme={null}
Sub SetBlockLayerType(Value As BlockLayerTypeEnum)
```

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

値

\[in] このブロックに設定するレイヤーを指定します。[BlockLayerTypeEnum](/ja/fine-reader/engine/api-reference/enumerations/blocklayertypeenum) の定数のいずれかを指定してください。

<div id="return-values">
  ## 戻り値
</div>

このメソッド固有の戻り値はありません。代わりに、[ABBYY FineReader Engine 関数の標準戻り値](/ja/fine-reader/engine/api-reference/return-codes)が返されます。

<div id="remarks">
  ## 注記
</div>

このメソッドは、次のオブジェクトで使用できます。

* Layout およびブロック:
  * [RasterPictureBlock](/ja/fine-reader/engine/api-reference/layout-related-objects/rasterpictureblock)
  * [VectorPictureBlock](/ja/fine-reader/engine/api-reference/layout-related-objects/vectorpictureblock)
