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