Back to Devexpress

SpreadsheetControlOptions.Culture Property

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontroloptions-edd7eaf3.md

latest3.2 KB
Original Source

SpreadsheetControlOptions.Culture Property

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

Declaration

csharp
public CultureInfo Culture { get; set; }
vb
Public Property Culture As CultureInfo

Property Value

TypeDescription
CultureInfo

A CultureInfo object that specifies culture settings currently being used.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Culture
SpreadsheetControl

.Options .Culture

|

Remarks

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.

wpf-spreadsheet-bind-grid-control-to-worksheet-data/CS/WpfSpreadsheet_DataBinding/MainWindow.xaml.cs#L16

csharp
InitializeComponent();
spreadsheet.Options.Culture = new CultureInfo("en-US");
spreadsheet.LoadDocument(@"Documents/Expenses_template.xlsx", DocumentFormat.Xlsx);

wpf-spreadsheet-bind-grid-control-to-worksheet-data/VB/WpfSpreadsheet_DataBinding/MainWindow.xaml.vb#L15

vb
InitializeComponent()
spreadsheet.Options.Culture = New CultureInfo("en-US")
spreadsheet.LoadDocument("Documents/Expenses_template.xlsx", DocumentFormat.Xlsx)

See Also

SpreadsheetControlOptions Class

SpreadsheetControlOptions Members

DevExpress.Xpf.Spreadsheet Namespace