CsvSaveOptions Class
Represents options for saving to Character Separated Values file format.
public sealed class CsvSaveOptions : SaveOptions
Public NotInheritable Class CsvSaveOptions
Inherits SaveOptions
- Inheritance:
- CsvSaveOptions
Constructors
CsvSaveOptions(CsvType)
Initializes a new instance of the CsvSaveOptions class.
Parameters
CsvSaveOptions(Char)
Initializes a new instance of the CsvSaveOptions class.
Parameters
separator
- System.Char
Character that will serve as value delimiter.
Properties
ContentType
Gets the content-type for CSV file format:
public override string ContentType { get; }
Public Overrides ReadOnly Property ContentType As String
Property Value
- System.String
The content-type for CSV file format.
Overrides
Encoding
Gets or sets the encoding for the CSV file.
Property Value
- System.Text.Encoding
Exceptions
Value is set to null.
FormatProvider
Gets or sets the format provider for the CSV file.
public IFormatProvider FormatProvider { get; set; }
Public Property FormatProvider As IFormatProvider
Property Value
Exceptions
Value is set to null.
Limitations
Gets limitations for saving to CSV file format.
public override FileFormatLimitations Limitations { get; }
Public Overrides ReadOnly Property Limitations As FileFormatLimitations
Property Value
Overrides
Remarks
These are the limits:
QuoteMode
Gets or sets a value indicating in which conditions values in a CSV file should be quoted. Default value is Default.
Property Value
Separator
Gets or sets character that serves as value delimiter.
Property Value
- System.Char
Exceptions
- System.ArgumentException
Value is set to quote '"' or new line '\n'.
Type
Gets or sets value delimiter type, see CsvType.
Property Value
Exceptions
Value is set to null.
UseFormattedValues
Gets or sets a value indicating whether values in CSV file will be formatted using NumberFormat. Default value is false.
Property Value
Inherited Properties
CsvDefault | Gets the default options for saving to Character Separated Values file format. (Inherited from SaveOptions) |
HtmlDefault | Gets the default options for saving to HyperText Markup Language File format. (Inherited from SaveOptions) |
ImageDefault | Gets the default options for saving to image formats. (Inherited from SaveOptions) |
OdsDefault | Gets the default options for saving to OpenDocument Spreadsheet file format. (Inherited from SaveOptions) |
PdfDefault | Gets the default options for saving to Portable Document Format file. (Inherited from SaveOptions) |
TxtDefault | Gets the default options for saving to Tab delimited file format. (Inherited from SaveOptions) |
XlsDefault | Gets the default options for saving to, XLS file format (Microsoft Excel Spreadsheet format; Excel 2003 and prior versions) . (Inherited from SaveOptions) |
XlsbDefault | Gets the default options for saving to XLSB file format (Microsoft Excel Binary File Format). (Inherited from SaveOptions) |
XlsxDefault | Gets the default options for saving to XLSX file format (Microsoft Excel Open XML Spreadsheet; Excel 2007 and later). (Inherited from SaveOptions) |
XpsDefault | Gets the default options for saving to XML Paper Specification file format. (Inherited from SaveOptions) |