Share via


Typeface.Stretch Proprietà

Definizione

Ottiene il valore di estensione per Typeface. Il valore di estensione determina se un carattere tipografico è espanso o ridotto quando viene visualizzato.

public:
 property System::Windows::FontStretch Stretch { System::Windows::FontStretch get(); };
public System.Windows.FontStretch Stretch { get; }
member this.Stretch : System.Windows.FontStretch
Public ReadOnly Property Stretch As FontStretch

Valore della proprietà

Valore FontStretch che rappresenta il valore di estensione per il carattere tipografico.

Esempio

// Get the font stretch value for the typeface.
FontStretch fontStretch = typeface.Stretch;

if (fontStretch == FontStretches.Condensed)
{
    // Perform action based on condensed stretch value.
}
' Get the font stretch value for the typeface.
Dim fontStretch As FontStretch = typeface.Stretch

If fontStretch = FontStretches.Condensed Then
    ' Perform action based on condensed stretch value.
End If

Commenti

Un valore di estensione del tipo di carattere descrive il grado di estensione di una maschera del carattere rispetto alle proporzioni normali, ovvero il rapporto di larghezza/altezza originale specificato per i glifi nel tipo di carattere.

Si applica a