ExcelFont.CreateFont Method
Overloads
- ExcelFont.CreateFont(String, Double, TUIFontStyle)
- ExcelFont.CreateFont(TUIFont, TUIColor, TUITextDecoration, Double)
ExcelFont.CreateFont(String, Double, TUIFontStyle)
Tries to create a new font given the Excel data.
Syntax
Namespace: FlexCel.Core
public static TUIFont CreateFont(String FontName, Double FontSize, TUIFontStyle Style)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
FontName | String | Name of the font we want to create. | |
FontSize | Double | Size of the font. | |
Style | TUIFontStyle | Style of the font. |
Returns
A new font with the desired parameters.
See also
ExcelFont.CreateFont(TUIFont, TUIColor, TUITextDecoration, Double)
Creates a font given another font, with a different color.
Syntax
Namespace: FlexCel.Core
public static TFlxFont CreateFont(TUIFont aFont, TUIColor aFontColor, TUITextDecoration aTextDecoration, Double aScale)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
aFont | TUIFont | Font to be used as base. | |
aFontColor | TUIColor | New font color. | |
aTextDecoration | TUITextDecoration | Underline/strikeout | |
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. |