Свойство TextRange.LanguageID (PowerPoint)
Возвращает или задает язык для указанного текстового диапазона. Для чтения и записи.
Синтаксис
выражение. LanguageID
Выражение Переменная, представляющая объект TextRange .
Возвращаемое значение
MsoLanguageID
Замечания
Свойство LanguageID используется для маркировки частей текста, написанных на языке, отличном от указанного в свойстве DefaultLanguageID . Это позволяет Microsoft PowerPoint проверять орфографию и грамматику в соответствии с языком для каждого текстового диапазона. Это свойство не связано с языком интерфейса приложения.
Значение свойства LanguageID может быть одной из этих констант MsoLanguageID .
msoLanguageIDAfrikaans |
msoLanguageIDAlbanian |
msoLanguageIDAmharic |
msoLanguageIDArabic |
msoLanguageIDArabicAlgeria |
msoLanguageIDArabicBahrain |
msoLanguageIDArabicEgypt |
msoLanguageIDArabicIraq |
msoLanguageIDArabicJordan |
msoLanguageIDArabicKuwait |
msoLanguageIDArabicLebanon |
msoLanguageIDArabicLibya |
msoLanguageIDArabicMorocco |
msoLanguageIDArabicOman |
msoLanguageIDArabicQatar |
msoLanguageIDArabicSyria |
msoLanguageIDArabicTunisia |
msoLanguageIDArabicUAE |
msoLanguageIDArabicYemen |
msoLanguageIDArmenian |
msoLanguageIDAssamese |
msoLanguageIDAzeriCyrillic |
msoLanguageIDAzeriLatin |
msoLanguageIDBasque |
msoLanguageIDBelgianDutch |
msoLanguageIDBelgianFrench |
msoLanguageIDBengali |
msoLanguageIDBrazilianPortuguese |
msoLanguageIDBulgarian |
msoLanguageIDBurmese |
msoLanguageIDByelorussian |
msoLanguageIDCatalan |
msoLanguageIDCherokee |
msoLanguageIDChineseHongKong |
msoLanguageIDChineseMacao |
msoLanguageIDChineseSingapore |
msoLanguageIDCroatian |
msoLanguageIDCzech |
msoLanguageIDDanish |
msoLanguageIDDutch |
msoLanguageIDEnglishAUS |
msoLanguageIDEnglishBelize |
msoLanguageIDEnglishCanadian |
msoLanguageIDEnglishCaribbean |
msoLanguageIDEnglishIreland |
msoLanguageIDEnglishJamaica |
msoLanguageIDEnglishNewZealand |
msoLanguageIDEnglishPhilippines |
msoLanguageIDEnglishSouthAfrica |
msoLanguageIDEnglishTrinidad |
msoLanguageIDEnglishUK |
msoLanguageIDEnglishUS |
msoLanguageIDEnglishZimbabwe |
msoLanguageIDEstonian |
msoLanguageIDFaeroese |
msoLanguageIDFarsi |
msoLanguageIDFinnish |
msoLanguageIDFrench |
msoLanguageIDFrenchCameroon |
msoLanguageIDFrenchCanadian |
msoLanguageIDFrenchCotedIтов |
msoLanguageIDFrenchLuxembourg |
msoLanguageIDFrenchMali |
msoLanguageIDFrenchMonaco |
msoLanguageIDFrenchReunion |
msoLanguageIDFrenchSenegal |
msoLanguageIDFrenchWestIndies |
msoLanguageIDFrenchZaire |
msoLanguageIDFrisianNetherlands |
msoLanguageIDGaelicIreland |
msoLanguageIDGaelicScotland |
msoLanguageIDGalician |
msoLanguageIDGeorgian |
msoLanguageIDGerman |
msoLanguageIDGermanAustria |
msoLanguageIDGermanLiechtenstein |
msoLanguageIDGermanLuxembourg |
msoLanguageIDGreek |
msoLanguageIDGujarati |
msoLanguageIDHebrew |
msoLanguageIDHindi |
msoLanguageIDHungarian |
msoLanguageIDIcelandic |
msoLanguageIDIndonesian |
msoLanguageIDInuktitut |
msoLanguageIDItalian |
msoLanguageIDJapanese |
msoLanguageIDKannada |
msoLanguageIDKashmiri |
msoLanguageIDKazakh |
msoLanguageIDKhmer |
msoLanguageIDKirghiz |
msoLanguageIDKonkani |
msoLanguageIDKorean |
msoLanguageIDLao |
msoLanguageIDLatvian |
msoLanguageIDLithuanian |
msoLanguageIDMacedonian |
msoLanguageIDMalayalam |
msoLanguageIDMalayBruneiDarussalam |
msoLanguageIDMalaysian |
msoLanguageIDMaltese |
msoLanguageIDManipuri |
msoLanguageIDMarathi |
msoLanguageIDMexicanSpanish |
msoLanguageIDMixed |
msoLanguageIDMongolian |
msoLanguageIDNepali |
msoLanguageIDNone |
msoLanguageIDNoProofing |
msoLanguageIDNorwegianBokmol |
msoLanguageIDNorwegianNynorsk |
msoLanguageIDOriya |
msoLanguageIDPolish |
msoLanguageIDPunjabi |
msoLanguageIDRhaetoRomanic |
msoLanguageIDRomanian |
msoLanguageIDRomanianMoldova |
msoLanguageIDRussian |
msoLanguageIDRussianMoldova |
msoLanguageIDSamiLappish |
msoLanguageIDSanskrit |
msoLanguageIDSerbianCyrillic |
msoLanguageIDSerbianLatin |
msoLanguageIDSesotho |
msoLanguageIDSimplifiedChinese |
msoLanguageIDSindhi |
msoLanguageIDSlovak |
msoLanguageIDSlovenian |
msoLanguageIDSorbian |
msoLanguageIDSpanish |
msoLanguageIDSpanishArgentina |
msoLanguageIDSpanishBolivia |
msoLanguageIDSpanishChile |
msoLanguageIDSpanishColombia |
msoLanguageIDSpanishCostaRica |
msoLanguageIDSpanishDominicanRepublic |
msoLanguageIDSpanishEcuador |
msoLanguageIDSpanishElSalvador |
msoLanguageIDSpanishGuatemala |
msoLanguageIDSpanishHonduras |
msoLanguageIDSpanishModernSort |
msoLanguageIDSpanishNicaragua |
msoLanguageIDSpanishPanama |
msoLanguageIDSpanishParaguay |
msoLanguageIDSpanishPeru |
msoLanguageIDSpanishPuertoRico |
msoLanguageIDSpanishUruguay |
msoLanguageIDSpanishVenezuela |
msoLanguageIDSutu |
msoLanguageIDSwahili |
msoLanguageIDSwedish |
msoLanguageIDSwedishFinland |
msoLanguageIDSwissFrench |
msoLanguageIDSwissGerman |
msoLanguageIDSwissItalian |
msoLanguageIDTajik |
msoLanguageIDTamil |
msoLanguageIDTatar |
msoLanguageIDTelugu |
msoLanguageIDThai |
msoLanguageIDTibetan |
msoLanguageIDTraditionalChinese |
msoLanguageIDTsonga |
msoLanguageIDTswana |
msoLanguageIDTurkish |
msoLanguageIDTurkmen |
msoLanguageIDUkrainian |
msoLanguageIDUrdu |
msoLanguageIDUzbekCyrillic |
msoLanguageIDUzbekLatin |
msoLanguageIDVenda |
msoLanguageIDVietnamese |
msoLanguageIDWelsh |
msoLanguageIDXhosa |
msoLanguageIDZulu |
msoLanguageIDPortuguese |
Пример
В этом примере язык для указанного текста в форме 1 задается на английский (США).
ActivePresentation.Slides(1).Shapes(1).TextFrame.TextRange.LanguageID = msoLanguageIDEnglishUS
См. также
Поддержка и обратная связь
Есть вопросы или отзывы, касающиеся Office VBA или этой статьи? Руководство по другим способам получения поддержки и отправки отзывов см. в статье Поддержка Office VBA и обратная связь.