FlowDocument::FontStretch Property

 

Gets or sets the top-level font-stretching characteristics for the FlowDocument.

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
property FontStretch FontStretch {
	FontStretch get();
	void set(FontStretch value);
}

Property Value

Type: System.Windows::FontStretch

A member of the FontStretch class that specifies the desired font-stretching characteristics to use. The default is FontStretches::Normal.

Any FontStretch settings on child elements override this top-level setting.

The following example shows how to set the FontStretch attribute of a FlowDocument element.

<FlowDocumentReader>
  <FlowDocument
    FontFamily="Century Gothic"
    FontSize="12"
    FontStretch="UltraExpanded"
    FontStyle="Italic"
    FontWeight="UltraBold"
  >
    <Paragraph>
      Any font settings on this paragraph would override the font settings
      for the FlowDocument.
    </Paragraph>
  </FlowDocument>
</FlowDocumentReader>

The following example shows how to set the FontStretch property programmatically.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: