Skip to main content
Row

CellValue.TextValue Property

Returns a string contained in a cell.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

public string TextValue { get; }

Property Value

Type Description
String

A String value specifying the text value of a cell.

Remarks

Use the TextValue property to obtain the text value contained in a cell. To check whether the cell value is of the text type, use the CellValue.IsText or CellValue.Type property. If a cell value type is other than text, the TextValue property returns null (Nothing in VB). To get a string that specifies a cell value of any type as it is displayed in the cell, use the Cell.DisplayText property.

For more information on cell values, refer to the Cell Data Types document.

The following code snippets (auto-collected from DevExpress Examples) contain references to the TextValue property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also