Aracılığıyla paylaş


FlowDocument.FontStretch Özellik

Tanım

için FlowDocumenten üst düzey yazı tipi esnetme özelliklerini alır veya ayarlar.

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

Özellik Değeri

Kullanılacak istenen yazı tipi esnetme özelliklerini belirten sınıfının bir üyesi FontStretch . Varsayılan değer: Normal.

Örnekler

Aşağıdaki örnekte bir FlowDocument öğenin özniteliğinin FontStretch nasıl ayarlanacağı gösterilmektedir.

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

Aşağıdaki örnekte, FontStretch özelliğinin program aracılığıyla nasıl ayarlanacağı gösterilmektedir.

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

Açıklamalar

Alt öğelerdeki tüm FontStretch ayarlar bu üst düzey ayarı geçersiz kılar.

Bağımlılık Özelliği Bilgileri

Öğe Değer
Tanımlayıcı alanı FontStretchProperty
Meta veri özellikleri olarak ayarlandı true AffectsMeasure, AffectsRender, Inherits

Şunlara uygulanır