FlowDocument::FontStyle Property


Gets or sets the top-level font style for the FlowDocument.

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

property FontStyle FontStyle {
	FontStyle get();
	void set(FontStyle value);

Property Value

Type: System.Windows::FontStyle

A member of the FontStyles class that specifies the desired font style. The default is determined by the SystemFonts::MessageFontStyle value.

Any FontStyle settings on child elements override this top-level setting.

The following example shows how to set the FontStyle attribute of a FlowDocument element.

    FontFamily="Century Gothic"
      Any font settings on this paragraph would override the font settings
      for the FlowDocument.

The following example shows how to set the FontStyle property programmatically.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top