wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontroloptions-edd7eaf3.md
Gets or sets culture settings applied to the loaded workbook. This is a dependency property.
Namespace : DevExpress.Xpf.Spreadsheet
Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll
NuGet Package : DevExpress.Wpf.Spreadsheet
public CultureInfo Culture { get; set; }
Public Property Culture As CultureInfo
| Type | Description |
|---|---|
| CultureInfo |
A CultureInfo object that specifies culture settings currently being used.
|
You can access this nested property as listed below:
| Object Type | Path to Culture |
|---|---|
| SpreadsheetControl |
.Options .Culture
|
The Culture determines number, date and time formats and localized function names which are used in the worksheet.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Culture property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
InitializeComponent();
spreadsheet.Options.Culture = new CultureInfo("en-US");
spreadsheet.LoadDocument(@"Documents/Expenses_template.xlsx", DocumentFormat.Xlsx);
InitializeComponent()
spreadsheet.Options.Culture = New CultureInfo("en-US")
spreadsheet.LoadDocument("Documents/Expenses_template.xlsx", DocumentFormat.Xlsx)
See Also
SpreadsheetControlOptions Class