Compartir por


FlowDocument.FontStretch Propiedad

Definición

Obtiene o establece las características de ajuste de fuentes de nivel superior para .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

Valor de propiedad

Miembro de la FontStretch clase que especifica las características deseadas de extensión de fuentes que se van a usar. El valor predeterminado es Normal.

Ejemplos

En el ejemplo siguiente se muestra cómo establecer el FontStretch atributo de un FlowDocument elemento .

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

En el ejemplo siguiente se muestra cómo establecer la FontStretch propiedad mediante programación.

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

Comentarios

Cualquier FontStretch configuración de los elementos secundarios invalida esta configuración de nivel superior.

Información de la propiedad dependency

Elemento Importancia
Campo identificador FontStretchProperty
Propiedades de metadatos establecidas en true AffectsMeasure, , AffectsRender, Inherits

Se aplica a