    

 ## On this page

  

 

 # setColWidth

 Last update: 18.06.2026 

public [setColWidth](set-col-width.md)(col: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), width: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* sets the width of a column

#### Parameters

colthe index of the column whose width is being set (0-based index)widththe new width of the column