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

# RegExpDictionaryDescription オブジェクトの SetText メソッド

> ABBYY FineReader Engine API の RegExpDictionaryDescription オブジェクトの SetText メソッド — 辞書語が一致する必要のある正規表現を設定します。

このメソッドは、辞書語が一致する必要のある正規表現を設定します。

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

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

```cpp theme={null}
HRESULT SetText( BSTR NewValue );
```

### C\#

```csharp theme={null}
void SetText( string NewValue );
```

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

```vb theme={null}
Sub SetText(NewValue As String)
```

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

NewValue

\[in] この変数には正規表現が格納されます。たとえば、正規表現 \[0-9]+ は、1つ以上の数字で構成される「単語」を辞書が受け入れることを指定します。

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

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

<div id="see-also">
  ## 関連項目
</div>

[RegExpDictionaryDescription](/ja/fine-reader/engine/api-reference/language-related-objects/regexpdictionarydescription)

[ABBYY FineReader Engine の正規表現を使用した作業](/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-regular-expressions)
