AddEditingLanguage
LanguagePreferences.AddEditingLanguage method
添加额外的编辑语言。
public void AddEditingLanguage(EditingLanguage language)
例子
演示如何在加载文档时应用语言首选项。
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.");
也可以看看
- enum EditingLanguage
- class LanguagePreferences
- 命名空间 Aspose.Words.Loading
- 部件 Aspose.Words