Show / Hide Table of Contents

Class FlowDocumentTypographyExtensions

Fluent type extensions for manipulating objects FlowDocument focused on typographic settings.

Inheritance
object
FlowDocumentTypographyExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.Wpf.FlowDocumentExtensions.dll
Syntax
public static class FlowDocumentTypographyExtensions

Methods

| Edit this page View Source

TypographyAnnotationAlternates<TElement>(TElement, int)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyAnnotationAlternates<TElement>(this TElement element, int value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

int value

Index of the alternative annotation format.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyCapitalSpacing<TElement>(TElement, bool)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyCapitalSpacing<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

if set to true, the spacing between uppercase glyphs will be globally adjusted to improve readability.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyCaseSensitiveForms<TElement>(TElement, bool)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyCaseSensitiveForms<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

If set to true, the vertical position of the glyphs will be adjusted for better alignment with uppercase glyphs.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyContextualAlternates<TElement>(TElement, bool)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyContextualAlternates<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

If set to true, custom glyphs will be used based on the context of the text being processed.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyContextualLigatures<TElement>(TElement, bool)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyContextualLigatures<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

If set to true, contextual ligatures will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyContextualSwashes<TElement>(TElement, int)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyContextualSwashes<TElement>(this TElement element, int value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

int value

Specifies the index of a contextual swash glyph form.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyDiscretionaryLigatures<TElement>(TElement, bool)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyDiscretionaryLigatures<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

If set to true, discretionary ligatures will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyEastAsianExpertForms<TElement>(TElement, bool)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyEastAsianExpertForms<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

If set to true, standard Japanese font formats will be replaced with the corresponding preferred typographic formats.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyEastAsianLanguage<TElement>(TElement, FontEastAsianLanguage)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyEastAsianLanguage<TElement>(this TElement element, FontEastAsianLanguage value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

FontEastAsianLanguage value

Glyphs that will be used for a specific language or writing system for East Asia.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyEastAsianWidths<TElement>(TElement, FontEastAsianWidths)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyEastAsianWidths<TElement>(this TElement element, FontEastAsianWidths value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

FontEastAsianWidths value

Width of Latin characters in an Asian style font.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyFontCapitals<TElement>(TElement, FontCapitals)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyFontCapitals<TElement>(this TElement element, FontCapitals value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

FontCapitals value

Uppercase letter style for a typography.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyFontNumeralAlignment<TElement>(TElement, FontNumeralAlignment)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyFontNumeralAlignment<TElement>(this TElement element, FontNumeralAlignment value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

FontNumeralAlignment value

Numeral alignment to use.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyFontNumeralStyle<TElement>(TElement, FontNumeralStyle)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyFontNumeralStyle<TElement>(this TElement element, FontNumeralStyle value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

FontNumeralStyle value

Numeral style to use.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyFraction<TElement>(TElement, FontFraction)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyFraction<TElement>(this TElement element, FontFraction value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

FontFraction value

Fraction representation style to use.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyHistoricalForms<TElement>(TElement, bool)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyHistoricalForms<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether the use of standard forms will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyHistoricalLigatures<TElement>(TElement, bool)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyHistoricalLigatures<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether the use of historical ligatures will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyKerning<TElement>(TElement, bool)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyKerning<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether kerning will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyMathematicalGreek<TElement>(TElement, bool)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyMathematicalGreek<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether the standard glyphs used in mathematical notation with Greek symbols have been replaced by standard versions used in mathematical notation.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographySlashedZero<TElement>(TElement, bool)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographySlashedZero<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether the glyph to be used to represent the numeral digit zero (0) will be drawn in its slashed version.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStandardLigatures<TElement>(TElement, bool)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyStandardLigatures<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether the use of standard ligatures will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStandardSwashes<TElement>(TElement, int)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyStandardSwashes<TElement>(this TElement element, int value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

int value

Index of the standard form of typographic characters.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticAlternates<TElement>(TElement, int)

Manipulates the typographic information of the TextElement.

Declaration
public static TElement TypographyStylisticAlternates<TElement>(this TElement element, int value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

int value

Stylistic alternative to use.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet10<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 10 for the TextElement.

Declaration
public static TElement TypographyStylisticSet10<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet11<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 11 for the TextElement.

Declaration
public static TElement TypographyStylisticSet11<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet12<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 12 for the TextElement.

Declaration
public static TElement TypographyStylisticSet12<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet13<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 13 for the TextElement.

Declaration
public static TElement TypographyStylisticSet13<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet14<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 14 for the TextElement.

Declaration
public static TElement TypographyStylisticSet14<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet15<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 15 for the TextElement.

Declaration
public static TElement TypographyStylisticSet15<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet16<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 16 for the TextElement.

Declaration
public static TElement TypographyStylisticSet16<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet17<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 17 for the TextElement.

Declaration
public static TElement TypographyStylisticSet17<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet18<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 18 for the TextElement.

Declaration
public static TElement TypographyStylisticSet18<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet19<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 19 for the TextElement.

Declaration
public static TElement TypographyStylisticSet19<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet1<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 1 for the TextElement.

Declaration
public static TElement TypographyStylisticSet1<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet20<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 20 for the TextElement.

Declaration
public static TElement TypographyStylisticSet20<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet2<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 2 for the TextElement.

Declaration
public static TElement TypographyStylisticSet2<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet3<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 3 for the TextElement.

Declaration
public static TElement TypographyStylisticSet3<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet4<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 4 for the TextElement.

Declaration
public static TElement TypographyStylisticSet4<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet5<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 5 for the TextElement.

Declaration
public static TElement TypographyStylisticSet5<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet6<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 6 for the TextElement.

Declaration
public static TElement TypographyStylisticSet6<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet7<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 7 for the TextElement.

Declaration
public static TElement TypographyStylisticSet7<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet8<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 8 for the TextElement.

Declaration
public static TElement TypographyStylisticSet8<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyStylisticSet9<TElement>(TElement, bool)

Enables the use of the stylistic set of fonts number 9 for the TextElement.

Declaration
public static TElement TypographyStylisticSet9<TElement>(this TElement element, bool value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

bool value

Flag indicating whether this typographic set will be enabled.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

| Edit this page View Source

TypographyVariants<TElement>(TElement, FontVariants)

Sets the typographic variant to use for drawing the TextElement.

Declaration
public static TElement TypographyVariants<TElement>(this TElement element, FontVariants value) where TElement : TextElement
Parameters
Type Name Description
TElement element

TextElement to manipulate.

FontVariants value

Typographic variant to use for drawing the TextElement.

Returns
Type Description
TElement

element, allowing this function to be used with Fluent syntax.

Type Parameters
Name Description
TElement

Type of the TextElement to manipulate.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX