Table of Contents

TDrawingRichString.FromRichString Method

Overloads

TDrawingRichString.FromRichString(TRichString, ExcelFile, TDrawingAlignment)

Returns a new TDrawingRichString from a TRichString. Note that the conversion is not perfect since information in both kind of strings is different.

Syntax

Namespace: FlexCel.Core

public static TDrawingRichString FromRichString(TRichString aValue, ExcelFile xls, TDrawingAlignment HAlign)

Parameters

<-> Parameter Type Description
aValue TRichString String that we want to convert.
xls ExcelFile Excel file with the string. It will be used to convert indexed colors if there are any.
HAlign TDrawingAlignment Alignment for the paragraphs.

See also

TDrawingRichString.FromRichString(TRichString, ExcelFile, TDrawingRichString, TDrawingAlignment)

Returns a new TDrawingRichString from a TRichString. Note that the conversion is not perfect since information in both kind of strings is different.

Syntax

Namespace: FlexCel.Core

public static TDrawingRichString FromRichString(TRichString aValue, ExcelFile xls, TDrawingRichString origString, TDrawingAlignment HAlign)

Parameters

<-> Parameter Type Description
aValue TRichString String that we want to convert.
xls ExcelFile Excel file with the string. It will be used to convert indexed colors if there are any.
origString TDrawingRichString String used as a template when replacing text.
HAlign TDrawingAlignment Alignment for the paragraphs.

See also

TDrawingRichString.FromRichString(TRichString, ExcelFile, TDrawingRichString, TDrawingAlignment, Boolean)

Returns a new TDrawingRichString from a TRichString. Note that the conversion is not perfect since information in both kind of strings is different.

Syntax

Namespace: FlexCel.Core

public static TDrawingRichString FromRichString(TRichString aValue, ExcelFile xls, TDrawingRichString origString, TDrawingAlignment HAlign, Boolean splitIntoParagraphs)

Parameters

<-> Parameter Type Description
aValue TRichString String that we want to convert.
xls ExcelFile Excel file with the string. It will be used to convert indexed colors if there are any.
origString TDrawingRichString String used as a template when replacing text.
HAlign TDrawingAlignment Alignment for the paragraphs.
splitIntoParagraphs Boolean You will normally want this parameter to be true. If false, returns in the text will be encoded in the same paragraph.
This is needed in some parts in the xlsx file, but normally you want one paragraph per line.

See also