Back to Devexpress

TdxSpreadSheetCell.SetText(string,Boolean) Method

vcl-dxspreadsheetcore-dot-tdxspreadsheetcell-dot-settext-x28-system-dot-string-system-dot-boolean-x29.md

latest1.4 KB
Original Source

TdxSpreadSheetCell.SetText(string,Boolean) Method

Assigns an unformatted text string or formula expression to the cell.

Declaration

delphi
procedure SetText(const AText: string; const AFormulaChecking: Boolean = False); virtual;

Parameters

NameType
ATextstring
AFormulaCheckingBoolean

Remarks

Call this procedure and pass a text string as the AText parameter to assign the string as the cell’s value. Pass True as the optional AFormulaChecking parameter to interpret the specified text string as a formula expression.

Note

A SetText procedure call sets the Style.WordWrap property to True if the assigned text string contains at least one carriage return character.

See Also

TdxSpreadSheetCell.AsString

TdxSpreadSheetCell.SetAsRTF

TdxSpreadSheetCell Class

TdxSpreadSheetCell Members

dxSpreadSheetCore Unit