Story.StoryType property

Gets the type of this story.

public StoryType StoryType { get; }


Shows how to remove all shapes from a node.

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 a child node of the first section's Body.
builder.InsertShape(ShapeType.Cube, 100.0, 100.0);

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

// We can delete all shapes from the child paragraphs of this Body.
Assert.AreEqual(StoryType.MainText, doc.FirstSection.Body.StoryType);

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

See Also