Table of contents
TOC
折叠目录
展开目录

情景对象 (发布服务器)Stories Object (Publisher)

office 365 dev account|上次更新日期: 2018/3/13
|
3 参与人员

代表出版物中的所有文字。Represents all the text in a publication.

示例Example

使用文档对象的情景属性返回Stories集合。使用Stories集合的Item方法来访问个别文章对象。Use the Stories property of a Document object to return a Stories collection. Use the Item method of the Stories collection to access individual Story objects.

Stories集合使高效地访问出版物中的文字。遍历Stories集合就可以扫描文本框架或无需搜索出版物的每一页上每个形状的表格中的所有文本。The Stories collection enables efficient access to text in a publication. A simple loop through the Stories collection can scan all text in text frames or tables without the need to search each shape on every page of a publication.

Stories集合包含为每个链接的文本框架,每个链接的文字框架链和出版物中的每个表一个Story对象。在艺术字框架、 OLE 对象和图片中的文本不包含Stories集合中。The Stories collection contains one Story object for each unlinked text frame, each chain of linked text frames, and each table in a publication. Text in WordArt frames, OLE objects, and pictures are not included in the Stories collection.

以下示例将当前出版物中的第一篇文章赋值给一个对象变量。This example assigns the first story in the active publication to an object variable.

Dim stFirst As Story 

stFirst = Application.ActiveDocument.Stories(1)

方法Methods

名称Name
ItemItem

属性Properties

名称Name
ApplicationApplication
CountCount
ParentParent
© 2018 Microsoft