Sprache

TextBlock.FontFamily Eigenschaft

Definition

Ruft die bevorzugte Schriftfamilie der obersten Ebene für den Textinhalt in diesem Element ab oder legt diese fest.

FontFamily FontFamily();

void FontFamily(FontFamily value);
public FontFamily FontFamily { get; set; }
var fontFamily = textBlock.fontFamily;
textBlock.fontFamily = fontFamily;
Public Property FontFamily As FontFamily
<TextBlock FontFamily="fontFamily" />
-or-
<TextBlock FontFamily="fontFamilyName[,fallbackFontFamilyName]" />
-or-
<TextBlock FontFamily="fontURI#fontFamily" />

Eigenschaftswert

Ein FontFamily -Objekt, das die bevorzugte Schriftartfamilie oder eine primäre bevorzugte Schriftartfamilie mit einer oder mehreren Fallbackschriftfamilien angibt. Informationen zu Standardeinstellungen finden Sie im Thema zur FontFamily-Klasse .

Gilt für: