语言

Subdocuments 接口

定义

表示区域或文档中的子文档的 对象的集合 Subdocument 。

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

注解

使用 或 Document 对象的 RangeSubdocuments 属性可返回 Subdocuments 集合。

AddFromFile(Object, Object, Object, Object, Object, Object, Object, Object)使用 或 AddFromRange(Range) 方法向文档添加子文档。

使用 子文档 (index) (其中 index 是索引号)返回单个 Subdocument 对象。

属性

名称 说明
Application

返回一个 Application 对象,该对象代表 Microsoft Word 应用程序。

Count

返回指定集合中的项数。

Creator

返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。

Expanded

如此 如果指定文档中的子文档已展开。

Item[Int32]

返回集合中的单个对象。

Parent

返回一个对象,代表指定对象的父对象。

方法

名称 说明
AddFromFile(Object, Object, Object, Object, Object, Object, Object, Object)

在所选内容开头将指定的子文档添加到主控文档中,并返回一个 Subdocument 对象。

AddFromRange(Range)

从指定区域中的文本创建一个或多个子文档,并返回 一个 Subdocument 对象。

Delete()

删除指定的对象。

GetEnumerator()

表示区域或文档中的子文档的 对象的集合 Subdocument 。

Merge(Object, Object)

将主控文档中选定的子文档合并为单独的子文档。

Select()

选择指定的对象。

适用于