KDCalc Class Library

IComInterop.SetValue Method (Int32, Int32, String)

Set the value of a cell on the active worksheet.

void SetValue(
   int row,
   int col,
   string val
);

Parameters

row
row of the desired cell
col
column of the desired cell
val
string representative of a number, boolean, or text.

Remarks

Attempts to transform the given value into the most appropriate type, either a number, boolean, or text value. For example "10.32" would be set as a number, "true" would be set as a boolean and "hello" would go in as text. A "" value clears the cell.

See Also

IComInterop Interface | KnowledgeDynamics.KDCalc Namespace | IComInterop.SetValue Overload List