Partager via


LOGFONTW Structure

Specifies the attributes of a font.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Public Structure LOGFONTW
public struct LOGFONTW
public value class LOGFONTW
[<Sealed>]
type LOGFONTW =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The LOGFONTW type exposes the following members.

Methods

  Name Description
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)

Top

Fields

  Name Description
Public field lfCharSet Specifies the character set.
Public field lfClipPrecision Specifies the clipping precision.
Public field lfEscapement Specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device.
Public field lfFaceName A null-terminated string that specifies the typeface name of the font.
Public field lfHeight Specifies the height, in logical units, of the font's character cell or character.
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.
Public field lfPitchAndFamily Specifies the pitch and family of the font.
Public field lfQuality Specifies the output quality.
Public field lfStrikeOut Specifies a strikeout font if set to true.
Public field lfUnderline Specifies an underline font if set to true.
Public field lfWeight Specifies the weight of the font in the range 0 through 1000.
Public field lfWidth Specifies the average width, in logical units, of characters in the font.

Top

Remarks

This structure maps to the LOGFONT structure documented in the Microsoft Platform Software Development Kit and is provided only as a COM wrapper.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace