TDrawingRichString.ToRichString Method
Overloads
- TDrawingRichString.ToRichString(ExcelFile, TShapeFont)
- TDrawingRichString.ToRichString(ExcelFile, TShapeFont, TFlxFont)
- TDrawingRichString.ToRichString(ExcelFile, TShapeFont, TFlxFont, Func<String, TRichString>)
- TDrawingRichString.ToRichString(ExcelFile, TShapeFont, TFlxFont, Func<String, TRichString>, Boolean)
TDrawingRichString.ToRichString(ExcelFile, TShapeFont)
Converts this TDrawingRichString into a TRichString. Note that the conversion is not perfect as a TDrawingRichString has different information from a TRichString.
Syntax
Namespace: FlexCel.Core
public TRichString ToRichString(ExcelFile xls, TShapeFont ShapeThemeFont)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
xls | ExcelFile | Excel file with the fonts. | |
ShapeThemeFont | TShapeFont | Theme font used by default when no formatting is specified. Set it to null to use the default. |
See also
TDrawingRichString.ToRichString(ExcelFile, TShapeFont, TFlxFont)
Converts this TDrawingRichString into a TRichString. Note that the conversion is not perfect as a TDrawingRichString has different information from a TRichString.
Syntax
Namespace: FlexCel.Core
public TRichString ToRichString(ExcelFile xls, TShapeFont ShapeThemeFont, TFlxFont DefaultFont)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
xls | ExcelFile | Excel file with the fonts. | |
ShapeThemeFont | TShapeFont | Theme font used by default when no formatting is specified. Set it to null to use the default. | |
DefaultFont | TFlxFont | Font to be used by default. If left null, the default font for the workbook will be used. |
See also
TDrawingRichString.ToRichString(ExcelFile, TShapeFont, TFlxFont, Func<String, TRichString>)
Converts this TDrawingRichString into a TRichString. Note that the conversion is not perfect as a TDrawingRichString has different information from a TRichString.
Syntax
Namespace: FlexCel.Core
public TRichString ToRichString(ExcelFile xls, TShapeFont ShapeThemeFont, TFlxFont DefaultFont, Func<String, TRichString> FieldReplacer)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
xls | ExcelFile | Excel file with the fonts. | |
ShapeThemeFont | TShapeFont | Theme font used by default when no formatting is specified. Set it to null to use the default. | |
DefaultFont | TFlxFont | Font to be used by default. If left null, the default font for the workbook will be used. | |
FieldReplacer | Func<String, TRichString> | Use this lambda function to replace text in fields. It will take the field name as a parameter, and you need to return the field value in the result. Set it to null if you don't want to replace fields. |
See also
TDrawingRichString.ToRichString(ExcelFile, TShapeFont, TFlxFont, Func<String, TRichString>, Boolean)
Converts this TDrawingRichString into a TRichString. Note that the conversion is not perfect as a TDrawingRichString has different information from a TRichString.
Syntax
Namespace: FlexCel.Core
public TRichString ToRichString(ExcelFile xls, TShapeFont ShapeThemeFont, TFlxFont DefaultFont, Func<String, TRichString> FieldReplacer, Boolean UppercaseIfAllCaps)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
xls | ExcelFile | Excel file with the fonts. | |
ShapeThemeFont | TShapeFont | Theme font used by default when no formatting is specified. Set it to null to use the default. | |
DefaultFont | TFlxFont | Font to be used by default. If left null, the default font for the workbook will be used. | |
FieldReplacer | Func<String, TRichString> | Use this lambda function to replace text in fields. It will take the field name as a parameter, and you need to return the field value in the result. Set it to null if you don't want to replace fields. | |
UppercaseIfAllCaps | Boolean | If true and the style of the TDrawingRichString is all-caps, this will return the string converted to uppercase. Because a RichString doesn't have information about all-caps. |