LanguagePreferences
Contenu
[
Cacher
]LoadOptions.LanguagePreferences property
Obtient les préférences de langue qui seront utilisées lors du chargement du document.
public LanguagePreferences LanguagePreferences { get; }
Exemples
Montre comment appliquer les préférences de langue lors du chargement d’un document.
LoadOptions loadOptions = new LoadOptions();
loadOptions.LanguagePreferences.AddEditingLanguage(EditingLanguage.Japanese);
Document doc = new Document(MyDir + "No default editing language.docx", loadOptions);
int localeIdFarEast = doc.Styles.DefaultFont.LocaleIdFarEast;
Console.WriteLine(localeIdFarEast == (int)EditingLanguage.Japanese
? "The document either has no any FarEast language set in defaults or it was set to Japanese originally."
: "The document default FarEast language was set to another than Japanese language originally, so it is not overridden.");
Voir également
- class LanguagePreferences
- class LoadOptions
- espace de noms Aspose.Words.Loading
- Assemblée Aspose.Words