This method represents a cell on the client side and allows you to get or set various cell properties.
Syntax
[JavaScript]
FpSpread1.Cells(r,c);
Parameters
- row
- Integer, row index
- column
- Integer, column index
Return Type
None
Remarks
This method allows you to get or set various cell properties such as Value, BackColor, ForeColor, TabStop, HorizontalAlign, VerticalAlign, Locked, Font_Name, Font_Size, Font_Bold, Font_Italic, Font_Overline, Font_Strikeout, and Font_Underline. Select the Object Model menu option in the NewFeatures sample project (under the product folder) to see code samples for the cell properties.
Example
This is a sample that contains the method. On the client side, the script that contains the method would look like this:
JavaScript | Copy Code |
---|---|
<SCRIPT language=javascript> function onCancelButtonClick() { var spread = FpSpread("FpSpread1"); spread.Cells(1,2).SetValue("123"); // sets the cell property } </SCRIPT> |
See Also
Update | UpdatePostBackData | Scripting Members