Table of Contents

Class ExcelParagraphCollection

Namespace
OfficeOpenXml.Style
Assembly
EPPlus.dll

A collection of Paragraph objects

public class ExcelParagraphCollection : XmlHelper, IEnumerable<ExcelParagraph>, IEnumerable
Inheritance
ExcelParagraphCollection
Implements
Inherited Members

Properties

Count

Number of items in the collection

public int Count { get; }

Property Value

int

this[int]

The indexer for this collection

public ExcelParagraph this[int Index] { get; }

Parameters

Index int

The index

Property Value

ExcelParagraph

Text

The full text

public string Text { get; set; }

Property Value

string

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