Class ExcelParagraphCollection
A collection of Paragraph objects
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll
Syntax
public class ExcelParagraphCollection : XmlHelper, IEnumerable<ExcelParagraph>, IEnumerable
Properties
Count
Number of items in the collection
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Item[Int32]
The indexer for this collection
Declaration
public ExcelParagraph this[int Index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | Index | The index |
Property Value
| Type | Description |
|---|---|
| ExcelParagraph |
Text
The full text
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
Add(String, Boolean)
Add a rich text string
Declaration
public ExcelParagraph Add(string Text, bool NewParagraph = false)
Parameters
| Type | Name | Description |
|---|---|---|
| String | Text | The text to add |
| Boolean | NewParagraph | This will be a new line. Is ignored for first item added to the collection |
Returns
| Type | Description |
|---|---|
| ExcelParagraph |
Clear()
Removes all items in the collection
Declaration
public void Clear()
Remove(ExcelParagraph)
Remove the specified item
Declaration
public void Remove(ExcelParagraph Item)
Parameters
| Type | Name | Description |
|---|---|---|
| ExcelParagraph | Item | The item |
RemoveAt(Int32)
Remove the item at the specified index
Declaration
public void RemoveAt(int Index)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | Index | The index |
Explicit Interface Implementations
IEnumerable<ExcelParagraph>.GetEnumerator()
Declaration
IEnumerator<ExcelParagraph> IEnumerable<ExcelParagraph>.GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<ExcelParagraph> |
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable