LanguagePreferencesDefaultEditingLanguage Property

Gets or sets default editing language.

The default value is EnglishUS.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public EditingLanguage DefaultEditingLanguage { get; set; }

Property Value

Type: EditingLanguage
Examples
Shows how to set language as default
LoadOptions loadOptions = new LoadOptions();
// You can set language which only
loadOptions.LanguagePreferences.DefaultEditingLanguage = EditingLanguage.Russian;

Document doc = new Document(MyDir + "Document.docx", loadOptions);

int localeId = doc.Styles.DefaultFont.LocaleId;
Console.WriteLine(localeId == (int) EditingLanguage.Russian
    ? "The document either has no any language set in defaults or it was set to Russian originally."
    : "The document default language was set to another than Russian language originally, so it is not overridden.");
See Also