---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/displaytextformatter
---

# DisplayTextFormatter

## Overview

`DisplayTextFormatter` is a class in Aspose.Cells FOSS for C++.

Internal static helper for formatting display text of cell values.

This class declares 3 methods for DisplayTextFormatter objects in C++ programs.
Available methods include: `DisplayTextFormatter`, `FormatDisplayValue`, `FormatStringValue`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `DisplayTextFormatter()` | Calls DisplayTextFormatter on this DisplayTextFormatter instance. |
| `FormatStringValue(value: CellValue)` → `std::string` | Formats a raw cell value into its invariant-culture string representation (used when no style applies). |
| `FormatDisplayValue(value: CellValue, style: Core::StyleValue, workbookCulture: std::locale)` → `std::string` | Formats a cell value for display using the given style and workbook culture. Applies number formats, date formats, text formats, and fraction formats as appropriate. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)