Table of Contents

Property DefaultLanguage

Namespace
DocWright.Layout
Assembly
DocWright.Layout.dll

DefaultLanguage

Gets the document's default language tag from the document defaults, or null when none is declared.

public string? DefaultLanguage { get; }

Property Value

string

Remarks

This is the document-wide default (w:docDefaults/w:rPrDefault/w:rPr/w:lang), not a summary of the languages runs actually use. A tagged PDF needs one value for the catalog's /Lang, and the declared default is the only honest answer — picking the most frequent run language, or the first one seen, would be a guess presented to a screen reader as a fact.