default_editing_language property

LanguagePreferences.default_editing_language property

Gets or sets default editing language.

The default value is EnglishUS.

@property
def default_editing_language(self) -> aspose.words.loading.EditingLanguage:
    ...

@default_editing_language.setter
def default_editing_language(self, value: aspose.words.loading.EditingLanguage):
    ...

Examples

Shows how set a default language when loading a document.

load_options = aw.loading.LoadOptions()
load_options.language_preferences.default_editing_language = aw.loading.EditingLanguage.RUSSIAN
doc = aw.Document(MY_DIR + 'No default editing language.docx', load_options)
locale_id = doc.styles.default_font.locale_id
if locale_id == aw.loading.EditingLanguage.RUSSIAN:
    print('The document either has no any language set in defaults or it was set to Russian originally.')
else:
    print('The document default language was set to another than Russian language originally, so it is not overridden.')

See Also