# GetLeftColIndex

Use the GetLeftColIndex method to get the column number of the cell in the top left corner of the sheet. Learn its syntax and parameters in documentation.

## Content

Gets the column number of the cell in the top left corner of the sheet.

## Syntax

[JavaScript]

```javascript
var ret = FpSpread1.GetLeftColIndex();
```

## Parameters

None

## Return Type

Integer, index of the left column

## Remarks

This method returns the index of the left column.

## Example

This is a sample that contains the method. On the client side, the script that contains the method would look like this:

```javascript
<script type="text/javascript">
   function getHValue() {
       var ss = document.getElementById("FpSpread1");
       var totalRow = ss.GetLeftColIndex();
   }
</script>
```

## See Also

[GetTopRowIndex](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-GetTopRowIndex)
[SetValue](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-SetValue)
[Scripting Members](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members)