# CsvLoadOptions Class

> CsvLoadOptions class in the TX Sheet Control .NET API: CSV import uses double-quote escaping and accepts CRLF, LF or CR record endings.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Inherits:** `TXTextControl.TXSheetControl.Server.LoadOptions` › `TXTextControl.TXSheetControl.Server.TabularLoadOptions`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > CsvLoadOptions Class
- **724 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/csvloadoptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/csvloadoptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/csvloadoptions/llms-full.txt

---

CSV import uses double-quote escaping and accepts CRLF, LF or CR record endings.

### Syntax

```csharp
public class CsvLoadOptions
```

### Members

#### Constructors

| Constructor | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/csvloadoptions/constructor/llms-full.txt) |  |

#### Properties

| Property | Description |
|---|---|
| [DecimalSeparator](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/csvloadoptions/decimalseparator-property/llms-full.txt) | Decimal separator used by inference: period (default) or comma. Thousands separators are not inferred. |
| [Delimiter](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/csvloadoptions/delimiter-property/llms-full.txt) | One non-quote, non-newline delimiter; defaults to comma. Semicolon and tab are supported. |

### Examples

Import customer orders, configure bounded tabular exchange and export the processed values or a formatted workbook.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<byte[]> ExchangeOrderDataAsync(ServerSheetControl control)
{
    await control.LoadTextAsync("Customer;Amount\nMüller;125,5", StreamType.CSV, new CsvLoadOptions { SheetName = "Orders", InferTypes = true, MaxFileBytes = 1048576, MaxRows = 1000, MaxColumns = 20, MaxCells = 20000, Delimiter = ";", DecimalSeparator = "," });

    var sheet=await control.Workbook.Sheets.AtAsync(0);
    await sheet.Range("A1:B1").FormatAsync(new { bold=true });
    return await control.SaveAsync(StreamType.SpreadsheetML);
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [CSV, XML and JSON Data](https://docs.textcontrol.com/tx-sheet-control/document-processing/tabular-data/llms-full.txt)

---

## In This Section

- [CsvLoadOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/csvloadoptions/constructor/llms-full.txt): CsvLoadOptions constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [CsvLoadOptions.DecimalSeparator Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/csvloadoptions/decimalseparator-property/llms-full.txt): CsvLoadOptions.DecimalSeparator property in the TX Sheet Control .NET API: Decimal separator used by inference: period (default) or comma.
- [CsvLoadOptions.Delimiter Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/csvloadoptions/delimiter-property/llms-full.txt): CsvLoadOptions.Delimiter property in the TX Sheet Control .NET API: One non-quote, non-newline delimiter; defaults to comma. Semicolon and tab are supported.

---

## Nearby

- **Previous:** [CommentThread.IsResolved Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/commentthread/isresolved-property/llms-full.txt)
- **Next:** [CsvLoadOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/csvloadoptions/constructor/llms-full.txt)
