Gets the SheetView column index for the specified column of the Spread on the displayed page.
Syntax
[JavaScript]
var ret = FpSpread1.GetSheetColIndex(column);
Parameters
- column
- Integer, column index (on the client)
Return Type
Integer, index of the column in the sheet (SheetView object on the server)
Remarks
This method gets the column index of the SheetView object on the server for the specified column of the Spread object on the displayed page on the client. This method is useful when the control is using multiple-line columns mode (row layout).
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 getColIx() { var scindx = FpSpread1.GetSheetColIndex(2); alert("Column index on server is " + scindx); } </SCRIPT> |
See Also
GetSheetRowIndex | Scripting Members