TableSectionDataInsertRow Method |
Inserts a row data at a specified index.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic void InsertRow(
int nIndex
)
Public Sub InsertRow (
nIndex As Integer
)
public:
void InsertRow(
int nIndex
)
member InsertRow :
nIndex : int -> unit
Parameters
- nIndex Int32
-
An integer index.
ExceptionsException | Condition |
---|
ArgumentException |
The row can't be inserted in data section of standard schedule except Key Schedule, Sheet List Schedule
or following categories without emdeded schedule: MEP Space, Room, Area.
or nIndex is invalid index.
|
Examplepublic void CreateSubtitle(ViewSchedule schedule)
{
TableData colTableData = schedule.GetTableData();
TableSectionData tsd = colTableData.GetSectionData(SectionType.Header);
tsd.InsertRow(tsd.FirstRowNumber + 1);
tsd.SetCellText(tsd.FirstRowNumber + 1, tsd.FirstColumnNumber, "Schedule of column top and base levels with offsets");
}
Public Sub CreateSubtitle(schedule As ViewSchedule)
Dim colTableData As TableData = schedule.GetTableData()
Dim tsd As TableSectionData = colTableData.GetSectionData(SectionType.Header)
tsd.InsertRow(tsd.FirstRowNumber + 1)
tsd.SetCellText(tsd.FirstRowNumber + 1, tsd.FirstColumnNumber, "Schedule of column top and base levels with offsets")
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also