Class ExcelRichTextCollection
Collection of Richtext objects
Inherited Members
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 |
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 |