Partager via


TEXTMETRICW Structure

Contains information about a font.

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

Syntax

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

The TEXTMETRICW 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 tmAscent Contains the distance a character extends above the base line.
Public field tmAveCharWidth Contains the average width of characters.
Public field tmBreakChar Contains the character used to define word breaks for text justification.
Public field tmCharSet Contains a [TextMetricsCharacterSet] values that specifies the character set of the font.
Public field tmDefaultChar Contains the character to be substituted for characters not in the font.
Public field tmDescent Contains the distance characters extend below the baseline.
Public field tmDigitizedAspectX Contains the horizontal aspect of the device for which the font was designed.
Public field tmDigitizedAspectY Contains the vertical aspect of the device for which the font was designed.
Public field tmExternalLeading Contains the amount of extra leading that the application adds between rows.
Public field tmFirstChar Contains the first character defined in the font.
Public field tmHeight Contains the maximum height of characters in the font.
Public field tmInternalLeading Contains the amount of leading inside the bounds set by the Height property.
Public field tmItalic Contains a value indicating whether the font is italic.
Public field tmLastChar Contains the last character defined in the font.
Public field tmMaxCharWidth Contains the maximum character width.
Public field tmOverhang Contains the extra width per string that may be added to some synthesized fonts.
Public field tmPitchAndFamily Contains information about the pitch, technology, and family of a physical font.
Public field tmStruckOut Contains a value indicating whether the font specifies a horizontal line through the characters.
Public field tmUnderlined Contains a value indicating whether the font is underlined.
Public field tmWeight Contains the weight of the font.

Top

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.OLE.Interop Namespace