Edit

Bagikan melalui


StoryRanges Interface

Definition

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
Attributes
Implements

Remarks

Use the StoryRanges property to return the StoryRanges collection.

The Add method isn't available for the StoryRanges collection. The number of stories in the StoryRanges collection is finite.

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.

Use the NextStoryRange property to loop through all stories in a document.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Count

Returns the number of items in the specified collection.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Item[WdStoryType]

Returns 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.

Methods

GetEnumerator()

Applies to