메소드 | 설명 | |
---|---|---|
GetCellMsg ( object cellValue, string colName, int MaxLength, bool Required = false, bool isNChar = false ) : string |
|
|
GetErrorExcel ( IWorkbook wb, string fileName ) : string |
获取错误信息Excel
|
|
GetLength ( string str, int chinaLength = 2 ) : int |
获取字符串长度。与string.Length不同的是,该方法将中文作 x 个字符计算。
|
|
ObjectIsNullOrEmpty ( object obj ) : bool |
判断对象是否为空
|
public static GetCellMsg ( object cellValue, string colName, int MaxLength, bool Required = false, bool isNChar = false ) : string | ||
cellValue | object | |
colName | string | |
MaxLength | int | |
Required | bool | |
isNChar | bool | |
리턴 | string |
public static GetErrorExcel ( IWorkbook wb, string fileName ) : string | ||
wb | IWorkbook | excel对象 |
fileName | string | 文件名称 |
리턴 | string |
public static GetLength ( string str, int chinaLength = 2 ) : int | ||
str | string | 目标字符串 |
chinaLength | int | 中文作x个字符 默认为2个 |
리턴 | int |
public static ObjectIsNullOrEmpty ( object obj ) : bool | ||
obj | object | 待判断对象 |
리턴 | bool |