Search Results for

    Show / Hide Table of Contents

    TFlxFont Record

    Encapsulation of an Excel Font.

    Syntax

    Unit: FlexCel.Core

    TFlxFont = record;

    Methods

    Name Description
    Create Overloaded
    Create
    Create(string, Integer)
    Null Returns a font without defined value.
    CopyTo Copies this font information to other font object.
    Equals Returns true if a font has is the same as the current.
    GetHashCode Hash code of the font.
    IsNull Returns true if the record doesn't have a defined value.
    HasValue Returns true if the record has a defined value. This is the inverse of IsNull

    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
    Name Font name. (For example, "Arial"). Important: When using Excel 2007, if Scheme is different from "None", the font scheme takes precedence over the name. If for example Name = "Arial" but Scheme is Major and the major font is Calibri, the font will use Calibri.
    Size20 Height of the font (in units of 1/20th of a point). A Size20 = 200 means 10 points.
    Color Color of the font.
    Style Style of the font, such as bold or italics. Underline is a different option.
    Underline Underline type.
    Family Font family, (see Windows API LOGFONT structure).
    CharSet Character set. (see Windows API LOGFONT structure)
    Scheme Font scheme. This only applies to Excel 2007. Note that this property takes over other properties like font name: If the scheme is for example "Major" and the theme has a Major font defined as calibri, then the font will be Calibri no matter if you change the font name.

    To manually change the font name, make sure to set Scheme = TFontScheme.None
    In This Article
    Back to top FlexCel Studio for VCL and FireMonkey v7.24
    © 2002 - 2025 tmssoftware.com