TextMetrics Structure

 

Provides basic information about the font specified by a visual style for a particular element.

Namespace:   System.Windows.Forms.VisualStyles
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public struct TextMetrics

NameDescription
System_CAPS_pubpropertyAscent

Gets or sets the ascent of characters in the font.

System_CAPS_pubpropertyAverageCharWidth

Gets or sets the average width of characters in the font.

System_CAPS_pubpropertyBreakChar

Gets or sets the character used to define word breaks for text justification.

System_CAPS_pubpropertyCharSet

Gets or sets the character set of the font.

System_CAPS_pubpropertyDefaultChar

Gets or sets the character to be substituted for characters not in the font.

System_CAPS_pubpropertyDescent

Gets or sets the descent of characters in the font.

System_CAPS_pubpropertyDigitizedAspectX

Gets or sets the horizontal aspect of the device for which the font was designed.

System_CAPS_pubpropertyDigitizedAspectY

Gets or sets the vertical aspect of the device for which the font was designed.

System_CAPS_pubpropertyExternalLeading

Gets or sets the amount of extra leading that the application adds between rows.

System_CAPS_pubpropertyFirstChar

Gets or sets the first character defined in the font.

System_CAPS_pubpropertyHeight

Gets or sets the height of characters in the font.

System_CAPS_pubpropertyInternalLeading

Gets or sets the amount of leading inside the bounds set by the Height property.

System_CAPS_pubpropertyItalic

Gets or sets a value indicating whether the font is italic.

System_CAPS_pubpropertyLastChar

Gets or sets the last character defined in the font.

System_CAPS_pubpropertyMaxCharWidth

Gets or sets the width of the widest character in the font.

System_CAPS_pubpropertyOverhang

Gets or sets the extra width per string that may be added to some synthesized fonts.

System_CAPS_pubpropertyPitchAndFamily

Gets or sets information about the pitch, technology, and family of a physical font.

System_CAPS_pubpropertyStruckOut

Gets or sets a value indicating whether the font specifies a horizontal line through the characters.

System_CAPS_pubpropertyUnderlined

Gets or sets a value indicating whether the font is underlined.

System_CAPS_pubpropertyWeight

Gets or sets the weight of the font.

NameDescription
System_CAPS_pubmethodEquals(Object)

Indicates whether this instance and a specified object are equal.(Inherited from ValueType.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this instance.(Inherited from ValueType.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the fully qualified type name of this instance.(Inherited from ValueType.)

The TextMetrics structure specifies the return values of the VisualStyleRenderer.GetTextMetrics method.

.NET Framework
Available since 2.0

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

Return to top
Show: