TFlxApplyFont Record
Encapsulation of an Excel Font.
Syntax
Unit: FlexCel.Core
TFlxApplyFont = record;
Fields
| Name |
Description |
| CharSet |
Character set. (see Windows API LOGFONT structure) |
| Color |
Color of the font.
|
| Family |
Font family, (see Windows API LOGFONT structure).
|
| Name |
Font name. (For example, "Arial") |
| Scheme |
Scheme of the font, when using themes. (Excel 2007).
|
| Size20 |
Height of the font (in units of 1/20th of a point). A Size20=200 means 10 points.
|
| StyleEx |
Allows to control which styles are applied one by one, different from Style which applies all the styles at once. Setting Style will change all the StyleEx at once.
|
| Underline |
Underline type.
|
Methods
| Name |
Description |
| Apply |
This method will modify existingFormat with the properties from newFormat that are specified on this class |
| Clone |
Returns a deep copy of the font.
|
| Equals |
Returns true if both objects are the same.
|
| GetHashCode |
Returns the hash code of the object.
|
| HasStyleBold​AndItalic |
Returns true if this struct applies either italic or bold styles. This is the same as checking if StyleEx contains bold or italic.
|
| HasStyleStrikeout |
Returns true if this struct applies a strikeout. This is the same as checking if StyleEx contains Strikeout.
|
| HasStyleSubSuperscript |
Returns true if this struct applies either subscript or superscript styles. This is the same as checking if StyleEx contains subscript or superscript.
|
| SetAllMembers |
Sets all members to true or false |
Operators
| Name |
Description |
| Equality |
Adapts the = operator so it returns true when both instances have the same values. |
| Inequality |
Adapts the <> operator so it returns true when both instances have different values. |
Properties
| Name |
Description |
| IsEmpty |
Returns true if the format definition does not apply any setting.
|
| Style |
Style of the font, such as bold or italics. Underline is a different option. Note that when true this applies the full style, and sets all values of StyleEx to true. StyleEx can be used for more fine control over what styles are applied.
|