# SpreadsheetGetColumnWidth

Retrieves the width of a column in a spreadsheet.

## Method Signature

```
SpreadsheetGetColumnWidth(spreadsheetObj=[any], column=[any], returnWidthInPixels=[any])
```

### Arguments

| Argument              | Type      | Required | Description                                                                          | Default |
| --------------------- | --------- | -------- | ------------------------------------------------------------------------------------ | ------- |
| `spreadsheetObj`      | `ANY`     | `true`   | The spreadsheet object.                                                              |         |
| `column`              | `NUMERIC` | `true`   | The column number (1-based).                                                         |         |
| `returnWidthInPixels` | `BOOLEAN` | `false`  | If true, returns width in pixels; if false, returns width in points (default: true). |         |

## Examples

Get column width:

```js
// Get width of column A
var spreadsheet = SpreadsheetNew();
SpreadsheetSetColumnWidth( spreadsheet, 1, 150 );

var width = SpreadsheetGetColumnWidth( spreadsheet, 1 );
println( "Column width: " & width );
```

## Related

* [SpreadsheetSetColumnWidth()](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-spreadsheet/reference/built-in-functions/spreadsheetsetcolumnwidth) - Set width
* [SpreadsheetAddColumn()](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-spreadsheet/reference/built-in-functions/spreadsheetaddcolumn) - Add column
* [SpreadsheetGetColumnCount()](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-spreadsheet/reference/built-in-functions/spreadsheetgetcolumncount) - Get column count
