asposecells使用总结(中文版)内容摘要:

)。 名称 值类型 说明 rowIndex int startRow int endRow int startColumn byte endColumn byte 返回 说明 void ExportArray 输出 指定 range 单元格内容到 object 二维数组中 object[,] (firstRow,firstColumn,rowNumber,columnNumber)。 名称 值类型 说明 firstRow int 首行 firstColumn int 首列 rowNumber int 行数目 columnNumber int 列数目 返回 说明 object[,] ExportDataTable +4 输出 指定 range 单元格内容到 DataTable 中 ; 每列单元格以统一格式导入到 Excel,如果列所有单元格有不同格式的值,输出会报错 DataTable (firstRow,firstColumn,rowNumber,columnNuber)。 Or DataTable (firstRow,firstColumn,rowNumber,columnNuber,exportColumnName)。 Or DataTable (firstRow,firstColumn,rowNumber,columnNumber,defaultValues)。 Or DataTable ExportDataTable(firstRow,firstColumn,rowNumber,columnNumber,exportColumnName,isVertical)。 名称 值类型 说明 firstRow int 首行 firstColumn int 首列 rowNumber int 行数目 columnNumber int 列数目 exportColumnName bool 是否输出行名 isVertical bool 如果 isVertical 为 true,列转 DataTable 列 如果 isVertical 为 false,列转 DataTable 行 defaultValues object[] 输出默认值 返回 说明 DataTable ExportDataTableAsString +2 输出指定 range 单元格数据以字符串格式输出到 DataTable 中 DataTable Cells. ExportDataTableAsString(firstRow,firstColumn,rowNumber,columnNumber)。 Or DataTable (firstRow,firstColumn,rowNumber,columnNumber, exportCloumnName) 名称 值类型 说明 firstRow int 首行 firstColumn int 首列 rowNumber int 行数目 columnNumber int 列数目 exportColumnName bool 是否输出行名 返回 说明 DataTable ExportTypeArray 输出指定 range 单元格数据类型 至 CellValueType 二维数组中 CellValueType[,] (firstRow,firstColumn,rowNumber,columnNumber)。 名称 值类型 说明 firstRow int 首行 firstColumn int 首列 rowNumber int 行数目 columnNumber int 列数目 返回 说明 CellValueType[,] 返回每个单元格数据类型 FindFormula 返回当前工作表中公式和 formula 相同的第一个 单元格 Cell (formula,previousCell)。 名称 值类型 说明 formula string Excel 公式 previousCell Cell 返回 说明 Cell FindFormulaContains 返回当前工作表中公式包含 formula 字符串 的第一个 单元格 Cell (formula,previousCell)。 名称 值类型 说明 formula string 公式 字符串。 例 :‖=‖,‖SUM‖等 previousCell Cell 返回 说明 Cell FindNumber +2 返回当前工作表中单元格格式为数值型并值为 inputString 的第一个单元格 Cell (inputNumber,previousCell)。 Or Cell (inputNumber,previousCell)。 名称 值类型 说明 inputNumber Double Or int 公式字符串。 例 :‖=‖,‖SUM‖等 previousCell Cell 返回 说明 Cell FindString +3 返回当前工作表中单元格格式为 字符串 型并值为 inputString 的第一个单元格 Cell (inputString,previousCell)。 Or Cell (inputString,previousCell,upDown)。 Or Cell (inputString,previousCell,area)。 名称 值类型 说明 inputString string 查询单元格值 previousCell Cell upDown bool area CellArea 返回 说明 Cell FindStringContains +3 返回当前工作表中单元格格式为字符型并值包含 inputString 的第一个单元格 Cell Cells. FindStringContains (inputString,previousCell)。 Or Cell Cells. FindStringContains (inputString,previousCell,isCaseSensitive)。 Or Cell Cells. FindStringContains(inputString,previousCell,isCaseSensitive,area)。 名称 值类型 说明 inputString string 查询单元格 包含的 值 previousCell Cell isCaseSensitive bool area CellArea 返回 说明 Cell FindStringEndsWith 返回当前工作表中单元格 格式为字符串并值 尾部位置 为 inputString 的第一个单元格 Cell Cells. FindStringEndsWith (inputString,previousCell)。 名称 值类型 说明 inputString string 查询单元格包含的值 previousCell Cell 返回 说 明 Cell FindStringStartsWith 返回当前工作表中单元格格式为字符串并值头部位置为 inputString 的第一个单元格 Cell Cells. FindStringStartsWith(inputString,previousCell)。 名称 值类型 说明 inputString string 查询单元格包含的值 previousCell Cell 返回 说明 Cell GetColumnWidth 获取 指定列的列宽 double (column)。 名称 值类型 说明 column int 列索引 返回 说明 double GetColumnWidthPixel 获取指定列的列宽以像素为单位 int (column)。 名称 值类型 说明 column int 列索引 返回 说明 int GetEnumerator 获取 统计员实体 IEnumerator ()。 名称 值类型 说明 column int 列索引 返回 说明 IEnumerator GetRowHeight 获取行高度 double (row)。 名称 值类型 说明 row int 行索引 返回 说明 double GetRowHeightPixel 获取行高度以像素为单位 int (row)。 名称 值类型 说明 row int 行索引 返回 说明 int GroupColumns +2 列分组 (不带求合 ) void (firstIndex,lastIndex)。 or void (firstIndex,lastIndex,isHidden) 名称 值类型 说明 firstIndex int 列 索引 lastIndex int 统计 列索引偏移量。 isHidden bool 是否 隐藏 返回 说明 int GroupRows +2 行 分组 (不带求合 ) void (firstIndex,lastIndex)。 or void (firstIndex,lastIndex,isHidden) 名称 值类型 说明 firstIndex int 行索引 lastIndex int 统计 行 索引 偏移量。 isHidden bool 是否 隐藏 返回 说明 int HideColumn 隐藏列 void (column)。 名称 值类型 说明 column int 列 索引 返回 说明 void HideRow 隐藏 行 void (row)。 名称 值类型 说明 row int 行索引 返回 说明 void ImportArray +6 将数组导入至 工作表 中 void (doubleArray,firstRow,firstColumn)。 or void (intArray,firstRow,firstColumn)。 Or void (stringArray,firstRow,firstColumn)。 Or void (doubleArray,firstRow,firstColumn,isVertical)。 Or void (intArray,firstRow,firstColumn,isVertical)。 Or void (stringArray,firstRow,firstColumn,isVertical)。 名称 值类型 说明 doubleArray double[,] or double[] 导入数据源 intArray int[,] or int[] 导入数据源 stringArray string[,] or string[] 导入数据源 firstRow Int 起始行 firstColumn int 起始列 isVertical bool 导入 工作表 方向, true 为坚向, false 为横向 返回 说明 void ImportArrayList 将 arrayList 导入至工作表中 void (arrayList,firstRow,firstColumn,isVertical)。 )。 名称 值类型 说明 arrayList 数据源 firstRow int 起始行 firstColumn byte 起始列 isVertical bool 导入工作表方向, true 为坚向, false 为横向 返回 说明 void ImportDataColumn +4 指定 dataTable/ dataView 某列名称或列 名称 索引 导入到指定位置 void (dataTable,isFieldNameShown,firstRow,firstColumn,importColumnIndex, insertRows)。 or void (dataTable,isFieldNameShown,f。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。