Modifica

Condividi tramite


Table Interface

Definition

Represents a single table.

public interface class Table
[System.Runtime.InteropServices.Guid("00020951-0000-0000-C000-000000000046")]
public interface Table
type Table = interface
Public Interface Table
Attributes

Remarks

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

Use Tables(index), where index is the index number, to return a single Table object. The index number represents the position of the table in the selection, range, or document.

Use the Add(Range, Int32, Int32, Object, Object) method to add a table at the specified range.

Properties

AllowAutoFit

Allows Microsoft Word to automatically resize cells in a table to fit their contents.

AllowPageBreaks

Allows Microsoft Word to break the specified table across pages.

Application

Returns a Application object that represents the Microsoft Word application.

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.

ApplyStyleFirstColumn

True for Microsoft Word to apply first-column formatting to the first column of the specified table.

ApplyStyleHeadingRows

True for Microsoft Word to apply heading-row formatting to the first row of the selected table.

ApplyStyleLastColumn

True for Microsoft Word to apply last-column formatting to the last column of the specified table.

ApplyStyleLastRow

True for Microsoft Word to apply last-row formatting to the last row of the specified table.

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.

AutoFormatType

Returns the type of automatic formatting that's been applied to the specified table.

Borders

Returns a Borders collection that represents all the borders for the specified object.

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.

Columns

Returns a Columns collection that represents all the table columns in the table.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Descr

Gets or sets a string that contains a description for the specified table.

ID

Returns or sets the identifying label for the specified object when the current document is saved as a Web page.

LeftPadding

Returns or sets the amount of space (in points) to add to the left of the contents of a single cell or all the cells in a table.

NestingLevel

Returns the nesting level of the specified table.

Parent

Returns an object that represents the parent object of the specified object.

PreferredWidth

Returns or sets the preferred width (in points or as a percentage of the window width) for the specified cell, cells, columns, or table.

PreferredWidthType

Returns or sets the preferred unit of measurement to use for the width of the specified table.

Range

Returns a Range object that represents the portion of a document that's contained in the specified object.

RightPadding

Returns or sets the amount of space (in points) to add to the right of the contents of a single cell or all the cells in a table.

Rows

Returns a Rows collection that represents all the table rows in a table.

Shading

Returns a Shading object that refers to the shading formatting for the specified object.

Spacing

Returns or sets the spacing (in points) between the cells in a table.

Style

Returns or sets the style for the specified object.

TableDirection

Returns or sets the direction in which Microsoft Word orders cells in the specified table.

Tables

Returns a Tables collection that represents all the tables in the specified table.

Title

Gets or sets a string that contains a title for the specified table.

TopPadding

Returns or sets the amount of space (in points) to add above the contents of a single cell or all the cells in a table.

Uniform

True if all the rows in a table have the same number of columns.

Methods

ApplyStyleDirectFormatting(String)

Applies the specified style but maintains any formatting that a user directly applies.

AutoFitBehavior(WdAutoFitBehavior)

Determines how Microsoft Word resizes a table when the AutoFit feature is used.

AutoFormat(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Applies a predefined look to a table.

Cell(Int32, Int32)

Returns a Cell object that represents a cell in a table.

ConvertToText(Object, Object)

Converts a table to text and returns a Range object that represents the delimited text.

ConvertToTextOld(Object)

Reserved for internal use.

Delete()

Deletes the specified object.

Select()

Selects the specified object.

Sort(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Sorts the specified table.

SortAscending()

Sorts table rows in ascending alphanumeric order.

SortDescending()

Sorts table rows in descending alphanumeric order.

SortOld(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Reserved for internal use.

Split(Object)

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.

UpdateAutoFormat()

Updates the table with the characteristics of a predefined table format.

Applies to