Class ParagraphCollection
A typed collection of DrawingTextParagraph objects on a FormattedText. Inherits all List<T> operations and adds Add() (create new paragraph) convenience method.
Implements
Inherited Members
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.dll
Syntax
public class ParagraphCollection : List<DrawingTextParagraph>, IList<DrawingTextParagraph>, ICollection<DrawingTextParagraph>, IList, ICollection, IReadOnlyList<DrawingTextParagraph>, IReadOnlyCollection<DrawingTextParagraph>, IEnumerable<DrawingTextParagraph>, IEnumerable
Properties
this[int]
Gets or sets the value associated with this object.
Declaration
public DrawingTextParagraph this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| DrawingTextParagraph |
Methods
Add()
Creates and adds a new empty paragraph to the end of the collection. Equivalent to AddParagraph().
Declaration
public DrawingTextParagraph Add()
Returns
| Type | Description |
|---|---|
| DrawingTextParagraph | The newly created paragraph. |
Add(DrawingTextParagraph)
Adds the value to this paragraph collection.
Declaration
public void Add(DrawingTextParagraph paragraph)
Parameters
| Type | Name | Description |
|---|---|---|
| DrawingTextParagraph | paragraph |
AddRange(IEnumerable<DrawingTextParagraph>)
Adds the range to this paragraph collection.
Declaration
public void AddRange(IEnumerable<DrawingTextParagraph> paragraphs)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<DrawingTextParagraph> | paragraphs |
Clear()
Removes all entries from this paragraph collection.
Declaration
public void Clear()
Insert(int, DrawingTextParagraph)
Inserts an item at the specified zero-based index.
Declaration
public void Insert(int index, DrawingTextParagraph paragraph)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the item. |
| DrawingTextParagraph | paragraph |
RemoveAt(int)
Removes the item at the specified zero-based index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |