SetColumnWidthInPixels Method


Table Section Data Set Column Width In Pixels Method

This sets a column's width in logical pixels

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void SetColumnWidthInPixels(
	int nCol,
	int width
)

Parameters

nCol Int32
width Int32
Exceptions
Exception Condition
ArgumentException The given column number nCol is invalid. -or- The column width is outside of acceptable range.
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →