Typography Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides access to a rich set of OpenType typography properties. This class cannot be inherited.

Inheritance Hierarchy

System.Object
  System.Windows.Documents.Typography

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

Syntax

'Declaration
Public NotInheritable Class Typography
public static class Typography

The Typography type exposes the following members.

Attached Properties

  Name Description
Public attached property AnnotationAlternates Gets or sets a value that specifies the index of an alternate annotation form.
Public attached property Capitals Gets or sets a FontCapitals enumerated value that indicates the capital form of the selected font.
Public attached property CapitalSpacing Gets or sets a value that determines whether inter-glyph spacing for all-capital text is globally adjusted to improve readability.
Public attached property CaseSensitiveForms Gets or sets a value that determines whether glyphs adjust their vertical position to better align with uppercase glyphs.
Public attached property ContextualAlternates Gets or sets a value that determines whether custom glyph forms can be used based upon the context of the text being rendered.
Public attached property ContextualLigatures Gets or sets a value that determines whether contextual ligatures are enabled.
Public attached property ContextualSwashes Gets or sets a value that specifies the index of a contextual swashes form.
Public attached property DiscretionaryLigatures Gets or sets a value that determines whether discretionary ligatures are enabled.
Public attached property EastAsianExpertForms Gets or sets a value that determines whether the standard Japanese font forms have been replaced with the corresponding preferred typographic forms.
Public attached property EastAsianLanguage Gets or sets a FontEastAsianLanguage enumerated value that indicates the version of glyphs to be used for a specific writing system or language.
Public attached property EastAsianWidths Gets or sets a FontEastAsianWidths enumerated value that indicates the proportional width to be used for Latin characters in an East Asian font.
Public attached property Fraction Gets or sets a FontFraction enumerated value that indicates the fraction style.
Public attached property HistoricalForms Gets or sets a value that determines whether historical forms are enabled.
Public attached property HistoricalLigatures Gets or sets a value that indicates whether historical ligatures are enabled.
Public attached property Kerning Gets or sets a value that indicates whether kerning is enabled.
Public attached property MathematicalGreek Gets or sets a value that indicates whether standard typographic font forms of Greek glyphs have been replaced with corresponding font forms commonly used in mathematical notation.
Public attached property NumeralAlignment Gets or sets a FontNumeralAlignment enumerated value that indicates the alignment of widths when using numerals.
Public attached property NumeralStyle Gets or sets a FontNumeralStyle enumerated value that determines the set of glyphs that are used to render numeric alternate font forms.
Public attached property SlashedZero Gets or sets a value that indicates whether a nominal zero font form should be replaced with a slashed zero.
Public attached property StandardLigatures Gets or sets a value that indicates whether standard ligatures are enabled.
Public attached property StandardSwashes Gets or sets a value that specifies the index of a standard swashes form.
Public attached property StylisticAlternates Gets or sets a value that specifies the index of a stylistic alternates form
Public attached property StylisticSet1 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet10 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet11 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet12 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet13 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet14 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet15 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet16 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet17 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet18 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet19 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet2 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet20 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet3 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet4 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet5 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet6 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet7 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet8 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property StylisticSet9 Gets or sets a value that indicates whether a stylistic set of a font form is enabled.
Public attached property Variants Gets or sets a FontVariants enumerated value that indicates a variation of the standard typographic form to be used.

Top

Methods

  Name Description
