Show / Hide Table of Contents

Class ExcelRichTextCollection

Collection of Richtext objects

Inheritance
object
ExcelRichTextCollection
Implements
IEnumerable<ExcelRichText>
IEnumerable
IDisposable
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 ExcelRichTextCollection : IEnumerable<ExcelRichText>, IEnumerable, IDisposable

Properties

Count

Items in the list

Declaration
public int Count { get; }
Property Value
Type Description
int

HtmlText

Returns the rich text as a html string.

Declaration
public string HtmlText { get; }
Property Value
Type Description
string

this[int]

Collection containing the richtext objects

Declaration
public ExcelRichText this[int Index] { get; }
Parameters
Type Name Description
int Index
Property Value
Type Description
ExcelRichText

Text

The text

Declaration
public string Text { get; set; }
Property Value
Type Description
string

Methods

Add(string, bool)

Add a rich text string

Declaration
public ExcelRichText Add(string Text, bool NewParagraph = false)
Parameters
Type Name Description
string Text

The text to add

bool NewParagraph

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

Returns
Type Description
ExcelRichText

Clear()

Clear the collection

Declaration
public void Clear()

Dispose()

Disposes the object.

Declaration
public void Dispose()

Insert(int, string)

Insert a rich text string at the specified index.

Declaration
public ExcelRichText Insert(int index, string text)
Parameters
Type Name Description
int index

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

string text

The text to insert.

Returns
Type Description
ExcelRichText

Remove(ExcelRichText)

Removes an item

Declaration
public void Remove(ExcelRichText Item)
Parameters
Type Name Description
ExcelRichText Item

RemoveAt(int)

Removes an item at the specific index

Declaration
public void RemoveAt(int Index)
Parameters
Type Name Description
int Index

Implements

IEnumerable<T>
IEnumerable
IDisposable
In this article
Back to top Generated by DocFX