C# Класс Support.IO.CSVFile

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
CSVFile ( ) : System

Описание методов

AddRow() публичный Метод

public AddRow ( List listElements ) : void
listElements List
Результат void

AddRow() публичный Метод

public AddRow ( string arrayElements ) : void
arrayElements string
Результат void

AppendRow() публичный Метод

public AppendRow ( int nRow, string sItem ) : void
nRow int
sItem string
Результат void

CSVFile() публичный Метод

public CSVFile ( string sFile, bool bKeepQuotes, bool bReadEmptyLines, Encoding eEncoding ) : System
sFile string
bKeepQuotes bool
bReadEmptyLines bool
eEncoding System.Text.Encoding
Результат System

GetIndexFromRow() публичный Метод

Seeks the column index based on the specified string in the row indicated.
public GetIndexFromRow ( int nRow, string sItem ) : int
nRow int
sItem string
Результат int

GetItem() публичный Метод

public GetItem ( int nRow, int nColumn ) : string
nRow int
nColumn int
Результат string

GetLine() публичный Метод

Returns the raw line from the CSV
public GetLine ( int nLine ) : string
nLine int
Результат string

GetRow() публичный Метод

Returns the actual row
public GetRow ( int nRow ) : List
nRow int
Результат List

SetItem() публичный Метод

public SetItem ( int nRow, int nColumn, string sItem ) : void
nRow int
nColumn int
sItem string
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

Write() публичный Метод

public Write ( string sFile, Encoding eEncoding ) : bool
sFile string
eEncoding System.Text.Encoding
Результат bool

Write() публичный Метод

public Write ( Encoding eEncoding ) : void
eEncoding System.Text.Encoding
Результат void