NumberOfColumns Property


Gets or sets the number of items in column data array.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
public int NumberOfColumns { get; set; }
Visual Basic
Public Property NumberOfColumns As Integer
	Get
	Set
Visual C++
public:
property int NumberOfColumns {
	int get ();
	void set (int value);
}

Remarks

Note that TableSections may use either 0 or 1 as the first row and column indices. To access the rows and columns:
  • Use FirstRowNumber and LastRowNumber to get the valid range of row indices.
  • Use FirstColumnNumber and LastColumnNumber to get the valid range of column indices.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions InvalidOperationException When setting this property: This operation is forbidden for cells in standard schedule body sections.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →