Table of Contents

TFlxFont Class

Encapsulation of an Excel Font.

Syntax

Namespace: FlexCel.Core

public class TFlxFont: ICloneable

Constructors

Name Description
TFlxFont Overloaded
TFlxFont
TFlxFont(String, Int32)

Methods

Name Description
CopyTo Copies this font information to other font object.
Clone Returns a deep copy of the font.
Equals Returns true if a font has is the same as the current.
GetHashCode Hash code of the font.

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