Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataImportOptions.ReferenceStyle Property

Gets or sets whether the reference style is used in data imported as formulas.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

public ReferenceStyle ReferenceStyle { get; set; }

#Property Value

Type Description
ReferenceStyle

A ReferenceStyle enumeration value which specifies the style of the cell reference.

Available values:

Name Description
UseDocumentSettings

The cell range reference is in the reference style used in the workbook.

A1

The cell range reference is in the A1 reference style.

R1C1

The cell range reference is in the R1C1 reference style.

#Example

View Example

Dim arrayR1C1() As String = { "a", "b", "=R1C1&R1C2" }
worksheet.Import(arrayR1C1, 0, 0, False, New DataImportOptions() With {.ImportFormulas = True, .ReferenceStyle = ReferenceStyle.R1C1})

Dim arrayLocalized() As String = { "a", "=1,2+1" }
worksheet.Import(arrayLocalized, 1, 0, False, New DataImportOptions() With {.ImportFormulas = True, .FormulaCulture = New System.Globalization.CultureInfo("de-DE")})
See Also