---
title: "columnWidth(forColumnContentWidth:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbrowser/columnwidth(forcolumncontentwidth:)"
---

# columnWidth(forColumnContentWidth:)

Returns the column width for the width of the given column’s content.

## Declaration

```swift
func columnWidth(forColumnContentWidth columnContentWidth: CGFloat) -> CGFloat
```

## Parameters

- `columnContentWidth`: The width of the column’s content (the width of the matrix in the column).

## Return Value

Return Value The width of the column (the width of the entire scrolling text view).

## Discussion

Discussion For example, to guarantee that 16 pixels of your browser cell are always visible, call: [browser setMinColumnWidth: [browser columnWidthForColumnContentWidth:16]]

## See Also

### Sizing

- [removeSavedColumns(withAutosaveName:)](appkit/nsbrowser/removesavedcolumns(withautosavename:).md)
- [columnsAutosaveName](appkit/nsbrowser/columnsautosavename-swift.property.md)
- [NSBrowser.ColumnsAutosaveName](appkit/nsbrowser/columnsautosavename-swift.typealias.md)
- [columnContentWidth(forColumnWidth:)](appkit/nsbrowser/columncontentwidth(forcolumnwidth:).md)
- [columnResizingType](appkit/nsbrowser/columnresizingtype-swift.property.md)
- [prefersAllColumnUserResizing](appkit/nsbrowser/prefersallcolumnuserresizing.md)
- [width(ofColumn:)](appkit/nsbrowser/width(ofcolumn:).md)
- [setWidth(_:ofColumn:)](appkit/nsbrowser/setwidth(_:ofcolumn:).md)
- [defaultColumnWidth()](appkit/nsbrowser/defaultcolumnwidth().md)
- [setDefaultColumnWidth(_:)](appkit/nsbrowser/setdefaultcolumnwidth(_:).md)
- [rowHeight](appkit/nsbrowser/rowheight.md)
