Search Results for

    Show / Hide Table of Contents

    TFlxApplyFont Record

    Encapsulation of an Excel Font.

    Syntax

    Unit: FlexCel.Core

    TFlxApplyFont = record;

    Fields

    Name Description
    Name Font name. (For example, "Arial")
    Size20 Height of the font (in units of 1/20th of a point). A Size20=200 means 10 points.
    Color Color of the font.
    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.
    Family Font family, (see Windows API LOGFONT structure).
    CharSet Character set. (see Windows API LOGFONT structure)
    Scheme Scheme of the font, when using themes. (Excel 2007).

    Methods

    Name Description
    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.
    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
    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.
    HasStyleStrikeout Returns true if this struct applies a strikeout. This is the same as checking if StyleEx contains Strikeout.

    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
    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.
    IsEmpty Returns true if the format definition does not apply any setting.
    In This Article
    Back to top FlexCel Studio for VCL and FireMonkey v7.24
    © 2002 - 2025 tmssoftware.com