[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.CsvSaveOptions

Class CsvSaveOptions

Namespace
GrapeCity.Documents.Excel
Assembly
GcDocs.Excel.dll

Option class for saving csv file.

public class CsvSaveOptions : SaveOptionsBase
Inheritance
object
CsvSaveOptions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

CsvSaveOptions()

Constructor.

public CsvSaveOptions()

Properties

CellSeparator

Gets or sets a char value as cell separator.

public char CellSeparator { get; set; }

Property Value

char

ColumnSeparator

Gets or sets a string value as column separator.

public string ColumnSeparator { get; set; }

Property Value

string

Encoding

Gets or sets the default encoding, default is utf-8.

public Encoding Encoding { get; set; }

Property Value

System.Text.Encoding

QuoteColumns

Specify some columns to be quoted, while the remaining columns not to be quoted. Column numbers start from 0, and specifying invalid column has no effect.

public IEnumerable<int> QuoteColumns { get; set; }

Property Value

System.Collections.Generic.IEnumerable<T><int>

RowSeparator

Gets or sets a string value as row separator.

public string RowSeparator { get; set; }

Property Value

string

SeparatorString

Gets or sets a string value as column separator.

[Obsolete("SeparatorString is obsolete, use ColumnSeparator.")]
public string SeparatorString { get; set; }

Property Value

string

TrimLeadingBlankRowAndColumn

Indicates whether leading blank rows and columns should be trimmed like what ms excel does.Defalut is true;

public bool TrimLeadingBlankRowAndColumn { get; set; }

Property Value

bool

ValueQuoteType

Gets or sets how to quote values in the exported text file.

public ValueQuoteType ValueQuoteType { get; set; }

Property Value

ValueQuoteType