C# Class Support.IO.CSVFile

Mostrar archivo Open project: nhmkdev/cardmaker Class Usage Examples

Public Methods

Method Description
AddRow ( List listElements ) : void
AddRow ( string arrayElements ) : void
AppendRow ( int nRow, string sItem ) : void
CSVFile ( string sFile, bool bKeepQuotes, bool bReadEmptyLines, Encoding eEncoding ) : System
GetIndexFromRow ( int nRow, string sItem ) : int

Seeks the column index based on the specified string in the row indicated.

GetItem ( int nRow, int nColumn ) : string
GetLine ( int nLine ) : string

Returns the raw line from the CSV

GetRow ( int nRow ) : List

Returns the actual row

SetItem ( int nRow, int nColumn, string sItem ) : void
ToString ( ) : string
Write ( string sFile, Encoding eEncoding ) : bool
Write ( Encoding eEncoding ) : void

Private Methods

Method Description
CSVFile ( ) : System

Method Details

AddRow() public method

public AddRow ( List listElements ) : void
listElements List
return void

AddRow() public method

public AddRow ( string arrayElements ) : void
arrayElements string
return void

AppendRow() public method

public AppendRow ( int nRow, string sItem ) : void
nRow int
sItem string
return void

CSVFile() public method

public CSVFile ( string sFile, bool bKeepQuotes, bool bReadEmptyLines, Encoding eEncoding ) : System
sFile string
bKeepQuotes bool
bReadEmptyLines bool
eEncoding System.Text.Encoding
return System

GetIndexFromRow() public method

Seeks the column index based on the specified string in the row indicated.
public GetIndexFromRow ( int nRow, string sItem ) : int
nRow int
sItem string
return int

GetItem() public method

public GetItem ( int nRow, int nColumn ) : string
nRow int
nColumn int
return string

GetLine() public method

Returns the raw line from the CSV
public GetLine ( int nLine ) : string
nLine int
return string

GetRow() public method

Returns the actual row
public GetRow ( int nRow ) : List
nRow int
return List

SetItem() public method

public SetItem ( int nRow, int nColumn, string sItem ) : void
nRow int
nColumn int
sItem string
return void

ToString() public method

public ToString ( ) : string
return string

Write() public method

public Write ( string sFile, Encoding eEncoding ) : bool
sFile string
eEncoding System.Text.Encoding
return bool

Write() public method

public Write ( Encoding eEncoding ) : void
eEncoding System.Text.Encoding
return void