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 | |
---|---|---|
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Top
Fields
Name | Description | |
---|---|---|
tmAscent | Contains the distance a character extends above the base line. | |
tmAveCharWidth | Contains the average width of characters. | |
tmBreakChar | Contains the character used to define word breaks for text justification. | |
tmCharSet | Contains a [TextMetricsCharacterSet] values that specifies the character set of the font. | |
tmDefaultChar | Contains the character to be substituted for characters not in the font. | |
tmDescent | Contains the distance characters extend below the baseline. | |
tmDigitizedAspectX | Contains the horizontal aspect of the device for which the font was designed. | |
tmDigitizedAspectY | Contains the vertical aspect of the device for which the font was designed. | |
tmExternalLeading | Contains the amount of extra leading that the application adds between rows. | |
tmFirstChar | Contains the first character defined in the font. | |
tmHeight | Contains the maximum height of characters in the font. | |
tmInternalLeading | Contains the amount of leading inside the bounds set by the Height property. | |
tmItalic | Contains a value indicating whether the font is italic. | |
tmLastChar | Contains the last character defined in the font. | |
tmMaxCharWidth | Contains the maximum character width. | |
tmOverhang | Contains the extra width per string that may be added to some synthesized fonts. | |
tmPitchAndFamily | Contains information about the pitch, technology, and family of a physical font. | |
tmStruckOut | Contains a value indicating whether the font specifies a horizontal line through the characters. | |
tmUnderlined | Contains a value indicating whether the font is underlined. | |
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.