Class ExcelRichTextCollection
Collection of Richtext objects
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll
Syntax
public class ExcelRichTextCollection : XmlHelper, IEnumerable<ExcelRichText>, IEnumerable
Properties
Count
Items in the list
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
HtmlText
Returns the rich text as a html string.
Declaration
public string HtmlText { get; }
Property Value
Type | Description |
---|---|
System.String |
Item[Int32]
Collection containing the richtext objects
Declaration
public ExcelRichText this[int Index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | Index |
Property Value
Type | Description |
---|---|
ExcelRichText |
Text
The text
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Add(String, Boolean)
Add a rich text string
Declaration
public ExcelRichText Add(string Text, bool NewParagraph = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | Text | The text to add |
System.Boolean | NewParagraph | Adds a new paragraph before text. This will add a new line break. |
Returns
Type | Description |
---|---|
ExcelRichText |
Clear()
Clear the collection
Declaration
public void Clear()
Insert(Int32, String)
Insert a rich text string at the specified index.
Declaration
public ExcelRichText Insert(int index, string text)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which rich text should be inserted. |
System.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(Int32)
Removes an item at the specific index
Declaration
public void RemoveAt(int Index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | Index |
Explicit Interface Implementations
IEnumerable<ExcelRichText>.GetEnumerator()
Declaration
IEnumerator<ExcelRichText> IEnumerable<ExcelRichText>.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<ExcelRichText> |
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable