StoryRanges 接口

定义

Range代表文档中的文章的对象的集合。A collection of Range objects that represent stories in a document.

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

注解

使用 StoryRanges 属性返回StoryRanges集合。Use the StoryRanges property to return the StoryRanges collection.

Add方法不适用于StoryRanges集合。The Add method isn't available for the StoryRanges collection. StoryRanges 集合中的情景数是有限的。The number of stories in the StoryRanges collection is finite.

使用StoryRangesindex )(其中 indexWdStoryType 常量)将单个文章作为Range对象返回。Use StoryRanges(index), where index is a WdStoryType constant, to return a single story as a Range object.

如果尝试返回的文章在指定文档中不可用,则会发生错误。If you attempt to return a story that isn't available in the specified document, an error occurs.

使用 NextStoryRange 属性可循环访问文档中的所有文章。Use the NextStoryRange property to loop through all stories in a document.

属性

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[WdStoryType]

以对象的形式返回某一区域或选定内容的单个文字部分 RangeReturns a single story of a range or selection as a Range object.

Parent

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

方法

GetEnumerator()

适用于