Skip to content

TableCellStyle

Public Class

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

The background color of this cell in the grid view.


Public Property

The element id (GraphicsStyle element) for the bottom line of the cell border.


Public Property

The element id (GraphicsStyle element) for the left line of the cell border.


Public Property

The element id (GraphicsStyle element) for the right line of the cell border.


Public Property

The element id (GraphicsStyle element) for the top line of the cell border.


Public Property

The horizontal alignment style of text font.


Public Property

The font used for this style


Public Property

The vertical alignment style of text font.


Public Property

Gets or sets the status whether this cell is enabled.


Public Property

Gets or sets whether the text font is set to bold of this cell.


Public Property

Gets or sets whether the text font is set to italic of this cell.


Public Property

Gets or sets whether the text font is set to Underline of this cell.


Public Property

Gets or sets whether this is an inactive phase load cell.


Public Property

Indicates if the cell is overridden or not.


Public Property

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

The text color of this cell.


Public Property

The orientation of the cell (for vertical/horizontal text) with input in degrees multiplied by 10


Public Property

The text size.


Methods

Name

Description


Public Method

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

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

Resets any overrides applied to this cell.


Public Method
Code Example

Sets cell style override options of this cell.


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)