• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Story

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

Inheritance
object
Node
CompositeNode
Story
Body
ShapeBase
FootnoteSeparator
HeaderFooter
Cell
Implements
IEnumerable<Node>
IEnumerable
Inherited Members
CompositeNode.ChildNodes
CompositeNode.GetAllChildNodes()
CompositeNode.Count
CompositeNode.FirstChild
CompositeNode.HasChildNodes
CompositeNode.IsComposite
CompositeNode.LastChild
CompositeNode.GetEnumerator()
Node.Document
Node.NextSibling
Node.NodeType
Node.ParentNode
Node.PreviousSibling
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public abstract class Story : CompositeNode, IEnumerable<Node>, IEnumerable

Constructors

Story()

Provides the story behavior for this object.

Declaration
protected Story()

Properties

Paragraphs

Gets or sets paragraphs.

Declaration
public ParagraphCollection Paragraphs { get; }
Property Value
Type Description
ParagraphCollection

StoryType

Gets or sets story type.

Declaration
public StoryType StoryType { get; }
Property Value
Type Description
StoryType

Tables

Gets a collection of tables that are immediate children of the story.

Declaration
public TableCollection Tables { get; }
Property Value
Type Description
TableCollection

Methods

AddParagraph(string)

Provides the add Paragraph behavior for this object.

Declaration
public Paragraph AddParagraph(string text = null)
Parameters
Type Name Description
string text

The text used by the operation.

Returns
Type Description
Paragraph

The resulting value.

AddTable(int, int)

Provides the add Table behavior for this object.

Declaration
public Table AddTable(int rowCount, int columnCount)
Parameters
Type Name Description
int rowCount

The row Count used by the operation.

int columnCount

The column Count used by the operation.

Returns
Type Description
Table

The resulting value.

InsertParagraph(int, string)

Provides the insert Paragraph behavior for this object.

Declaration
public Paragraph InsertParagraph(int index, string text = null)
Parameters
Type Name Description
int index

The zero-based index of the item.

string text

The text used by the operation.

Returns
Type Description
Paragraph

The resulting value.

InsertTable(int, int, int)

Inserts a table at the specified zero-based story table index.

Declaration
public Table InsertTable(int index, int rowCount, int columnCount)
Parameters
Type Name Description
int index

The zero-based table index.

int rowCount

The number of rows.

int columnCount

The number of columns per row.

Returns
Type Description
Table

The inserted table.

RemoveTableAt(int)

Removes the table at the specified zero-based story table index.

Declaration
public void RemoveTableAt(int index)
Parameters
Type Name Description
int index

The zero-based table index.

Implements

IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX