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
| Name | Type | Access | Description |
|---|---|---|---|
storyType | int | Read | Gets the type of this story. |
firstParagraph | Paragraph | Read | Gets the first paragraph in the story. |
lastParagraph | Paragraph | Read | Gets the last paragraph in the story. |
paragraphs | ParagraphCollection | Read | Gets a collection of paragraphs that are immediate children of the story. |
tables | TableCollection | Read | Gets a collection of tables that are immediate children of the story. |
Methods
| Signature | Description |
|---|---|
getStoryType() → int | Gets the type of this story. |
getFirstParagraph() → Paragraph | Gets the first paragraph in the story. |
getLastParagraph() → Paragraph | Gets the last paragraph in the story. |
getParagraphs() → ParagraphCollection | Gets a collection of paragraphs that are immediate children of the story. |
getTables() → TableCollection | Gets a collection of tables that are immediate children of the story. |
deleteShapes() | Deletes all shapes from the text of this story. |
appendParagraph(text: String) → Paragraph | A shortcut method that creates a Paragraph object with optional text and appends it to the end of this object. |