_Application3.LanguageSettings Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a reference to a Microsoft Office LanguageSettings object that represents the language settings of the current user.
public:
property System::Object ^ LanguageSettings { System::Object ^ get(); };
public object LanguageSettings { get; }
member this.LanguageSettings : obj
Public ReadOnly Property LanguageSettings As Object
Property Value
A reference to a Microsoft Office LanguageSettings object that represents the language settings of the current user.
Implements
Examples
The following example uses the LanguageID property of the LanguageSettings object to return the LCID value (a four-digit number) for the language that is currently being used for the Office help system:
LanguageSettings languageSettings = (LanguageSettings) thisApplication.LanguageSettings;
int lcid = languageSettings.get_LanguageID(MsoAppLanguageID.msoLanguageIDHelp);
Note: The above example requires the Microsoft.Office.Core namespace and a reference to the Microsoft Office 14.0 Object Library.
Important: The above example requires the form have a Full Trust Security Level.
The following example uses the LanguageID property of the LanguageSettings object to return the LCID value (a four-digit number) for the language that is currently being used for the Office help system:
LanguageSettings languageSettings = (LanguageSettings) thisApplication.LanguageSettings;
int lcid = languageSettings.get_LanguageID(MsoAppLanguageID.msoLanguageIDHelp);
Note: The above example requires the Microsoft.Office.Core namespace and a reference to the Microsoft Office 14.0 Object Library.
Important: The above example requires the form have a Full Trust Security Level.
Remarks
After you establish a reference to the LanguageSettings object, you can access all the properties and methods of the object.
Applies to
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk