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

# TextAndBackgroundColorModeEnum

> ABBYY FineReader Engine API の TextAndBackgroundColorModeEnum — PDF または PDF/A へのエクスポート時に元のテキスト色と背景色を保持するモード。

TextAndBackgroundColorModeEnum 列挙定数は、PDF (PDF/A) 形式へのエクスポート時に元のテキスト色と背景色を保持するモードの定義に使用されます。

```
typedef enum {
 TBCM_Keep,
 TBCM_DontKeep,
 TBCM_Auto
} TextAndBackgroundColorModeEnum;
```

<div id="elements">
  ## 要素
</div>

| 名前             | 説明                                                                                                                                                                                                                                                                                                                                                       |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| TBCM\_Auto     | [IPDFExportParams::Colority](/ja/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportparams#colority) プロパティの値に応じて、元の色を保持するモードを選択します。[IPDFExportParams::Colority](/ja/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportparams#colority) が PCM\_KeepColority の場合は元の色が保持され、それ以外の場合は出力ファイルで色は保持されません。 |
| TBCM\_DontKeep | [IPDFExportParams::Colority](/ja/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportparams#colority) が色を保持するように設定されていても、元のテキスト色と背景色は保持しません。                                                                                                                                                                                   |
| TBCM\_Keep     | 出力ファイルで元のテキスト色と背景色を保持します。色は [IPDFExportParams::Colority](/ja/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportparams#colority) の値に関係なく保持されます。                                                                                                                                                                               |

<div id="used-in">
  ## 使用先
</div>

[IPDFExportFeatures::TextAndBackgroundColorMode](/ja/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportfeatures#textandbackgroundcolormode)
