Share via


Table Object Members

Word Developer Reference

Represents a single table. The Table object is a member of the Tables collection. The Tables collection includes all the tables in the specified selection, range, or document.

Methods

  Name Description
Bb257953.methods(en-us,office.12).gif ApplyStyleDirectFormatting Applies the specified style but maintains any formatting that a user directly applies.
Bb257953.methods(en-us,office.12).gif AutoFitBehavior Determines how Microsoft Office Word resizes a table when the AutoFit feature is used.
Bb257953.methods(en-us,office.12).gif AutoFormat Applies a predefined look to a table.
Bb257953.methods(en-us,office.12).gif Cell Returns a Cell object that represents a cell in a table.
Bb257953.methods(en-us,office.12).gif ConvertToText Converts a table to text and returns a Range object that represents the delimited text.
Bb257953.methods(en-us,office.12).gif Delete Deletes the specified table.
Bb257953.methods(en-us,office.12).gif Select Selects the specified table.
Bb257953.methods(en-us,office.12).gif Sort Sorts the specified table.
Bb257953.methods(en-us,office.12).gif SortAscending Sorts paragraphs or table rows in ascending alphanumeric order.
Bb257953.methods(en-us,office.12).gif SortDescending Sorts table rows in descending alphanumeric order.
Bb257953.methods(en-us,office.12).gif Split Inserts an empty paragraph immediately above the specified row in the table, and returns a Table object that contains both the specified row and the rows that follow it.
Bb257953.methods(en-us,office.12).gif UpdateAutoFormat Updates the table with the characteristics of a predefined table format.

Properties

  Name Description
Bb257953.properties(en-us,office.12).gif AllowAutoFit Allows Microsoft Word to automatically resize cells in a table to fit their contents. Read/write Boolean.
Bb257953.properties(en-us,office.12).gif AllowPageBreaks Allows Microsoft Word to break the specified table across pages. Read/write Boolean.
Bb257953.properties(en-us,office.12).gif Application Returns an Application object that represents the Microsoft Word application.
Bb257953.properties(en-us,office.12).gif ApplyStyleColumnBands Returns or sets a Boolean that represents whether to apply style bands to the columns in a table if an applied preset table style provides style banding for columns. Read/write.
Bb257953.properties(en-us,office.12).gif ApplyStyleFirstColumn True for Microsoft Word to apply first-column formatting to the first column of the specified table. Read/write Boolean.
Bb257953.properties(en-us,office.12).gif ApplyStyleHeadingRows True for Microsoft Word to apply heading-row formatting to the first row of the selected table. Read/write Boolean.
Bb257953.properties(en-us,office.12).gif ApplyStyleLastColumn True for Microsoft Word to apply last-column formatting to the last column of the specified table. Read/write Boolean.
Bb257953.properties(en-us,office.12).gif ApplyStyleLastRow True for Microsoft Word to apply last-row formatting to the last row of the specified table. Read/write Boolean.
Bb257953.properties(en-us,office.12).gif ApplyStyleRowBands Returns or sets a Boolean that represents whether to apply style bands to the rows in a table if an applied preset table style provides style banding for rows. Read/write.
Bb257953.properties(en-us,office.12).gif AutoFormatType Returns the type of automatic formatting that's been applied to the specified table. Read-only Long.
Bb257953.properties(en-us,office.12).gif Borders Returns a Borders collection that represents all the borders for the specified object.
Bb257953.properties(en-us,office.12).gif BottomPadding Returns or sets the amount of space (in points) to add below the contents of a single cell or all the cells in a table. Read/write Single.
Bb257953.properties(en-us,office.12).gif Columns Returns a Columns collection that represents all the table columns in the table. Read-only.
Bb257953.properties(en-us,office.12).gif Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.
Bb257953.properties(en-us,office.12).gif ID Returns or sets the identifying label for the specified table when the document is saved as a Web page. Read/write String.
Bb257953.properties(en-us,office.12).gif LeftPadding Returns or sets the amount of space (in points) to add to the left of the contents of all the cells in a table. Read/write Single.
Bb257953.properties(en-us,office.12).gif NestingLevel Returns the nesting level of the specified table. Read-only Long.
Bb257953.properties(en-us,office.12).gif Parent Returns an Object that represents the parent object of the specified Table object.
Bb257953.properties(en-us,office.12).gif PreferredWidth Returns or sets the preferred width (in points or as a percentage of the window width) for the specified table. Read/write Single.
Bb257953.properties(en-us,office.12).gif PreferredWidthType Returns or sets the preferred unit of measurement to use for the width of the specified table. Read/write WdPreferredWidthType.
Bb257953.properties(en-us,office.12).gif Range Returns a Range object that represents the portion of a document that is contained within the specified table.
Bb257953.properties(en-us,office.12).gif RightPadding Returns or sets the amount of space (in points) to add to the right of the contents of all the cells in a table. Read/write Single.
Bb257953.properties(en-us,office.12).gif Rows Returns a Rows collection that represents all the table rows within a table. Read-only.
Bb257953.properties(en-us,office.12).gif Shading Returns a Shading object that refers to the shading formatting for the specified object.
Bb257953.properties(en-us,office.12).gif Spacing Returns or sets the spacing (in points) between the cells in a table. Read/write Single.
Bb257953.properties(en-us,office.12).gif Style Returns or sets the style for the specified table. Read/write Variant.
Bb257953.properties(en-us,office.12).gif TableDirection Returns or sets the direction in which Microsoft Word orders cells in the specified table. Read/write WdTableDirection.
Bb257953.properties(en-us,office.12).gif Tables Returns a Tables collection that represents all the tables nested within the specified table. Read-only.
Bb257953.properties(en-us,office.12).gif TopPadding Returns or sets the amount of space (in points) to add above the contents of all the cells in a table. Read/write Single.
Bb257953.properties(en-us,office.12).gif Uniform True if all the rows in a table have the same number of columns. Read-only Boolean.