ITextStory interface (tom.h)

The ITextStory interface methods are used to access shared data from multiple stories, which is stored in the parent ITextServices instance.

The stories can be "edited" simultaneously by using individual ITextRange2 methods, and displayed independently of one another. In addition, one story at a time can be UI active; that is, it receives keyboard and mouse input.

The ITextStory is a lightweight interface that does not require an ITextRange2 object. This allows the client to manipulate a story, which is a faster, smaller object than a complete editing instance.

Inheritance

The ITextStory interface inherits from the IUnknown interface. ITextStory also has these types of members:

Methods

The ITextStory interface has these methods.

 
ITextStory::GetActive

Sets the active state of a story. (ITextStory.GetActive)
ITextStory::GetDisplay

Gets a new display for a story.
ITextStory::GetIndex

Gets the index of a story.
ITextStory::GetProperty

Gets the value of the specified property. (ITextStory.GetProperty)
ITextStory::GetRange

Gets a text range object for the story.
ITextStory::GetText

Gets the text in a story according to the specified conversion flags.
ITextStory::GetType

Gets this story's type.
ITextStory::SetActive

Sets the active state of a story. (ITextStory.SetActive)
ITextStory::SetFormattedText

Replaces a story’s text with specified formatted text.
ITextStory::SetProperty

Sets the value of the specified property. (ITextStory.SetProperty)
ITextStory::SetText

Replaces the text in a story with the specified text.
ITextStory::SetType

Sets the story type.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header tom.h