Click or drag to resize

LOGFONT Class

Represents LogFont structure that defines the attributes of a font.
Inheritance Hierarchy
System Object
Spire.Xls.Core.Spreadsheet LOGFONT

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public class LOGFONT

The LOGFONT type exposes the following members.

Constructors
Name Description
Public method LOGFONT
Default constructor.
Top
Methods
Name Description
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Fields
Name Description
Public field lfCharSet
Specifies the character set. The following values are predefined.
Public field lfClipPrecision
Specifies the clipping precision. The clipping precision defines how to clip characters that are partially outside the clipping region.
Public field lfEscapement
Specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device. The escapement vector is parallel to the base line of a row of text.
Public field lfFaceName
A null-terminated string that specifies the typeface name of the font. The length of this string must not exceed 32 characters, including the terminating null character. The EnumFontFamiliesEx function can be used to enumerate the typeface names of all currently available fonts. If lfFaceName is an empty string, GDI uses the first font that matches the other specified attributes.
Public field lfHeight
Specifies the height, in logical units, of the font's character cell or character. The character height value (also known as the em height) is the character cell height value minus the internal-leading value.
Public field lfItalic
Specifies an italic font if set to TRUE.
Public field lfOrientation
Specifies the angle, in tenths of degrees, between each character's base line and the x-axis of the device.
Public field lfOutPrecision
Specifies the output precision. The output precision defines how closely the output must match the requested font's height, width, character orientation, escapement, pitch, and font type.
Public field lfPitchAndFamily
Specifies the pitch and family of the font. The two low-order bits specify the pitch of the font. Font families describe the look of a font in a general way. They are intended for specifying fonts when the exact typeface desired is not available.
Public field lfQuality
Specifies the output quality. The output quality defines how carefully the graphics device interface (GDI) must attempt to match the logical-font attributes to those of an actual physical font.
Public field lfStrikeOut
Specifies a strikeout font if set to TRUE.
Public field lfUnderline
Specifies an underlined font if set to TRUE.
Public field lfWeight
Specifies the weight of the font in the range 0 through 1000. For example, 400 is normal and 700 is bold. If this value is zero, a default weight is used.
Public field lfWidth
Specifies the average width, in logical units, of characters in the font. If lfWidth is zero, the aspect ratio of the device is matched against the digitization aspect ratio of the available fonts to find the closest match, determined by the absolute value of the difference.
Top
See Also