VegaRise.NET
Back to DOM

LanguagesClass

Definition

Namespace
DOM.Styles
Assembly
DOM.dll

Represents language/culture preferences for different script categories used by the document.

Remarks

groups values that indicate the intended language or locale for specific script categories (Latin, complex scripts, East Asian). Rendering, spell-checking, hyphenation and font selection logic can consult these values to make locale-aware decisions. Properties are nullable so consumers can fall back to document-wide or system defaults when a specific script language is not specified. Languages CultureInfo Languages are applied per text run through . Languages

Examples

csharp
1// 1. English document
2var langs = new Languages
3{
4 Latin = new CultureInfo("en-US")
5};
6
csharp
1// 2. French document
2var langs = new Languages
3{
4 Latin = new CultureInfo("fr-FR")
5};
6
csharp
1// 3. Multilingual document (Latin + CJK + RTL)
2var langs = new Languages
3{
4 Latin = new CultureInfo("en-US"),
5 EastAsia = new CultureInfo("ja-JP"),
6 ComplexScripts = new CultureInfo("ar-SA")
7};
8
csharp
1// 4. Attach to a TextStyle
2var style = new TextStyle
3{
4 Languages = new Languages { Latin = new CultureInfo("de-DE") }
5};
6
csharp
1// 5. Null values for fallback
2var langs = new Languages();
3// The document or system default language is used by the consumer.
4

Properties

ComplexScriptsCultureInfo

Gets or sets the culture information for complex-script languages (such as Arabic or Hebrew).

EastAsiaCultureInfo

Gets or sets the culture information for East Asian script text (CJK).

LatinCultureInfo

Gets or sets the culture information for Latin (Western) script text.

VegaRiseVDocs.NET

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in