Story

Overview

Story is a class in Aspose.Words FOSS for Java. Inherits from: CompositeNode<Node>, IStory.

Base class for elements that contain block-level nodes Paragraph and Table.

Edition status of its 12 listed members (a property and its accessor methods are listed separately, overloads once): 12 not yet exercised by a verified example.

This class declares 7 methods for Story objects in Java programs. Available methods include: appendParagraph, deleteShapes, getFirstParagraph, getLastParagraph, getParagraphs, getStoryType, getTables. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: firstParagraph, lastParagraph, paragraphs, storyType, tables.

Properties

NameTypeAccessDescription
storyTypeintReadGets the type of this story.
firstParagraphParagraphReadGets the first paragraph in the story.
lastParagraphParagraphReadGets the last paragraph in the story.
paragraphsParagraphCollectionReadGets a collection of paragraphs that are immediate children of the story.
tablesTableCollectionReadGets a collection of tables that are immediate children of the story.

Methods

SignatureDescription
getStoryType() → intGets the type of this story.
getFirstParagraph() → ParagraphGets the first paragraph in the story.
getLastParagraph() → ParagraphGets the last paragraph in the story.
getParagraphs() → ParagraphCollectionGets a collection of paragraphs that are immediate children of the story.
getTables() → TableCollectionGets a collection of tables that are immediate children of the story.
deleteShapes()Deletes all shapes from the text of this story.
appendParagraph(text: String) → ParagraphA shortcut method that creates a Paragraph object with optional text and appends it to the end of this object.

See Also