Sets the data of the cell, represented by this object.
Namespace: com.mindfusion.spreadsheet
Package: com.mindfusion.spreadsheet
Java Copy Code |
---|
public void setData ( |
The new data of the cell.
If value represents a formula, this is the column offset of all relative cell references. Otherwise, this value is ignored.
If value represents a formula, this is the row offset of all relative cell references. Otherwise, this value is ignored.
If value is a string, starting with an equal sign (=), it is interpreted as a formula. To specify a string, starting with an equal sign as cell data, prefix the string with a single apostrophe ('). The parameters dcolumn and drow can be used to offset all relative cell references in the formula. For example, the following call setData("=A1", 1, 2) will actually set the formula "=B3" as data in the cell.
JSpreadsheet Programmer's Guide | © 2024 MindFusion |