Public methodStatic member GetAnnotationAlternates Returns the value of the AnnotationAlternates attached property for a specified dependency object.
Public methodStatic member GetCapitals Returns the value of the Capitals attached property for a specified dependency object.
Public methodStatic member GetCapitalSpacing Returns the value of the CapitalSpacing attached property for a specified dependency object.
Public methodStatic member GetCaseSensitiveForms Returns the value of the CaseSensitiveForms attached property for a specified dependency object.
Public methodStatic member GetContextualAlternates Returns the value of the ContextualAlternates attached property for a specified dependency object.
Public methodStatic member GetContextualLigatures Returns the value of the ContextualLigatures attached property for a specified dependency object.
Public methodStatic member GetContextualSwashes Returns the value of the ContextualSwashes attached property for a specified dependency object.
Public methodStatic member GetDiscretionaryLigatures Returns the value of the DiscretionaryLigatures attached property for a specified dependency object.
Public methodStatic member GetEastAsianExpertForms Returns the value of the EastAsianExpertForms attached property for a specified dependency object.
Public methodStatic member GetEastAsianLanguage Returns the value of the EastAsianLanguage attached property for a specified dependency object.
Public methodStatic member GetEastAsianWidths Returns the value of the EastAsianWidths attached property for a specified dependency object.
Public methodStatic member GetFraction Returns the value of the Fraction attached property for a specified dependency object.
Public methodStatic member GetHistoricalForms Returns the value of the HistoricalForms attached property for a specified dependency object.
Public methodStatic member GetHistoricalLigatures Returns the value of the HistoricalLigatures attached property for a specified dependency object.
Public methodStatic member GetKerning Returns the value of the Kerning attached property for a specified dependency object.
Public methodStatic member GetMathematicalGreek Returns the value of the MathematicalGreek attached property for a specified dependency object.
Public methodStatic member GetNumeralAlignment Returns the value of the NumeralAlignment attached property for a specified dependency object.
Public methodStatic member GetNumeralStyle Returns the value of the NumeralStyle attached property for a specified dependency object.
Public methodStatic member GetSlashedZero Returns the value of the SlashedZero attached property for a specified dependency object.
Public methodStatic member GetStandardLigatures Returns the value of the StandardLigatures attached property for a specified dependency object.
Public methodStatic member GetStandardSwashes Returns the value of the StandardSwashes attached property for a specified dependency object.
Public methodStatic member GetStylisticAlternates Returns the value of the StylisticAlternates attached property for a specified dependency object.
Public methodStatic member GetStylisticSet1 Returns the value of the StylisticSet1 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet10 Returns the value of the StylisticSet10 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet11 Returns the value of the StylisticSet11 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet12 Returns the value of the StylisticSet12 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet13 Returns the value of the StylisticSet13 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet14 Returns the value of the StylisticSet14 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet15 Returns the value of the StylisticSet15 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet16 Returns the value of the StylisticSet16 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet17 Returns the value of the StylisticSet17 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet18 Returns the value of the StylisticSet18 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet19 Returns the value of the StylisticSet19 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet2 Returns the value of the StylisticSet2 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet20 Returns the value of the StylisticSet20 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet3 Returns the value of the StylisticSet3 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet4 Returns the value of the StylisticSet4 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet5 Returns the value of the StylisticSet5 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet6 Returns the value of the StylisticSet6 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet7 Returns the value of the StylisticSet7 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet8 Returns the value of the StylisticSet8 attached property for a specified dependency object.
Public methodStatic member GetStylisticSet9 Returns the value of the StylisticSet9 attached property for a specified dependency object.
Public methodStatic member GetVariants Returns the value of the Variants attached property for a specified dependency object.
Public methodStatic member SetAnnotationAlternates Sets the value of the AnnotationAlternates attached property for a specified dependency object.
Public methodStatic member SetCapitals Sets the value of the Capitals attached property for a specified dependency object.
Public methodStatic member SetCapitalSpacing Sets the value of the CapitalSpacing attached property for a specified dependency object.
Public methodStatic member SetCaseSensitiveForms Sets the value of the CaseSensitiveForms attached property for a specified dependency object.
Public methodStatic member SetContextualAlternates Sets the value of the ContextualAlternates attached property for a specified dependency object.
Public methodStatic member SetContextualLigatures Sets the value of the ContextualLigatures attached property for a specified dependency object.
Public methodStatic member SetContextualSwashes Sets the value of the ContextualSwashes attached property for a specified dependency object.
Public methodStatic member SetDiscretionaryLigatures Sets the value of the DiscretionaryLigatures attached property for a specified dependency object.
Public methodStatic member SetEastAsianExpertForms Sets the value of the EastAsianExpertForms attached property for a specified dependency object.
Public methodStatic member SetEastAsianLanguage Sets the value of the EastAsianLanguage attached property for a specified dependency object.
Public methodStatic member SetEastAsianWidths Sets the value of the EastAsianWidths attached property for a specified dependency object.
Public methodStatic member SetFraction Sets the value of the Fraction attached property for a specified dependency object.
Public methodStatic member SetHistoricalForms Sets the value of the HistoricalForms attached property for a specified dependency object.
Public methodStatic member SetHistoricalLigatures Sets the value of the HistoricalLigatures attached property for a specified dependency object.
Public methodStatic member SetKerning Sets the value of the Kerning attached property for a specified dependency object.
Public methodStatic member SetMathematicalGreek Sets the value of the MathematicalGreek attached property for a specified dependency object.
Public methodStatic member SetNumeralAlignment Sets the value of the NumeralAlignment attached property for a specified dependency object.
Public methodStatic member SetNumeralStyle Sets the value of the NumeralStyle attached property for a specified dependency object.
Public methodStatic member SetSlashedZero Sets the value of the SlashedZero attached property for a specified dependency object.
Public methodStatic member SetStandardLigatures Sets the value of the StandardLigatures attached property for a specified dependency object.
Public methodStatic member SetStandardSwashes Sets the value of the StandardSwashes attached property for a specified dependency object.
Public methodStatic member SetStylisticAlternates Sets the value of the StylisticAlternates attached property for a specified dependency object.
Public methodStatic member SetStylisticSet1 Sets the value of the StylisticSet1 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet10 Sets the value of the StylisticSet10 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet11 Sets the value of the StylisticSet11 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet12 Sets the value of the StylisticSet12 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet13 Sets the value of the StylisticSet13 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet14 Sets the value of the StylisticSet14 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet15 Sets the value of the StylisticSet15 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet16 Sets the value of the StylisticSet16 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet17 Sets the value of the StylisticSet17 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet18 Sets the value of the StylisticSet18 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet19 Sets the value of the StylisticSet19 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet2 Sets the value of the StylisticSet2 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet20 Sets the value of the StylisticSet20 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet3 Sets the value of the StylisticSet3 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet4 Sets the value of the StylisticSet4 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet5 Sets the value of the StylisticSet5 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet6 Sets the value of the StylisticSet6 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet7 Sets the value of the StylisticSet7 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet8 Sets the value of the StylisticSet8 attached property for a specified dependency object.
Public methodStatic member SetStylisticSet9 Sets the value of the StylisticSet9 attached property for a specified dependency object.
Public methodStatic member SetVariants Sets the value of the Variants attached property for a specified dependency object.

