Tables 接口

定义

对象的集合, Table 这些对象代表所选内容、范围或文档中的表格。A collection of Table objects that represent the tables in a selection, range, or document.

public interface class Tables : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("0002094D-0000-0000-C000-000000000046")]
public interface Tables : System.Collections.IEnumerable
type Tables = interface
    interface IEnumerable
Public Interface Tables
Implements IEnumerable
属性
实现

注解

属性用于返回 Tables 集合。Use the Tables property to return the Tables collection.

使用 Add(Range, Int32, Int32, Object, Object) 方法可在指定范围添加表格。Use the Add(Range, Int32, Int32, Object, Object) method to add a table at the specified range.

使用index ),其中 index 是 index 数字,返回单个Table对象。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.

Count在文档中,此集合的属性返回的只是正文中的项目数。The Count property for this collection in a document returns the number of items in the main story only. 若要统计其他部分中的项目数,请使用带有该对象的集合 RangeTo count items in other stories use the collection with the Range object.

属性

Application

返回一个 Application 代表 Microsoft Word 应用程序的对象。Returns a Application object that represents the Microsoft Word application.

Count

返回指定集合中的项目数。Returns the number of items in the specified collection.

Creator

返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。Returns a 32-bit integer that indicates the application in which the specified object was created.

Item[Int32]

返回集合中的单个对象。Returns an individual object in a collection.

NestingLevel

返回指定表格的嵌套层。Returns the nesting level of the specified tables.

Parent

返回一个对象,代表指定对象的父对象。Returns an object that represents the parent object of the specified object.

方法

Add(Range, Int32, Int32, Object, Object)

返回一个 Table 对象,表示添加到文档中的新的空白表。Returns a Table object that represents a new, blank table added to a document.

AddOld(Range, Int32, Int32)

仅供内部使用。Reserved for internal use.

GetEnumerator()

适用于