FlowDocument.FontStretch Eigenschap

Definitie

Hiermee haalt of stelt u de kenmerken van lettertype-stretching op het hoogste niveau voor de FlowDocument.

public:
 property System::Windows::FontStretch FontStretch { System::Windows::FontStretch get(); void set(System::Windows::FontStretch value); };
public System.Windows.FontStretch FontStretch { get; set; }
member this.FontStretch : System.Windows.FontStretch with get, set
Public Property FontStretch As FontStretch

Waarde van eigenschap

Een lid van de FontStretch klasse die de gewenste teken-stretching kenmerken specificeert die moeten worden gebruikt. De standaardwaarde is Normal.

Voorbeelden

In het volgende voorbeeld ziet u hoe u het FontStretch kenmerk van een FlowDocument element instelt.

<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>

In het volgende voorbeeld ziet u hoe u de eigenschap FontStretch programmatisch instelt.

FlowDocument flowDoc = new FlowDocument(new Paragraph(new Run("A bit of text content...")));
// Set the desired column gap to 10 device independend pixels.
flowDoc.FontFamily = new FontFamily("Century Gothic");
flowDoc.FontSize = 12.0;
flowDoc.FontStretch = FontStretches.UltraExpanded;
flowDoc.FontStyle = FontStyles.Italic;
flowDoc.FontWeight = FontWeights.UltraBold;
Dim flowDoc As New FlowDocument(New Paragraph(New Run("A bit of text content...")))
' Set the desired column gap to 10 device independend pixels.
flowDoc.FontFamily = New FontFamily("Century Gothic")
flowDoc.FontSize = 12.0
flowDoc.FontStretch = FontStretches.UltraExpanded
flowDoc.FontStyle = FontStyles.Italic
flowDoc.FontWeight = FontWeights.UltraBold

Opmerkingen

Alle FontStretch instellingen op onderliggende elementen overschrijven deze instelling op het hoogste niveau.

Informatie over afhankelijkheidseigenschappen

Item Waarde
Id-veld FontStretchProperty
Eigenschappen van metagegevens ingesteld op true AffectsMeasure, , AffectsRenderInherits

Van toepassing op