TRichString.Create Method
Overloads
- TRichString.Create
- TRichString.Create(string)
- TRichString.Create(string, TRTFRunArray)
- TRichString.Create(string, TFList<TRTFRun>)
- TRichString.Create(string, TBytes, TCoreExcelFile)
- TRichString.Create(string, TRichString, Integer)
TRichString.Create
Constructs an empty RichString.
Syntax
Unit: FlexCel.Core
class function TRichString.Create: TRichString; static; overload;
See also
TRichString.Create(string)
Constructs a RichString without formatting.
Syntax
Unit: FlexCel.Core
class function TRichString.Create(const aValue: string): TRichString; static; overload;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | aValue | string |
See also
TRichString.Create(string, TRTFRunArray)
Constructs a default RichString with text and RTF info.
Syntax
Unit: FlexCel.Core
class function TRichString.Create(const aValue: string; const aRTFRuns: TArray<TRTFRun>): TRichString; static; overload;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | aValue | string | Cell Text |
const | aRTFRuns | TArray<TRTFRun> | Array of TRTFRuns structs. This value will be COPIED, so old reference is not used |
See also
TRichString.Create(string, TFList<TRTFRun>)
Constructs a RichString with text and RTF info, using an RTF ArrayList.
Syntax
Unit: FlexCel.Core
class function TRichString.Create(const aValue: string; const RTFRuns: TFList<TRTFRun>): TRichString; static; overload;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | aValue | string | Cell Text |
const | RTFRuns | TFList<TRTFRun> | ArrayList with RTFRuns. |
See also
TRichString.Create(string, TBytes, TCoreExcelFile)
Constructs a default RichString with text and RTF info.
Syntax
Unit: FlexCel.Core
class function TRichString.Create(const aValue: string; const aRTFRuns: TBytes; const aFontList: TCoreExcelFile): TRichString; static; overload;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | aValue | string | Cell text. |
const | aRTFRuns | TBytes | Rich text info |
const | aFontList | TCoreExcelFile | List with the fonts to convert. |
See also
TRichString.Create(string, TRichString, Integer)
Constructs a default RichString with text and RTF info.
Syntax
Unit: FlexCel.Core
class function TRichString.Create(const aValue: string; const aRichString: TRichString; const offset: Integer): TRichString; static; overload;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | aValue | string | Cell Text |
const | aRichString | TRichString | Rich string with the RTF values to copy. This value will be COPIED, so old reference is not used |
const | offset | Integer | How many characters the RTFRun must be moved. For example: RichString(s.SubString(3), RTFRuns, 3) will adapt the RTFRun for s to the new substring. |