Table of Contents

Class ExcelRichTextCollection

Namespace
OfficeOpenXml.Style
Assembly
EPPlus.dll

Collection of Richtext objects

public class ExcelRichTextCollection : IEnumerable<ExcelRichText>, IEnumerable
Inheritance
ExcelRichTextCollection
Implements
Inherited Members

Properties

Count

Items in the list

public int Count { get; }

Property Value

int

HtmlText

Returns the rich text as a html string.

public string HtmlText { get; }

Property Value

string

this[int]

Collection containing the richtext objects

public ExcelRichText this[int Index] { get; }

Parameters

Index int

Property Value

ExcelRichText

Text

The text

public string Text { get; set; }

Property Value

string

Methods

Add(string, bool)

Add a rich text string

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

Parameters

Text string

The text to add

NewParagraph bool

Adds a new paragraph after the Text. This will add a new line break.

Returns

ExcelRichText

Clear()

Clear the collection

public void Clear()

Insert(int, string)

Insert a rich text string at the specified index.

public ExcelRichText Insert(int index, string text)

Parameters

index int

The zero-based index at which rich text should be inserted.

text string

The text to insert.

Returns

ExcelRichText

Remove(ExcelRichText)

Removes an item

public void Remove(ExcelRichText Item)

Parameters

Item ExcelRichText

RemoveAt(int)

Removes an item at the specific index

public void RemoveAt(int Index)

Parameters

Index int