Share

TableStyle Object

Derived from: Style Object

Description

The TableStyle object represents a general (custom) table style in a drawing. The properties and methods listed below are in addition to those supported by the Style object.

Methods

Name Description
AddColumn Method that adds a column to the list of default columns in the style.
ConvertToLocal Method that creates a local cached copy of a global style and returns the local style.
Copy Method that creates a new local Style object. The newly created style is returned.
Delete Method that deletes the Style/Layer/UnfoldMethod.
GetReferenceKey Method that generates and returns the reference key for this entity.
RemoveAllColumns Method that removes all columns from the style.
SaveToGlobal Method that saves this style to the global repository. If a style with the same name is found in the repository, that style is updated.
UpdateFromGlobal Method that updates this style from the global repository.

Properties

Name Description
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
ColumnHeaderTextStyle Gets and sets the text style used for the column titles (headers).
ColumnTitleHorizontalJustification Gets and sets the justification of the column title.
ColumnValueHorizontalJustification Gets and sets the justification of the values in the column.
ColumnWidth Gets and sets the default width of columns in centimeters.
Comments Gets and sets comments associated with the style.
DataTextStyle Gets and sets the text style used for the contents of the table.
HeadingGap Gets and sets the heading gap in centimeters.
HeadingPlacement Gets and sets the location of the heading (title).
InsideLineColor Gets and sets the color of the inner lines of the table.
InsideLineWeight Gets and sets the line weight of the inner lines of the table.
InternalName Property that returns the internal name of the style. The name is the internal English name of the standard style. This name will remain constant and is not affected by locale. This name is never displayed to the user. Note that this name is not guaranteed to be unique.
InUse Property that indicates if this style is in use.
Name Gets/Sets the name of the Style.
OutsideLineColor Gets and sets the color of the outer lines of the table.
OutsideLineWeight Gets and sets the line weight of the outer lines of the table.
Parent Property returning the parent of this object.
RowGap Gets and sets the row gap in centimeters.
RowLineSpacing Gets and sets the spacing between the rows.
ShowTitle Gets and sets the whether to show the title of the table.
StyleLocation Property that returns the location of this style, i.e. local to the document, cached locally in the document, exists in the library. Styles that exist in the library cannot be edited.
StyleType Gets the type of the style.
TableDirection Gets and sets the direction of the table.
Title Gets and sets the title of the table.
TitleTextStyle Gets and sets the text style used for the title of the table.
Type Returns an ObjectTypeEnum indicating this object's type.
UpToDate Property that gets the up-to-date status of the style against the global repository.

Accessed From

CustomTable.Style, ObjectDefaultsStyle.BendTableStyle, ObjectDefaultsStyle.ConfigurationTableStyle, ObjectDefaultsStyle.TableStyle, TableStylesEnumerator.Item

Version

Introduced in version 2011

Was this information helpful?