FlowDocument.FontStretch 속성

정의

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

속성 값

FontStretch

사용하려는 글꼴 확장 특성을 지정하는 FontStretch 클래스의 멤버입니다. 기본값은 Normal입니다.

예제

다음 예제에서는 설정 하는 방법을 보여 줍니다 합니다 FontStretch 특성을 FlowDocument 요소입니다.

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

다음 예제에서는 설정 하는 방법의 FontStretch 속성 프로그래밍 방식으로 합니다.

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

설명

모든 FontStretch 자식 요소에 최상위 수준 설정을 재정의 합니다.

종속성 속성 정보

식별자 필드 FontStretchProperty
메타 데이터 속성 설정 true AffectsMeasure, AffectsRender, Inherits

적용 대상