TRichString.ToHtml Method
Overloads
- TRichString.ToHtml(TCoreExcelFile, TFlxFormat, THtmlVersion, THtmlStyle, TEncoding)
- TRichString.ToHtml(TCoreExcelFile, TFlxFormat, THtmlVersion, THtmlStyle, TEncoding, IHtmlFontEvent)
TRichString.ToHtml(TCoreExcelFile, TFlxFormat, THtmlVersion, THtmlStyle, TEncoding)
Returns the rich string content as an HTML Formatted string. Note: This method is for advanced uses only. Normally you would just use TExcelFile.GetHtmlFromCell(Integer, Integer, THtmlVersion, THtmlStyle, TEncoding)
Syntax
Unit: FlexCel.Core
function TRichString.ToHtml(const aWorkbook: TCoreExcelFile; const aCellFormat: TFlxFormat; const htmlVersion: THtmlVersion; const htmlStyle: THtmlStyle; const aEncoding: TEncoding): string; overload;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | aWorkbook | TCoreExcelFile | ExcelFile where the cell is. |
const | aCellFormat | TFlxFormat | Format of the cell where this string is. |
const | htmlVersion | THtmlVersion | Version of the html returned. In XHTML, single tags have a "/" at the end, while in 4.0 they don't. |
const | htmlStyle | THtmlStyle | Specifies whether to use CSS or not. |
const | aEncoding | TEncoding | Encoder used to return the string. Use UTF-8 for normal cases. |
Returns
The string formatted as an HTML string.
See also
TRichString.ToHtml(TCoreExcelFile, TFlxFormat, THtmlVersion, THtmlStyle, TEncoding, IHtmlFontEvent)
Returns the rich string content as an HTML Formatted string. Note: This method is for advanced uses only. Normally you would just use TExcelFile.GetHtmlFromCell(Integer, Integer, THtmlVersion, THtmlStyle, TEncoding)
Syntax
Unit: FlexCel.Core
function TRichString.ToHtml(const aWorkbook: TCoreExcelFile; const aCellFormat: TFlxFormat; const htmlVersion: THtmlVersion; const htmlStyle: THtmlStyle; const aEncoding: TEncoding; const OnHtmlFont: IHtmlFontEvent): string; overload;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | aWorkbook | TCoreExcelFile | ExcelFile where the cell is. |
const | aCellFormat | TFlxFormat | Format of the cell where this string is. |
const | htmlVersion | THtmlVersion | Version of the html returned. In XHTML, single tags have a "/" at the end, while in 4.0 they don't. |
const | htmlStyle | THtmlStyle | Specifies whether to use CSS or not. |
const | aEncoding | TEncoding | Encoder used to return the string. Use UTF-8 for normal cases. |
const | OnHtmlFont | IHtmlFontEvent | Provide this parameter to customize what to do when different fonts are found in the string. |
Returns
The string formatted as an HTML string.