C# Class Support.IO.CSVFile

Afficher le fichier Open project: nhmkdev/cardmaker Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
CSVFile ( ) : System

Method Details

AddRow() public méthode

public AddRow ( List listElements ) : void
listElements List
Résultat void

AddRow() public méthode

public AddRow ( string arrayElements ) : void
arrayElements string
Résultat void

AppendRow() public méthode

public AppendRow ( int nRow, string sItem ) : void
nRow int
sItem string
Résultat void

CSVFile() public méthode

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

GetIndexFromRow() public méthode

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

GetItem() public méthode

public GetItem ( int nRow, int nColumn ) : string
nRow int
nColumn int
Résultat string

GetLine() public méthode

Returns the raw line from the CSV
public GetLine ( int nLine ) : string
nLine int
Résultat string

GetRow() public méthode

Returns the actual row
public GetRow ( int nRow ) : List
nRow int
Résultat List

SetItem() public méthode

public SetItem ( int nRow, int nColumn, string sItem ) : void
nRow int
nColumn int
sItem string
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

Write() public méthode

public Write ( string sFile, Encoding eEncoding ) : bool
sFile string
eEncoding System.Text.Encoding
Résultat bool

Write() public méthode

public Write ( Encoding eEncoding ) : void
eEncoding System.Text.Encoding
Résultat void