TableSectionData
The TableSectionData class represents a serialized version of an instance of section table data. The class holds row, column and cell data.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.TableSectionData
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class TableSectionData : IDisposable
The TableSectionData type exposes the following members.
Properties
Name
Description
Public Property
FirstColumnNumber
The first column in this section of the table.
Public Property
FirstRowNumber
The first row in this section of the table.
Public Property
HideSection
Whether or not the section is hidden.
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
LastColumnNumber
The last column in this section of the table.
Public Property
LastRowNumber
The last row in this section of the table.
Public Property
NeedsRefresh
Indicates if the table data need to refresh.
Public Property
NumberOfColumns
Gets or sets the number of items in column data array.
Public Property
NumberOfRows
Gets or sets the number of items in row data array.
Methods
Name
Description
Public Method
AllowOverrideCellStyle
Identifies if the style can be overridden in the given cell.
Public Method
CanInsertColumn
Verifies if a new column can be inserted at the given index.
Public Method
CanInsertRow
Verifies if a new row can be inserted at the given index.
Public Method
CanRemoveColumn
Verifies that if the column at the given index can be removed.
Public Method
CanRemoveRow
Verifies that if the row at the given index can be removed..
Public Method
ClearCell
Deletes text or image, or removes parameter of this cell.
Public Method
Dispose
Releases all resources used by the TableSectionData
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetCellCalculatedValue(Int32)
Gets the calculated value for the specified column
Public Method
GetCellCalculatedValue(Int32, Int32)
Gets the calculated value for the specified cell
Public Method
GetCellCategoryId(Int32)
Returns a column’s ParamId Associated with the paramId to find the correct element
Public Method
GetCellCategoryId(Int32, Int32)
Returns a cell’s CategoryId and if no CategoryId exists for this cell, it would come from the column. Associated with the paramId to find the correct element.
Public Method
GetCellCombinedParameters(Int32)
Returns an array of combined parameter data for the specified column
Public Method
GetCellCombinedParameters(Int32, Int32)
Returns an array of combined parameter data for the specified cell
Public Method
GetCellFormatOptions(Int32, Document)
Returns a column’s cell FormatOptions and if no FormatOptions exists for this column, it would come from the section.
Public Method
GetCellFormatOptions(Int32, Int32, Document)
Returns a cell’s FormatOptions and if no FormatOptions exists for this cell, it would come from the column, or the row, or the section.
Public Method
GetCellParamId(Int32)
Returns a column’s ParamId
Public Method
GetCellParamId(Int32, Int32)
Returns a cell’s ParamId and if no ParamId exists for this cell, it would come from the column
Public Method
GetCellSpec
Gets the spec describing values of a cell, if applicable.
Public Method
GetCellText
Returns the text shown by this cell, if the cell’s type is CellType.Text or CellType.ParameterText or CellType.CustomField.
Public Method
GetCellType(Int32)
Returns a column’s cell type and if no type exists for this column, it would come from the section
Public Method
GetCellType(Int32, Int32)
Returns a cell’s Type and if no Type exists for this cell, it would come from the column, or the row, or the section
Public Method
GetColumnWidth
Returns a column’s width in feet
Public Method
GetColumnWidthInPixels
This returns a column’s width in logical pixels
Public Method
GetCustomFieldId
Gets custom field id from the cell.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetMergedCell
Gets the whole merged cell that this cell is a part of.
Public Method
GetRowHeight
Returns a row’s height in feet
Public Method
GetRowHeightInPixels
This returns a row’s height in logical pixels
Public Method
GetTableCellStyle
Returns a cell’s style and if no style exists for this cell, it would come from the column, or the section
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
InsertColumn
Inserts a new column at the specified index relative to the current set of columns.
Public Method
InsertImage
Inserts a image in the given cell.
Public Method
Code Example
InsertRow
Inserts a row data at a specified index.
Public Method
IsAcceptableParamIdAndCategoryId(ElementId, ElementId)
Identifies if the given parameter id and category id can be assigned to a cell in this table.
Public Method
IsAcceptableParamIdAndCategoryId(Int32, ElementId, ElementId)
Identifies if the given parameter id and category id can be assigned to a cell in the given row in this table.
Public Method
IsCellFormattable
Determines whether the cell is formattable or not
Public Method
IsCellOverridden(Int32)
Indicates if the column is overridden or not.
Public Method
IsCellOverridden(Int32, Int32)
Indicates if the cell is overridden or not.
Public Method
IsDataOutOfDate
Indicates whether the data in this section is out of date.
Public Method
IsValidColumnNumber
Verifies if the column number is valid.
Public Method
IsValidImageSymbolId
Identifies if the element id represents a valid ImageSymbol element.
Public Method
IsValidRowNumber
Verifies if the row number is valid.
Public Method
MergeCells
Merges cells for the given area.
Public Method
RefreshData
Rebuilds the data in this section if it is out of date.
Public Method
RemoveColumn
Removes a column data at a specified index.
Public Method
RemoveRow
Removes a row data at a specified index.
Public Method
ResetCellOverride(Int32)
Resets the override of the column.
Public Method
ResetCellOverride(Int32, Int32)
Resets the override of the cell.
Public Method
SetCellCalculatedValue(Int32, TableCellCalculatedValueData)
Allows the caller to set the calculated value for a specified column
Public Method
SetCellCalculatedValue(Int32, Int32, TableCellCalculatedValueData)
Allows the caller to set the calculated value for a specified cell
Public Method
SetCellCombinedParameters(Int32, IList.TableCellCombinedParameterData.)
Allows the caller to set combined parameter for a specified column
Public Method
SetCellCombinedParameters(Int32, Int32, IList.TableCellCombinedParameterData.)
Allows the caller to set combined parameter for a specified cell
Public Method
SetCellFormatOptions
Sets a cell’s FormatOptions.
Public Method
SetCellParamIdAndCategoryId(Int32, ElementId, ElementId)
Sets a column’s category and parameter Id
Public Method
SetCellParamIdAndCategoryId(Int32, Int32, ElementId, ElementId)
Sets a cell’s category and parameter Id
Public Method
SetCellStyle(TableCellStyle)
Sets a section’s style
Public Method
SetCellStyle(Int32, TableCellStyle)
Sets a column’s style.
Public Method
Code Example
SetCellStyle(Int32, Int32, TableCellStyle)
Sets a cell’s style
Public Method
SetCellText
Sets a cell’s to display the specified text.
Public Method
SetCellType(Int32, CellType)
Sets a column’s cell type
Public Method
SetCellType(Int32, Int32, CellType)
Sets a cell’s Type
Public Method
SetColumnWidth
Sets a column’s width in feet
Public Method
SetColumnWidthInPixels
This sets a column’s width in logical pixels
Public Method
SetMergedCell
Sets the merged cell that this cell is a part of.
Public Method
SetRowHeight
Sets a row’s height in feet
Public Method
SetRowHeightInPixels
This sets a row’s height in logical pixels
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)