TextMetrics 结构

定义

提供由视觉样式为特定元素指定的字体相关的基本信息。Provides basic information about the font specified by a visual style for a particular element.

public value class TextMetrics
public struct TextMetrics
type TextMetrics = struct
Public Structure TextMetrics
继承
TextMetrics

注解

TextMetrics 结构指定 VisualStyleRenderer.GetTextMetrics 方法的返回值。The TextMetrics structure specifies the return values of the VisualStyleRenderer.GetTextMetrics method.

属性

Ascent

获取或设置该字体中字符的上移量。Gets or sets the ascent of characters in the font.

AverageCharWidth

获取或设置该字体中字符的平均宽度。Gets or sets the average width of characters in the font.

BreakChar

获取或设置为了文本对齐而用来定义如何断字的字符。Gets or sets the character used to define word breaks for text justification.

CharSet

获取或设置该字体的字符集。Gets or sets the character set of the font.

DefaultChar

获取或设置用来替换不是该字体中字符的字符。Gets or sets the character to be substituted for characters not in the font.

Descent

获取或设置该字体中字符的下移量。Gets or sets the descent of characters in the font.

DigitizedAspectX

获取或设置该字体的目标设备的水平比例。Gets or sets the horizontal aspect of the device for which the font was designed.

DigitizedAspectY

获取或设置该字体的目标设备的垂直比例。Gets or sets the vertical aspect of the device for which the font was designed.

ExternalLeading

获取或设置应用程序在各行之间添加的附加行距量。Gets or sets the amount of extra leading that the application adds between rows.

FirstChar

获取或设置该字体中定义的第一个字符。Gets or sets the first character defined in the font.

Height

获取或设置该字体中字符的高度。Gets or sets the height of characters in the font.

InternalLeading

获取或设置由 Height 属性设置的界限内行距量。Gets or sets the amount of leading inside the bounds set by the Height property.

Italic

获取或设置一个值,该值指示字体是否为斜体。Gets or sets a value indicating whether the font is italic.

LastChar

获取或设置该字体中定义的最后一个字符。Gets or sets the last character defined in the font.

MaxCharWidth

获取或设置该字体中最宽字符的宽度。Gets or sets the width of the widest character in the font.

Overhang

获取或设置可能添加到一些合成字体中的每个字符串的附加宽度。Gets or sets the extra width per string that may be added to some synthesized fonts.

PitchAndFamily

获取或设置有关物理字体的间距、技术和系列的信息。Gets or sets information about the pitch, technology, and family of a physical font.

StruckOut

获取或设置一个值,指示字体是否指定一条贯穿字符的水平线。Gets or sets a value indicating whether the font specifies a horizontal line through the characters.

Underlined

获取或设置一个值,该值指示字体是否带下划线。Gets or sets a value indicating whether the font is underlined.

Weight

获取或设置该字体的粗细。Gets or sets the weight of the font.

适用于