Revit 2026 API
Table |
Sets a cell's to display the specified text.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public void SetCellText( int nRow, int nCol, string text )
Public Sub SetCellText ( nRow As Integer, nCol As Integer, text As String )
public: void SetCellText( int nRow, int nCol, String^ text )
member SetCellText : nRow : int * nCol : int * text : string -> unit
Parameters
- nRow Int32
- The cell row.
- nCol Int32
- The cell column.
- text String
- The text to show in the cell.

Exception | Condition |
---|---|
ArgumentException | The given row number nRow is invalid. -or- The given column number nCol is invalid. |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | This operation is forbidden for cells in standard schedule body sections. |

If this cell's type is not CellType.Text, and the operation is permitted on this cell, the cell type
will be changed to type CellType.Text as a result of this call.
See Also