Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FormattedText.SetFontStretch Method (FontStretch)

Sets the font stretch value for the entire set of characters in the FormattedText object.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public void SetFontStretch(
	FontStretch stretch


Type: System.Windows.FontStretch

The desired FontStretch value to use for text formatting.

The font stretch value refers to the degree to which a font is stretched on the screen. FontStretch supports type conversion behavior such that static values of the FontStretches class can be used to initialize FontStretch and fill parameters that are type FontStretch. You can also call FromOpenTypeStretch to create a properly initialized FontStretch.

This method sets the font stretch value for the entire text string. To set the font stretch value for a subset of the text string, use the SetFontStretch(FontStretch, Int32, Int32) method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft