Skip to main content

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

CsvDocumentExporterOptions.ShiftTopLeft Property

Gets or sets whether to skip the top left empty cells when exporting the worksheet.

Namespace: DevExpress.XtraSpreadsheet.Export

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

[DefaultValue(false)]
public override bool ShiftTopLeft { get; set; }

#Property Value

Type Default Description
Boolean false

true to skip the top left empty cells; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to ShiftTopLeft
WorkbookExportOptions
.Csv .ShiftTopLeft

#Remarks

If the TxtDocumentExporterOptions.Range is not specified, the ShiftTopLeft property allows you to skip the top left empty cells. If the ShiftTopLeft is set to true, the worksheet (before export) is treated as if the non-empty cells are shifted up and left so that the top left cell of the non-empty range becomes the top left cell of the worksheet.

If the ShiftTopLeft is false (default), the top left empty cells are exported, resulting in strings filled with the TxtDocumentExporterOptions.ValueSeparator or TxtDocumentExporterOptions.TextDefaultValueSeparator characters.

See Also