LanguagePreferences
Contenuti
[
Nascondere
]LoadOptions.LanguagePreferences property
Ottiene le preferenze della lingua che verranno utilizzate durante il caricamento del documento.
public LanguagePreferences LanguagePreferences { get; }
Esempi
Mostra come applicare le preferenze della lingua durante il caricamento di un documento.
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.");
Guarda anche
- class LanguagePreferences
- class LoadOptions
- spazio dei nomi Aspose.Words.Loading
- assemblea Aspose.Words