C# Class KEngine.Editor.ExcelFile

基于NPOI操作Excel文件, 读取,首行是列名
Afficher le fichier Open project: mr-kelly/KEngine Class Usage Examples

Méthodes publiques

Свойство Type Description
ColName2Index int>.Dictionary
IsLoadSuccess bool

Méthodes publiques

Méthode Description
ClearRow ( int row ) : void

清除行内容

ExcelFile ( string excelPath ) : System
GetFloat ( string columnName, int row ) : float
GetInt ( string columnName, int row ) : int
GetRowsCount ( ) : int
GetString ( string columnName, int row ) : string
Save ( ) : void
SetRow ( string columnName, int row, string value ) : void
SetRowGrey ( int row ) : void

Method Details

ClearRow() public méthode

清除行内容
public ClearRow ( int row ) : void
row int
Résultat void

ExcelFile() public méthode

public ExcelFile ( string excelPath ) : System
excelPath string
Résultat System

GetFloat() public méthode

public GetFloat ( string columnName, int row ) : float
columnName string
row int
Résultat float

GetInt() public méthode

public GetInt ( string columnName, int row ) : int
columnName string
row int
Résultat int

GetRowsCount() public méthode

public GetRowsCount ( ) : int
Résultat int

GetString() public méthode

public GetString ( string columnName, int row ) : string
columnName string
row int
Résultat string

Save() public méthode

public Save ( ) : void
Résultat void

SetRow() public méthode

public SetRow ( string columnName, int row, string value ) : void
columnName string
row int
value string
Résultat void

SetRowGrey() public méthode

public SetRowGrey ( int row ) : void
row int
Résultat void

Property Details

ColName2Index public_oe property

public Dictionary ColName2Index
Résultat int>.Dictionary

IsLoadSuccess public_oe property

public bool IsLoadSuccess
Résultat bool