EditingLanguage

EditingLanguage enumeration

指定编辑语言。

public enum EditingLanguage

价值观

姓名价值描述
Afrikaans1078
Albanian1052
Alsatian1156
Amharic1118
ArabicAlgeria5121
ArabicBahrain15361
ArabicEgypt3073
ArabicIraq2049
ArabicJordan11265
ArabicKuwait13313
ArabicLebanon12289
ArabicLibya4097
ArabicMorocco6145
ArabicOman8193
ArabicQatar16385
ArabicSaudiArabia1025
ArabicSyria10241
ArabicTunisia7169
ArabicUAE14337
ArabicYemen9217
Armenian1067
Assamese1101
AzerbaijaniCyrillic2092
AzerbaijaniLatin1068
BanglaBangladesh2117
BanglaIndia1093
Bashkir1133
Basque1069
Belarusian1059
BosnianCyrillic8218
BosnianLatin5146
Breton1150
Bulgarian1026
Burmese1109
Catalan1027
CentralKurdishIraq1170
Cherokee1116
ChineseHongKong3076
ChineseMacao5124
ChinesePRC2052
ChineseSingapore4100
ChineseTaiwan1028
Corsican1155
CroatianBozniaAndHerzegovina4122
Croatian1050
Czech1029
Danish1030
Divehi1125
DutchBelgium2067
DutchNetherlands1043
Edo1126
EnglishAustralia3081
EnglishBelize10249
EnglishCanada4105
EnglishCaribbean9225
EnglishHongKong15369
EnglishIndia16393
EnglishIndonesia14345
EnglishIreland6153
EnglishJamaica8201
EnglishMalaysia17417
EnglishNewZealand5129
EnglishPhilippines13321
EnglishSingapore18441
EnglishSouthAfrica7177
EnglishTrinidadAndTobago11273
EnglishUK2057
EnglishUS1033
EnglishZimbabwe12297
Estonian1061
Faeroese1080
Filipino1124
Finnish1035
FrenchBelgium2060
FrenchCanada3084
FrenchFrance1036
FrenchLuxembourg5132
FrenchMonaco6156
FrenchSwitzerland4108
Frisian1122
FulahLatinSenegal2151
FulahNigeria1127
Galician1110
Georgian1079
GermanAustria3079
GermanGermany1031
GermanLiechtenstein5127
GermanLuxembourg4103
GermanSwitzerland2055
Greek1032
Greenlandic1135
Guarani1140
Gujarati1095
Hausa1128
Hawaiian1141
Hebrew1037
Hindi1081
Hungarian1038
Icelandic1039
Igbo1136
InariSamiFinland9275
Indonesian1057
InuktitutLatin31837
InuktitutSyllabics30813
Irish2108
IsiXhosa1076
IsiZulu1077
ItalianItaly1040
ItalianSwitzerland2064
Japanese1041
Kannada1099
Kanuri1137
Kashmiri2144
KashmiriArabic1120
Kazakh1087
Khmer1107
Kiche31878
Kinyarwanda1159
Kiswahili1089
Konkani1111
Korean1042
Kyrgyz1088
Lao1108
Latin1142
Latvian1062
Lithuanian1063
LowerSorbian31790
LuleSamiNorway4155
LuleSamiSweden5179
Luxembougish1134
Macedonian1071
MalayMalaysia1086
MalayBruneiDarussalam2110
Malayalam1100
Maltese1082
Manipuri1112
Maori1153
MapudungunChile1146
Marathi1102
Mohawk1148
MongolianCyrillic1104
MongolianMongolian2128
Nepali1121
NorthernSamiFinland3131
NorthernSamiNorway1083
NorthernSamiSweden2107
NorwegianBokmal1044
NorwegianNynorsk2068
Oriya1096
Oromo1138
Papiamentu1145
Pashto1123
Persian1065
Polish1045
PortugueseBrazil1046
PortuguesePortugal2070
PunjabiIndia1094
PunjabiPakistan2118
QuechuaBolivia1131
QuechuaEcuador2155
QuechuaPeru3179
Romanian1048
Romansh1047
Russian1049
Sakha1157
Sanskrit1103
ScottishGaelic1169
SerbianCyrillicBosniaAndHerzegovina7194
SerbianCyrillicSerbiaAndMontenegro3098
SerbianLatinBosniaAndHerzegovina6170
SerbianLatinSerbiaAndMontenegro2074
Sindhi2137
SindhiDevanagaric1113
Sinhalese1115
Slovak1051
Slovenian1060
Somali1143
Sorbian1070
SpanishArgentina11274
SpanishBolivia16394
SpanishChile13322
SpanishColombia9226
SpanishCostaRica5130
SpanishDominicanRepublic7178
SpanishEcuador12298
SpanishElSalvador17418
SpanishGuatemala4106
SpanishHonduras18442
SpanishMexico2058
SpanishNicaragua19466
SpanishPanama6154
SpanishParaguay15370
SpanishPeru10250
SpanishPuertoRico20490
SpanishSpainModernSort3082
SpanishSpainTraditionalSort1034
SpanishUruguay14346
SpanishVenezuela8202
Sutu1072
SwedishFinland2077
SwedishSweden1053
Syriac1114
Tajik1064
Tamazight1119
TamazightLatin2143
Tamil1097
Tatar1092
Telugu1098
Thai1054
TibetanButan2129
TibetanChina1105
TigrignaEritrea2163
TigrignaEthiopia1139
Tsonga1073
Tswana1074
Turkish1055
Turkmen1090
Ukrainian1058
Urdu1056
UzbekCyrillic2115
UzbekLatin1091
Venda1075
Vietnamese1066
Welsh1106
Yi1144
Yiddish1085
Yoruba1130

例子

演示如何在加载文档时应用语言首选项。

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.");

也可以看看