Skip to content

Class ExcelParagraphCollection

Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll

A collection of Paragraph objects

public class ExcelParagraphCollection : XmlHelper, IEnumerable<ExcelParagraph>, IEnumerable

Inheritance

object ← XmlHelper ← ExcelParagraphCollection

Implements

IEnumerable
IEnumerable<ExcelParagraph>

Inherited Members

object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Properties

Count

Number of items in the collection

public int Count { get; }

Property Value

int

Text

The full text

public string Text { get; set; }

Property Value

string

this[int]

The indexer for this collection

public ExcelParagraph this[int Index] { get; }

Property Value

ExcelParagraph

Methods

Add(string, bool)

Add a rich text string

public ExcelParagraph Add(string Text, bool NewParagraph = false)

Parameters

Text string

The text to add

NewParagraph bool

This will be a new line. Is ignored for first item added to the collection

Returns

ExcelParagraph

Clear()

Removes all items in the collection

public void Clear()

Remove(ExcelParagraph)

Remove the specified item

public void Remove(ExcelParagraph Item)

Parameters

Item ExcelParagraph

The item

RemoveAt(int)

Remove the item at the specified index

public void RemoveAt(int Index)

Parameters

Index int

The index