TExcelFont.CreateFont Method
Overloads
TExcelFont.CreateFont(string, Double, TUIFontStyleSet)
Tries to create a new font given the Excel data.
Syntax
Unit: FlexCel.Core
class function TExcelFont.CreateFont(const FontName: string; const FontSize: Double; const Style: Set of TUIFontStyle): TUIFont; static; overload;
Parameters
<-> |
Parameter |
Type |
Description |
const |
FontName |
string |
Name of the font we want to create. |
const |
FontSize |
Double |
Size of the font. |
const |
Style |
Set of TUIFontStyle |
Style of the font. |
Returns
A new font with the desired parameters.
See also
TExcelFont.CreateFont(TUIFont, TUIColor, TUITextDecoration, Double)
Creates a font given another font, with a different color.
Syntax
Unit: FlexCel.Core
class function TExcelFont.CreateFont(const aFont: TUIFont; const aFontColor: TUIColor; const aTextDecoration: TUITextDecoration; const aScale: Double): TFlxFont; static; overload;
Parameters
<-> |
Parameter |
Type |
Description |
const |
aFont |
TUIFont |
Font to be used as base. |
const |
aFontColor |
TUIColor |
New font color. |
const |
aTextDecoration |
TUITextDecoration |
Underline/strikeout |
const |
aScale |
Double |
Scale for the font. For normal uses, specify 1. A value of 2 would mean to create a file with twice the size. |
See also