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
HtmlText
Returns the rich text as a html string.
public string HtmlText { get; }
Property Value
this[int]
Collection containing the richtext objects
public ExcelRichText this[int Index] { get; }
Parameters
Index
int
Property Value
Text
The text
public string Text { get; set; }
Property Value
Methods
Add(string, bool)
Add a rich text string
public ExcelRichText Add(string Text, bool NewParagraph = false)
Parameters
Text
stringThe text to add
NewParagraph
boolAdds a new paragraph after the
Text
. This will add a new line break.
Returns
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
intThe zero-based index at which rich text should be inserted.
text
stringThe text to insert.
Returns
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