Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

StoryRanges Interface

A collection of Range objects that represent stories in a document.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Public Class toryRangesImplementation
	Implements StoryRanges
End Class
Dim toryRangesImplementation1 As New toryRangesImplementation()

Public Interface StoryRanges
	Inherits IEnumerable
public interface StoryRanges implements IEnumerable
public interface StoryRanges implements IEnumerable

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.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms