DefaultEditingLanguage
LanguagePreferences.DefaultEditingLanguage property
Varsayılan düzenleme dilini alır veya ayarlar.
Varsayılan değer:EnglishUS.
public EditingLanguage DefaultEditingLanguage { get; set; }
Örnekler
Bir belgeyi yüklerken varsayılan dilin nasıl ayarlanacağını gösterir.
LoadOptions loadOptions = new LoadOptions();
loadOptions.LanguagePreferences.DefaultEditingLanguage = EditingLanguage.Russian;
Document doc = new Document(MyDir + "No default editing language.docx", loadOptions);
int localeId = doc.Styles.DefaultFont.LocaleId;
Console.WriteLine(localeId == (int)EditingLanguage.Russian
? "The document either has no any language set in defaults or it was set to Russian originally."
: "The document default language was set to another than Russian language originally, so it is not overridden.");
Ayrıca bakınız
- enum EditingLanguage
- class LanguagePreferences
- ad alanı Aspose.Words.Loading
- toplantı Aspose.Words