Table of Contents

Class CsvOptions

Namespace
WeihanLi.Npoi.Configurations
Assembly
WeihanLi.Npoi.dll

Represents the configurable behaviors of the CSV helper.

public sealed class CsvOptions
Inheritance
CsvOptions
Inherited Members

Constructors

CsvOptions()

Initializes options with default separator, quote, and encoding.

public CsvOptions()

Fields

Default

Provides a shared instance representing sensible defaults.

public static readonly CsvOptions Default

Field Value

CsvOptions

Properties

Encoding

Gets or sets the encoding of the generated CSV.

public Encoding Encoding { get; set; }

Property Value

Encoding

IncludeHeader

Gets or sets whether the header row should be emitted.

public bool IncludeHeader { get; set; }

Property Value

bool

PropertyNameForBasicType

Gets or sets the synthetic property name to use for basic types.

public string PropertyNameForBasicType { get; set; }

Property Value

string

QuoteCharacter

Gets or sets the character used to wrap textual values.

public char QuoteCharacter { get; set; }

Property Value

char

QuoteString

Gets the quote character expressed as a string.

public string QuoteString { get; }

Property Value

string

SeparatorCharacter

Gets or sets the separator used between values.

public char SeparatorCharacter { get; set; }

Property Value

char

SeparatorString

Gets the separator character expressed as a string.

public string SeparatorString { get; }

Property Value

string