LanguagePreferences
Contenido
[
Ocultar
]LoadOptions.LanguagePreferences property
Obtiene las preferencias de idioma que se utilizarán cuando se cargue el documento.
public LanguagePreferences LanguagePreferences { get; }
Ejemplos
Muestra cómo aplicar preferencias de idioma al cargar 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.");
Ver también
- class LanguagePreferences
- class LoadOptions
- espacio de nombres Aspose.Words.Loading
- asamblea Aspose.Words