.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

CellValue.TextValue Property

Returns a string contained in a cell.

Namespace: DevExpress.Spreadsheet

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


public string TextValue { get; }

Property Value

Type Description

A String value specifying the text value of a cell.


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.

See Also