Compartir a través de


FontStretch

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the font stretch for the content in this element.

<object FontStretch="FontStretch"  .../>
value = object.FontStretch
object.FontStretch = value

Property Value

Type: FontStretch Enumeration

One of the enumeration values that specifies the desired font stretch.

This property is read/write. The default value is Normal.

Remarks

A font stretch describes the degree to which a font form is stretched from its normal aspect ratio, which is the original width-to-height ratio specified for the glyphs in the font.

The FontStretch enumeration values correspond to the usWidthClass definition in the OpenType specification. The usWidthClass represents an integer value between 1 and 9. Lower values indicate narrower widths; higher values indicate wider widths.

NoteNote:

The FontStretch property value may not be the font stretch used during rendering because of font fallback. For example, if the font stretch ExtraExpanded is specified but Normal is the closest font stretch available, the value of FontStretch is still Normal.

The "Applies To" section of this topic lists LineBreak, because it does exist in the object model and you can get and set it. However, all LineBreak properties are ignored for rendering purposes.

Applies To

LineBreak

Run

PasswordBox (Silverlight 2)

TextBlock

TextBox (Silverlight 2)

See Also

Reference