Defines the locale whose names and formats are used (an empty string for the user's locale).
Get
| C# | string LocaleName = object.Culture; |
| VB.NET | LocaleName = object.Culture As String |
| C++ | _bstr_t LocaleName = object->Culture; _bstr_t LocaleName = object->GetCulture(); |
| C | HRESULT object->get_Culture(BSTR* LocaleName); |
Put
| C# | string object.Culture = LocaleName; |
| VB.NET | object.Culture = LocaleName As String |
| C++ | _bstr_t object->Culture = LocaleName; void object->PutCulture(_bstr_t LocaleName); |
| C | HRESULT object->put_Culture(BSTR LocaleName); |
object
LocaleName
Defines the locale whose names and formats are used (an empty string for the user's locale).
The Culture property defines the culture of the control: the locale (such as "en-US", "de-DE" or "ja-JP") whose month and day names, date and time formats, first day of the week and week rule the control uses. The default is an empty string, which uses the user's locale with the changes the user made in the Windows settings. Other locales use their standard formats. p The CalendarType property selects the calendar system in which the control shows and edits dates. The culture of a date field control also applies to its dropdown calendar. p An invalid locale name causes an error. Setting the Culture property also fails if the new locale doesn't offer the calendar system defined by the CalendarType property; an application that switches between locales with different calendar systems sets CalendarType to calendarSftDateDefault first, then Culture, then CalendarType. p The culture doesn't change the reading order. An application showing a right-to-left locale such as Arabic or Hebrew also sets the RightToLeft property. The value of the control is not changed by a new culture.
See Also SftCalendar Object | Object Hierarchy | Cultures and Calendars