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

# Text オブジェクトの SetCharParams メソッド

このメソッドは、文字グループのパラメーターを設定します。

## 構文

```vb Visual Basic .NET theme={null}
Sub SetCharParams( _
  Pos As Integer, _
  Count As Integer, _
  Params As CharParams, _
  Mask As Integer _
)
```

```cpp C++ theme={null}
HRESULT SetCharParams(
  int          Pos,
  int          Count,
  ICharParams* Params,
  int          Mask
);
```

## パラメーター

**Pos**

\[in] パラメーターを設定する文字グループの先頭文字の、段落内での位置です。0 からテキストの長さまでの範囲で指定する必要があります。

**Count**

\[in] パラメーターを設定する文字の数です。0 以上で、かつ次の条件を満たす必要があります：*Pos + Count \<= テキストの長さ + 1*

**Params**

\[in] この変数は、文字グループに設定する新しいパラメーターを含む [**CharParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/charparams.md) オブジェクトを参照します。有効なオブジェクトを参照している必要があります。

**Mask**

\[in] この変数には、[**CharParamsFlags**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/charparamsflags.md) フラグを OR で任意に組み合わせた値を指定できます。*Params* オブジェクトからコピーするパラメーターを指定します。

## 戻り値

このメソッドに固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連項目

[**Text**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/text.md)

[**CharParamsFlags**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/charparamsflags.md)

[**CharParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/charparams.md)

[**IText::GetCharParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/text-getcharparams.md)