Top

Fields

  Name Description
Public fieldStatic member AnnotationAlternatesProperty Identifies the AnnotationAlternates dependency property.
Public fieldStatic member CapitalSpacingProperty Identifies the CapitalSpacing dependency property.
Public fieldStatic member CapitalsProperty Identifies the Capitals dependency property.
Public fieldStatic member CaseSensitiveFormsProperty Identifies the CaseSensitiveForms dependency property.
Public fieldStatic member ContextualAlternatesProperty Identifies the ContextualAlternates dependency property.
Public fieldStatic member ContextualLigaturesProperty Identifies the ContextualLigatures dependency property.
Public fieldStatic member ContextualSwashesProperty Identifies the ContextualSwashes dependency property.
Public fieldStatic member DiscretionaryLigaturesProperty Identifies the DiscretionaryLigatures dependency property.
Public fieldStatic member EastAsianExpertFormsProperty Identifies the EastAsianExpertForms dependency property.
Public fieldStatic member EastAsianLanguageProperty Identifies the EastAsianLanguage dependency property.
Public fieldStatic member EastAsianWidthsProperty Identifies the EastAsianWidths dependency property.
Public fieldStatic member FractionProperty Identifies the Fraction dependency property.
Public fieldStatic member HistoricalFormsProperty Identifies the HistoricalForms dependency property.
Public fieldStatic member HistoricalLigaturesProperty Identifies the HistoricalLigatures dependency property.
Public fieldStatic member KerningProperty Identifies the Kerning dependency property.
Public fieldStatic member MathematicalGreekProperty Identifies the MathematicalGreek dependency property.
Public fieldStatic member NumeralAlignmentProperty Identifies the NumeralAlignment dependency property.
Public fieldStatic member NumeralStyleProperty Identifies the NumeralStyle dependency property.
Public fieldStatic member SlashedZeroProperty Identifies the SlashedZero dependency property.
Public fieldStatic member StandardLigaturesProperty Identifies the StandardLigatures dependency property.
Public fieldStatic member StandardSwashesProperty Identifies the StandardSwashes dependency property.
Public fieldStatic member StylisticAlternatesProperty Identifies the StylisticAlternates dependency property.
Public fieldStatic member StylisticSet10Property Identifies the StylisticSet10 dependency property.
Public fieldStatic member StylisticSet11Property Identifies the StylisticSet11 dependency property.
Public fieldStatic member StylisticSet12Property Identifies the StylisticSet12 dependency property.
Public fieldStatic member StylisticSet13Property Identifies the StylisticSet13 dependency property.
Public fieldStatic member StylisticSet14Property Identifies the StylisticSet14 dependency property.
Public fieldStatic member StylisticSet15Property Identifies the StylisticSet15 dependency property.
Public fieldStatic member StylisticSet16Property Identifies the StylisticSet16 dependency property.
Public fieldStatic member StylisticSet17Property Identifies the StylisticSet17 dependency property.
Public fieldStatic member StylisticSet18Property Identifies the StylisticSet18 dependency property.
Public fieldStatic member StylisticSet19Property Identifies the StylisticSet19 dependency property.
Public fieldStatic member StylisticSet1Property Identifies the StylisticSet1 dependency property.
Public fieldStatic member StylisticSet20Property Identifies the StylisticSet20 dependency property.
Public fieldStatic member StylisticSet2Property Identifies the StylisticSet2 dependency property.
Public fieldStatic member StylisticSet3Property Identifies the StylisticSet3 dependency property.
Public fieldStatic member StylisticSet4Property Identifies the StylisticSet4 dependency property.
Public fieldStatic member StylisticSet5Property Identifies the StylisticSet5 dependency property.
Public fieldStatic member StylisticSet6Property Identifies the StylisticSet6 dependency property.
Public fieldStatic member StylisticSet7Property Identifies the StylisticSet7 dependency property.
Public fieldStatic member StylisticSet8Property Identifies the StylisticSet8 dependency property.
Public fieldStatic member StylisticSet9Property Identifies the StylisticSet9 dependency property.
Public fieldStatic member VariantsProperty Identifies the Variants dependency property.

Top

Remarks

The Typography object exposes the set of features that an OpenType font supports. By setting the properties of Typography in markup or code, you can easily author documents that take advantage of OpenType features.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.