Export (0) Print
Expand All

ExcelLocale1033Proxy Class

Provides methods that modify how a specified native Microsoft Office Excel object passes locale ID (LCID) information to the Excel object model.

Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)

public static class ExcelLocale1033Proxy

By default, native Excel objects (that is, instances of types that are defined in the Microsoft.Office.Interop.Excel namespace) in Microsoft Visual Studio 2005 Tools for the Microsoft Office System projects pass locale ID 1033 (English, United States) to Excel for all locale-sensitive calls to the Excel object model, regardless of the locale settings of the computer. The ExcelLocale1033Proxy class provides two methods you can use to modify the locale ID behavior for individual Excel objects. If you want to modify an Excel object so that it uses the locale ID of the current thread instead of locale ID 1033, call the Unwrap method. After you call Unwrap to modify an Excel object, you might want to use the object again, but in a situation where you want to use locale ID 1033 instead of the locale ID of the current thread. Call the Wrap method to modify the Excel object so that it uses locale ID 1033 instead of the locale ID of the current thread.

To change the default locale ID behavior for all native Excel objects in Visual Studio Tools for Office projects, use the ExcelLocale1033Attribute attribute. By default, this attribute is set to true, which specifies that native Excel objects pass locale ID 1033 to Excel for all locale-sensitive calls to the Excel object model. If the ExcelLocale1033Attribute attribute is false, native Excel objects pass the locale ID of the current thread.

For more information about localization issues in Excel, see Formatting Data in Excel with Various Regional Settings and Globalization and Localization of Office Solutions.

System.Object
  Microsoft.Office.Tools.Excel.ExcelLocale1033Proxy

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft