Show / Hide Table of Contents

Class ExcelRichTextCollection

Collection of Richtext objects

Inheritance
System.Object
XmlHelper
ExcelRichTextCollection
Implements
System.Collections.Generic.IEnumerable<ExcelRichText>
System.Collections.IEnumerable
Inherited Members
XmlHelper.AddSchemaNodeOrder(String[], String[])
XmlHelper.AddSchemaNodeOrder(String[], String[], Int32[])
XmlHelper.GetBoolFromString(String)
XmlHelper.CreatespPrNode(String, Boolean)
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

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
Back to top Generated by DocFX