Class Story
Base class for elements that contain block-level nodes Paragraph and Table.
Inherited Members
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. |