This documentation is archived and is not being maintained.
FlowDocument::Typography Property
Visual Studio 2010
Gets the currently effective typography variations for the text contents of the FlowDocument.
Assembly: PresentationFramework (in PresentationFramework.dll)
Property Value
Type: System.Windows.Documents::TypographyA Typography object that specifies the currently effective typography variations. For a list of default typography values, see Typography.
The Typography property is applicable only to OpenType fonts. A typography variant has no effect on fonts that do not support the variant. For more information on this topic, see Typography in WPF.
The following example shows how to set various typography variations with the Typography attribute of a FlowDocument element.
<FlowDocumentReader> <FlowDocument Typography.Capitals="SmallCaps" Typography.CapitalSpacing="True" Typography.CaseSensitiveForms="True" Typography.ContextualAlternates="False" Typography.ContextualLigatures="False" Typography.DiscretionaryLigatures="True" Typography.EastAsianExpertForms="True" Typography.EastAsianLanguage="Traditional" Typography.EastAsianWidths="Proportional" Typography.Fraction="Stacked" Typography.HistoricalForms="True" Typography.HistoricalLigatures="True" Typography.Kerning="False" Typography.MathematicalGreek="True" Typography.NumeralAlignment="Proportional" Typography.NumeralStyle="OldStyle" Typography.SlashedZero="True" Typography.StandardLigatures="False" Typography.Variants="Ruby" > <Paragraph Background="GhostWhite"> This FlowDocument has numerous typography variations applied. </Paragraph> </FlowDocument> </FlowDocumentReader>
The following example shows how to set various aspects of the Typography property programmatically.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: