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
Indexint
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
TextstringThe text to add
NewParagraphboolAdds 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
indexintThe zero-based index at which rich text should be inserted.
textstringThe text to insert.
Returns
Remove(ExcelRichText)
Removes an item
public void Remove(ExcelRichText Item)
Parameters
ItemExcelRichText
RemoveAt(int)
Removes an item at the specific index
public void RemoveAt(int Index)
Parameters
Indexint