Sections 接口

定义

Section所选内容、范围或文档中的对象的集合。A collection of Section objects in a selection, range, or document.

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

注解

使用、 Sections或对象的 sections Selection 属性 Range Document 可返回Sections集合。Use the Sections property of a Selection, Range, or Document object to return the Sections collection.

使用 Add(Object, Object) 方法或 InsertBreak(Object) 方法可向文档中添加一个新节。Use the Add(Object, Object) method or the InsertBreak(Object) method to add a new section to a document.

使用sectionindex ),其中 index 是索引号,返回一个Section对象。Use Sections(index), where index is the index number, to return a single Section 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.

First

返回一个 Section 对象,表示集合中的第一个项目 SectionsReturns a Section object that represents the first item in the Sections collection.

Item[Int32]

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

Last

以对象的形式返回集合中的最后一项 Sections SectionReturns the last item in the Sections collection as a Section object.

PageSetup

返回 PageSetup 与指定的节相关联的对象Returns a PageSetup object that's associated with the specified sections

Parent

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

方法

Add(Object, Object)

返回一个 Section 对象,表示添加到文档中的新节。Returns a Section object that represents a new section added to a document.

GetEnumerator()

适用于