RichTextBlock.FontStyle RichTextBlock.FontStyle RichTextBlock.FontStyle RichTextBlock.FontStyle Property

Definition

Gets or sets the font style for the content in this element.

public : FontStyle FontStyle { get; set; }
FontStyle FontStyle();

void FontStyle(FontStyle fontstyle);
public FontStyle FontStyle { get; set; }
Public ReadWrite Property FontStyle As FontStyle
<RichTextBlock FontStyle="fontStyleMemberName"/>

Property Value

The requested font style, which is a FontStyle enumeration named constant. The default is Normal.

Remarks

Set the FontStyle property to specify the default font stretch to use for all text in the RichTextBlock. You can override this value for specific text elements in the RichTextBlock by setting the TextElement.FontStyle property.

See also