TableCellStyle
The TableCellStyle class contains the appearance settings for a given table cell, column, or table.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.TableCellStyle
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class TableCellStyle : IDisposable
The TableCellStyle type exposes the following members.
Constructors
Name
Description
Public Method
TableCellStyle.
Constructs a new TableCellStyle with default settings.
Public Method
TableCellStyle(TableCellStyle)
Constructs a new copy of the input TableCellStyle object.
Properties
Name
Description
Public Property
BackgroundColor
The background color of this cell in the grid view.
Public Property
BorderBottomLineStyle
The element id (GraphicsStyle element) for the bottom line of the cell border.
Public Property
BorderLeftLineStyle
The element id (GraphicsStyle element) for the left line of the cell border.
Public Property
BorderRightLineStyle
The element id (GraphicsStyle element) for the right line of the cell border.
Public Property
BorderTopLineStyle
The element id (GraphicsStyle element) for the top line of the cell border.
Public Property
FontHorizontalAlignment
The horizontal alignment style of text font.
Public Property
FontName
The font used for this style
Public Property
FontVerticalAlignment
The vertical alignment style of text font.
Public Property
IsEnabled
Gets or sets the status whether this cell is enabled.
Public Property
IsFontBold
Gets or sets whether the text font is set to bold of this cell.
Public Property
IsFontItalic
Gets or sets whether the text font is set to italic of this cell.
Public Property
IsFontUnderline
Gets or sets whether the text font is set to Underline of this cell.
Public Property
IsInactivePhaseload
Gets or sets whether this is an inactive phase load cell.
Public Property
IsOverridden
Indicates if the cell is overridden or not.
Public Property
IsReadOnly
Gets or sets whether this cell is read only.
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
SheetBackgroundColor
The background color of this cell in the sheet view.
Public Property
TextColor
The text color of this cell.
Public Property
TextOrientation
The orientation of the cell (for vertical/horizontal text) with input in degrees multiplied by 10
Public Property
TextSize
The text size.
Methods
Name
Description
Public Method
Dispose
Releases all resources used by the TableCellStyle
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetCellStyleOverrideOptions
Gets cell style override options of this cell.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
ResetOverride
Resets any overrides applied to this cell.
Public Method
Code Example
SetCellStyleOverrideOptions
Sets cell style override options of this cell.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)