Click or drag to resize

StoryType Enumeration

Text of a Word document is stored in stories. StoryType identifies a story.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public enum StoryType
Members
  Member nameValueDescription
None0 Default value. There is no such story in the document.
MainText1 Contains the main text of the document, represented by Body.
Footnotes2 Contains footnote text, represented by Footnote.
Endnotes3 Contains endnotes text, represented by Footnote.
Comments4 Contains document comments (annotations), represented by Comment.
Textbox5 Contains shape or textbox text, represented by Shape.
EvenPagesHeader6 Contains text of the even pages header, represented by HeaderFooter.
PrimaryHeader7 Contains text of the primary header. When header is different for odd and even pages, contains text of the odd pages header. Represented by HeaderFooter.
EvenPagesFooter8 Contains text of the even pages footer, represented by HeaderFooter.
PrimaryFooter9 Contains text of the primary footer. When footer is different for odd and even pages, contains text of the odd pages footer. Represented by HeaderFooter.
FirstPageHeader10 Contains text of the first page header, represented by HeaderFooter.
FirstPageFooter11 Contains text of the first page footer, represented by HeaderFooter.
FootnoteSeparator12 Contains the text of the footnote separator, represented by FootnoteSeparator.
FootnoteContinuationSeparator13 Contains the text of the footnote continuation separator, represented by FootnoteSeparator.
FootnoteContinuationNotice14 Contains the text of the footnote continuation notice separator, represented by FootnoteSeparator.
EndnoteSeparator15 Contains the text of the endnote separator, represented by FootnoteSeparator.
EndnoteContinuationSeparator16 Contains the text of the endnote continuation separator, represented by FootnoteSeparator.
EndnoteContinuationNotice17 Contains the text of the endnote continuation notice separator, represented by FootnoteSeparator.
Examples
Shows how to clear a body of inline shapes.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Use a DocumentBuilder to insert a shape
// This is an inline shape, which has a parent Paragraph, which is in turn a child of the Body
builder.InsertShape(ShapeType.Cube, 100.0, 100.0);

Assert.AreEqual(1, doc.GetChildNodes(NodeType.Shape, true).Count);

// We can delete all such shapes from the Body, affecting all child Paragraphs
Assert.AreEqual(StoryType.MainText, doc.FirstSection.Body.StoryType);
doc.FirstSection.Body.DeleteShapes();

Assert.AreEqual(0, doc.GetChildNodes(NodeType.Shape, true).Count);
See Also