Table of Contents

Class RichTextString

Namespace
Spire.Xls.Core.Spreadsheet
Assembly
Spire.XLS.dll
public class RichTextString : CommonWrapper, ICloneParent, IRichTextString, IExcelApplication, IOptimizedUpdate
Inheritance
RichTextString
Implements
Derived
Inherited Members

Properties

DefaultFont

public virtual XlsFont DefaultFont { get; }

Property Value

XlsFont

IsFormatted

public bool IsFormatted { get; }

Property Value

bool

Parent

Returns parent object. Read-only.

public object Parent { get; }

Property Value

object

RtfText

[Obsolete("get and set are not implemented")]
public string RtfText { get; }

Property Value

string

Text

public string Text { get; set; }

Property Value

string

Methods

AddFont(IFont)

protected int AddFont(IFont font)

Parameters

font IFont

Returns

int

Append(string, IFont)

public void Append(string text, IFont font)

Parameters

text string
font IFont

Clear()

public void Clear()

ClearFormatting()

public void ClearFormatting()

GetFont(int)

public IFont GetFont(int index)

Parameters

index int

Returns

IFont

SetFont(int, int, IFont)

public void SetFont(int startIndex, int endIndex, IFont font)

Parameters

startIndex int
endIndex int
font IFont

SetRichTextFont(int, int, IFont)

protected void SetRichTextFont(int iStartPos, int iEndPos, IFont font)

Parameters

iStartPos int
iEndPos int
font IFont