版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Aspose.Cells1,WorkbookworkBook=newExcel获取或设置是否将字符串转换至数字默认值为获取或设置工作簿获取工作簿获取工作簿CountryCode获取或设置工作簿CountryCode获取或设置工作簿区域(指当前使用获取或设置当前工作簿获取或设置是否显示标签(工作表标CalculateFormula(bool,ICustomFunctioncustomFunction)ChangePalette(Colorcolor,intCombine(WorkbooksecondWorkbookworkSheetCopy(WorkbookDecrypt(stringIsColorInPalette(ColorcolorExcelLoadData(stringLoadData(System.IO.StreamExcelWorkbookOpen(stringstringpassword);+8ExcelstringReplace(stringstringnewValue);工作簿中类型和值完全符合的单元Save(Server.UrlEncode("测试SaveType.OpenInExcel,Response);+8Unprotect(stringValidateFormula(stringWorksheetworksheet=workbook.Worksheets[index];Worksheetworksheet=new自动默认为获取当前工作表索引(标签位置0Excel默认为SheetType—10-400voidWorksheet.AutoFitColumn(columnIndex,firstRow,lastRow);000voidvoidWorksheet.AutoFitRow(rowIndex,firstColumn,lastColumn);000voidvoidvoidvoidWorksheet.FreezePanes(cellName,freezedRows,freezedColumns)(Row,Column,freezedRows,freezedColumns);单元格名称;例ArrayListvoidvoidWorksheet.Protect(type,password,oldPassword);ProtectionType–voidvoidvoidWorksheet.Replace(oldString,要替换字符串(完全相等voidvoidvoidvoidWorksheetsworksheets=workbook.Worksheets;Worksheetsworksheets=new承接定做活的HTTP获取或设置工作表标签列表显示宽AddWorksheetWorksheets.Add();WorksheetWorksheets.Add(type)WorksheetSheetType–AddCopyintWorksheets.AddCopy(sheetIndex);intvoid删除指定的voidrangeIEnumeratorrangeRange[]range根据rangeRangeWorksheets.rangevoidvoidSetsdisplayedsizewhenWorkbookfileisusedasanOlevoidvoidCellscells=newCells();获取有效单元格数量(非空单元获取或设置是否用字符来代替密0获取最大包含数据列;列下标从获取最大包含数据行;行下标从000rangevoid0void0void检查单元格,如果为空返回-1,00int如果为空返回-1,00voidvoidvoidvoidvoidvoidvoidCells.CopyRow(sourceCells,sourceRowIndex,创建RangeCells.CreateRange(upperLeftCell,lowerRightCell);RangeRangerangeisVertical指定rangeisVertical是否垂直延伸;TruerangerangeDeleteColumnvoidCells.DeleteColumn(columnIndex);voidCells.DeleteColumn(columnIndex,rangerangevoidShiftType–rangevoidDeleteRowsvoidCells.DeleteRows(rowIndex,rowNumber);voidEndCellInColumnvoidCells.EndCellInColumn(columnIndex);voidCells.EndCellInRowvoidCells.EndCellInRow(rowIndex);voidrange单元格内容到objectobject[,]ExportDataTableDataTableCells.ExportDataTable(firstRow,firstColumn,rowNumber,columnNuber);DataTableCells.ExportDataTable(firstRow,firstColumn,rowNumber,columnNuber,exportColumnName);DataTableCells.ExportDataTable(firstRow,firstColumn,rowNumber,columnNumber,defaultValues);DataTableisVerticaltrue,DataTableisVerticalfalse,DataTablerange单元格数据以字符串格式输出到DataTablerange单元格数据以字符串格式输出到DataTableDataTableCells.ExportDataTableAsString(firstRow,firstColumn,rowNumber,columnNumber);DataTableCells.ExportDataTableAsString(firstRow,firstColumn,rowNumber,columnNumber,rangeCellValueTypeCellValueType[,]formulaCellExcelformulaCell公式字符串;例:‖=‖,‖SUM‖FindNumberCellCells.FindNumber(inputNumber,previousCell);Cell公式字符串;例:‖=‖,‖SUM‖CellCells.FindString(inputString,previousCell);CellCells.FindString(inputString,previousCell,upDown);CellFindStringContainsCellCells.FindStringContains(inputString,previousCell);CellCells.FindStringContains(inputString,previousCell,isCaseSensitive);CellCells.返回当前工作表中单元格格式为字符串并值尾部位置为inputStringCellCells.FindStringEndsWith返回当前工作表中单元格格式为字符串并值头部位置为inputStringCellCells.doubleintIEnumeratordoubleintGroupColumnsvoidCells.GroupColumns(firstIndex,lastIndex);voidGroupRowsvoidCells.GroupRows(firstIndex,lastIndex);voidvoidvoidImportArrayvoidCells.ImportArray(doubleArray,firstRow,firstColumn);voidvoidvoidvoidvoid导入工作表方向,truefalsearrayListvoid导入工作表方向,true,falseImportDataColumndataTable/dataViewvoidCells.ImportDataColumn(dataTable,isFieldNameShown,firstRow,firstColumn,importColumnIndex,voidCells.ImportDataColumn(dataTable,isFieldNameShown,firstRow,firstColumn,importColumnName,voidCells.ImportDataColumn(dataTable,ifFieldNameShown,firstRow,firstColumn,importColumnIndex,voidDataTable0DataTableImportDataGridDataGridintCells.ImportDataGrid(dataGrid,firstRow,firstColumn,insertRows);intdataGriddataGridDataGridintdataGriddataGridDataRowvoidImportDataTableDataTableintCells.ImportDataTable(dataTable,isFieldNameShown,startCell);intCells.ImportDataTable(dataTable,isFieldNameShown,firstRow,firstColumn);intCells.ImportDataTable(dataTable,isFieldNameShown,firstRow,firstColumn,insertRows);intCells.ImportDataTable(dataTable,isFieldNameShown,firstRow,firstColumn,insertRows,intCells.ImportDataTable(dataTable,isFieldNameShown,firstRow,firstColumn,rowNumber,columnNumber);intCells.ImportDataTable(dataTable,isFileldNameShown,firstRow,firstColumn,rowNumber,columnNumber,intCells.ImportDataTable(dataTable,isFileldNameShown,firstRow,firstColumn,rowNumber,columnNumber,insertRows,dateFormatString);intCells.ImportDataTable(dataTable,isFileldNameShown,firstRow,firstColumn,rowNumber,columnNumber,insertRows,dateFormatString,convertStringToNumber);起始单元格名称;例dataTabledataTableImportDataViewDataViewintCells.ImportDataView(dataView,firstRow,firstColumn);intintintintintCells.ImportDataView(dataView,isFieldNameShown,firstRow,firstColumn,rowNumber,columnNumber,insertRows);intCells.ImportDataView(dataView,isFieldNameShown,firstRow,firstColumn,rowNumber,columnNumber,string[]voidExcelisVerticaltrue,isVerticalfalse,ImportFromDataReaderDataReaderintCells.ImportFromDataReader(oleReader,firstRow,firstColumn,insertRows);intintCells.ImportFromDataReader(sqlReader,firstRow,firstColumn,insertRows);intGridViewGridViewintobject[]voidCells.ImportObjectArray(objArray,firstRow,firstColumn,isVerticaltrue,isVerticalfalse,objectobject[,]voidCells.ImportTwoDimensionArray(objArray,firstRow,InsertColumnvoidCells.InsertColumn(columnIndex);voidInsertRangevoidCells.InsertRange(area,shiftType);voidCells.InsertRange(area,shiftNumber,shiftType);voidCells.ShiftType–voidInsertRowsvoidCells.InsertRows(rowIndex,rowNumber);voidintvoidvoidvoidvoidvoidvoidCells.voidvoidvoidvoidvoidvoidvoidCellcells=newCell();Worksheets.Cells[intindex]Worksheets.Cells[stringcellName]Worksheets.Cells[introw,intdoublefloatHTMLintstringCellValueType–Characters获取字符偏移量(个数RangePutValuevoidCell.PutValue(boolValue);voidvoidvoidvoidvoidvoidfalsevoidvoidvoidvoidRangesranges=newRanges();Rangesranges=Worksheets.Cells.RangevoidRangerange=newRange();Rangerange=Worksheets.Cells.Ranges[intrangerangerangerangerange获取range获取range获取或设置rangerangevoidRange.ApplyStyle(style,拷贝voidrangevoid导出所选择rangeDataTableDataTable导出所选择rangeDataTableDataTable合并range合并rangevoid设置rangevoidBorderType—CellBorderType—SetOutlineBordersrange边界线样式(外部所有相邻单元格相邻边界线)Range.SetOutlineBorders(borderStyle,borderColor);Range.SetOutlineBorders(borderStyles,CellBorderTypeCellBorderType[]-取消合并rangevoidAspose.Cells.Stylestyle=Workbook.DefaultStyle;Aspose.Cells.Stylestyle=Workbook.Styles[Workbook.Styles.Add()];Stylesstyles=workbook.Styles;intstyleIndex=styles.Add();Aspose.Cells.Stylestyle=值;"\"$\"#,##0";等TextAlignmentType-style9–百分比;8-¥BackgroundTypeTextDirectionTypeTextAlignmentTypeStyleFlagflag=newDataSorterDataSorterdsor=newDataSorter();DataSorterdsor=SortOrder–SortOrder–SortOrder–voidvoidDataSorter.Sort(cells,AutoFilterAutoFilteraf=newAutoFilter();AutoFilteraf=获取或设置voidvoidvoidChartsChartscharts=newCharts();Chartscharts=intChartType–voidChartChartchart=charts[intindex];Chartchart=charts[stringname];Chartchart=Worksheet.Charts[intindex];Chartchart=
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 二零二五年度信息技术项目浇筑水泥土班组劳务分包协议2篇
- 二零二五年度地坪施工劳务工程合同纠纷解决协议2篇
- 二零二五年度劳动合同解除与赔偿咨询合同3篇
- 2025年度文化和体育产业借款合同3篇
- 2024年研发合作合同进度追踪2篇
- 2024-2025年中国光通信行业市场调查研究及投资前景预测报告
- 二零二五年度二手房买卖合同中房产交易后续服务协议范本3篇
- 二零二五年度出纳人员金融担保合同样本2篇
- 二零二五年度升级版:二手房买卖合同中违约责任条款解读3篇
- 2025年度消防设施工程设计与施工监理合同协议书3篇
- 网络安全运维培训测试题
- 催化氧化合成4-氯-2-硝基苯甲酸_图文
- 民政部主管社团管理办法
- 同济大学本科生学籍管理规定
- 工地施工临时用水及计算
- 三年级数学寒假每日一练
- 最新宜昌市中考数学21题圆训练(1)教师版有答案
- 工作计划酒店上半年工作总结及下半年工作计划
- 石油词汇大全-俄语专业词汇
- 浅谈燃机电厂燃气管道的完整性管理
- 东营市学校安全工作先进个人申报表岳向明
评论
0/150
提交评论