spire-xls 15.5.0__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (703) hide show
  1. spire/__init__.py +0 -0
  2. spire/xls/AddInFunctionsCollection.py +29 -0
  3. spire/xls/AddtionalFormatWrapper.py +976 -0
  4. spire/xls/AlertStyleType.py +18 -0
  5. spire/xls/ArcShapeCollection.py +70 -0
  6. spire/xls/AutoFiltersCollection.py +527 -0
  7. spire/xls/AutoFitterOptions.py +66 -0
  8. spire/xls/AutoFormatOptions.py +23 -0
  9. spire/xls/AutoFormatType.py +32 -0
  10. spire/xls/AutoSortScope.py +25 -0
  11. spire/xls/Average.py +29 -0
  12. spire/xls/AverageType.py +25 -0
  13. spire/xls/AxisLineIdentifierType.py +19 -0
  14. spire/xls/AxisTextDirectionType.py +18 -0
  15. spire/xls/AxisType.py +18 -0
  16. spire/xls/AxisTypes.py +18 -0
  17. spire/xls/BaseFormatType.py +17 -0
  18. spire/xls/BordersCollection.py +158 -0
  19. spire/xls/BordersCollectionArrayWrapper.py +95 -0
  20. spire/xls/BordersLineType.py +23 -0
  21. spire/xls/BubbleSizeType.py +17 -0
  22. spire/xls/BuiltInDocumentProperties.py +12 -0
  23. spire/xls/BuiltInPropertyType.py +50 -0
  24. spire/xls/BuiltInStyles.py +66 -0
  25. spire/xls/ButtonShapeCollection.py +70 -0
  26. spire/xls/CategoryType.py +18 -0
  27. spire/xls/CellBaseStyle.py +26 -0
  28. spire/xls/CellBorder.py +154 -0
  29. spire/xls/CellDataType.py +23 -0
  30. spire/xls/CellFormatType.py +21 -0
  31. spire/xls/CellRange.py +915 -0
  32. spire/xls/CellStyle.py +85 -0
  33. spire/xls/CellStyleFlag.py +432 -0
  34. spire/xls/CellStyleObject.py +617 -0
  35. spire/xls/CellValueChangedEventArgs.py +75 -0
  36. spire/xls/CellValueChangedEventHandler.py +52 -0
  37. spire/xls/Chart.py +404 -0
  38. spire/xls/ChartArea.py +61 -0
  39. spire/xls/ChartBackgroundMode.py +18 -0
  40. spire/xls/ChartBaseUnitType.py +18 -0
  41. spire/xls/ChartBorder.py +12 -0
  42. spire/xls/ChartCategoryAxis.py +93 -0
  43. spire/xls/ChartDataLabels.py +42 -0
  44. spire/xls/ChartDataPoint.py +42 -0
  45. spire/xls/ChartDataPointsCollection.py +75 -0
  46. spire/xls/ChartDataTable.py +12 -0
  47. spire/xls/ChartDisplayUnitType.py +26 -0
  48. spire/xls/ChartDropBar.py +12 -0
  49. spire/xls/ChartFormat.py +72 -0
  50. spire/xls/ChartFormatCollection.py +59 -0
  51. spire/xls/ChartGridLine.py +27 -0
  52. spire/xls/ChartInterior.py +12 -0
  53. spire/xls/ChartLegend.py +42 -0
  54. spire/xls/ChartLegendEntriesColl.py +128 -0
  55. spire/xls/ChartLegendEntry.py +27 -0
  56. spire/xls/ChartLinePatternType.py +24 -0
  57. spire/xls/ChartLineWeightType.py +19 -0
  58. spire/xls/ChartMarkerType.py +27 -0
  59. spire/xls/ChartPageSetup.py +12 -0
  60. spire/xls/ChartParagraphType.py +18 -0
  61. spire/xls/ChartPieType.py +18 -0
  62. spire/xls/ChartPlotArea.py +53 -0
  63. spire/xls/ChartPlotEmptyType.py +18 -0
  64. spire/xls/ChartSerie.py +142 -0
  65. spire/xls/ChartSerieDataFormat.py +56 -0
  66. spire/xls/ChartSeries.py +154 -0
  67. spire/xls/ChartSeriesAxis.py +72 -0
  68. spire/xls/ChartShadow.py +235 -0
  69. spire/xls/ChartSheet.py +285 -0
  70. spire/xls/ChartTextArea.py +782 -0
  71. spire/xls/ChartTitle.py +12 -0
  72. spire/xls/ChartValueAxis.py +92 -0
  73. spire/xls/ChartWallOrFloor.py +12 -0
  74. spire/xls/ChartsCollection.py +113 -0
  75. spire/xls/CheckBoxCollection.py +70 -0
  76. spire/xls/CheckState.py +18 -0
  77. spire/xls/CollectionBase.py +184 -0
  78. spire/xls/CollectionChangeEventArgs.py +36 -0
  79. spire/xls/CollectionExtended.py +92 -0
  80. spire/xls/ColorConditionValue.py +91 -0
  81. spire/xls/ColorFilter.py +45 -0
  82. spire/xls/ColorScale.py +172 -0
  83. spire/xls/ColorType.py +18 -0
  84. spire/xls/ComboBoxCollection.py +70 -0
  85. spire/xls/CommentHAlignType.py +21 -0
  86. spire/xls/CommentVAlignType.py +20 -0
  87. spire/xls/CommentsCollection.py +109 -0
  88. spire/xls/CommentsRange.py +578 -0
  89. spire/xls/CommonWrapper.py +40 -0
  90. spire/xls/ComparisonOperatorType.py +24 -0
  91. spire/xls/CompoundLineType.py +18 -0
  92. spire/xls/CondFormatCollectionWrapper.py +125 -0
  93. spire/xls/ConditionValue.py +82 -0
  94. spire/xls/ConditionValuePosition.py +16 -0
  95. spire/xls/ConditionValueType.py +20 -0
  96. spire/xls/ConditionalFormat.py +14 -0
  97. spire/xls/ConditionalFormatScope.py +16 -0
  98. spire/xls/ConditionalFormatType.py +33 -0
  99. spire/xls/ConditionalFormatWrapper.py +986 -0
  100. spire/xls/ConditionalFormats.py +55 -0
  101. spire/xls/ConditionalTopNType.py +17 -0
  102. spire/xls/ConnectionDataSourceType.py +26 -0
  103. spire/xls/ConverterSetting.py +347 -0
  104. spire/xls/CopyRangeOptions.py +23 -0
  105. spire/xls/CustomFilter.py +147 -0
  106. spire/xls/CustomFilterCollection.py +113 -0
  107. spire/xls/DBConnection.py +198 -0
  108. spire/xls/DVAspect.py +15 -0
  109. spire/xls/DataBar.py +220 -0
  110. spire/xls/DataBarAxisPosition.py +16 -0
  111. spire/xls/DataBarBorder.py +47 -0
  112. spire/xls/DataBarBorderType.py +15 -0
  113. spire/xls/DataBarFillType.py +15 -0
  114. spire/xls/DataBarNegativeColorType.py +15 -0
  115. spire/xls/DataConnections.py +25 -0
  116. spire/xls/DataLabelPositionType.py +26 -0
  117. spire/xls/DataMarkerDirection.py +17 -0
  118. spire/xls/DataSorter.py +154 -0
  119. spire/xls/DataSourceType.py +19 -0
  120. spire/xls/DateTimeGroupItem.py +132 -0
  121. spire/xls/DateTimeGroupingType.py +19 -0
  122. spire/xls/DeleteOption.py +15 -0
  123. spire/xls/DocumentProperty.py +304 -0
  124. spire/xls/DropLineStyleType.py +18 -0
  125. spire/xls/DynamicFilter.py +71 -0
  126. spire/xls/DynamicFilterType.py +48 -0
  127. spire/xls/EncryptedKeyInfo.py +12 -0
  128. spire/xls/ErrorBarIncludeType.py +19 -0
  129. spire/xls/ErrorBarType.py +20 -0
  130. spire/xls/Excel2016Charttype.py +20 -0
  131. spire/xls/ExcelAddInFunction.py +12 -0
  132. spire/xls/ExcelCalculationMode.py +18 -0
  133. spire/xls/ExcelChartType.py +96 -0
  134. spire/xls/ExcelClearOptions.py +18 -0
  135. spire/xls/ExcelColors.py +121 -0
  136. spire/xls/ExcelComboType.py +22 -0
  137. spire/xls/ExcelComment.py +27 -0
  138. spire/xls/ExcelCommentObject.py +618 -0
  139. spire/xls/ExcelFindOptions.py +16 -0
  140. spire/xls/ExcelFont.py +310 -0
  141. spire/xls/ExcelGradient.py +174 -0
  142. spire/xls/ExcelHorizontalAlignment.py +21 -0
  143. spire/xls/ExcelInterior.py +128 -0
  144. spire/xls/ExcelPatternType.py +52 -0
  145. spire/xls/ExcelPicture.py +12 -0
  146. spire/xls/ExcelQuartileCalculation.py +17 -0
  147. spire/xls/ExcelSaveType.py +15 -0
  148. spire/xls/ExcelShapeType.py +41 -0
  149. spire/xls/ExcelSheetType.py +20 -0
  150. spire/xls/ExcelTotalsCalculation.py +23 -0
  151. spire/xls/ExcelTreeMapLabelOption.py +18 -0
  152. spire/xls/ExcelVersion.py +24 -0
  153. spire/xls/ExcelVerticalAlignment.py +21 -0
  154. spire/xls/ExpandCollapseFlags.py +18 -0
  155. spire/xls/ExportTableOptions.py +74 -0
  156. spire/xls/ExternalConnection.py +147 -0
  157. spire/xls/ExternalLink.py +58 -0
  158. spire/xls/ExternalLinkCollection.py +25 -0
  159. spire/xls/FileFormat.py +40 -0
  160. spire/xls/FillPictureType.py +16 -0
  161. spire/xls/FilterColumn.py +258 -0
  162. spire/xls/FilterConditionType.py +21 -0
  163. spire/xls/FilterDataType.py +22 -0
  164. spire/xls/FilterOperatorType.py +20 -0
  165. spire/xls/FilterType.py +20 -0
  166. spire/xls/FindType.py +19 -0
  167. spire/xls/Font.py +376 -0
  168. spire/xls/FontArrayWrapper.py +265 -0
  169. spire/xls/FontUnderlineType.py +20 -0
  170. spire/xls/FontVertialAlignmentType.py +20 -0
  171. spire/xls/FontWrapper.py +450 -0
  172. spire/xls/FontsCollection.py +87 -0
  173. spire/xls/Format3D.py +235 -0
  174. spire/xls/GeomertyAdjustValue.py +63 -0
  175. spire/xls/GeomertyAdjustValueFormulaType.py +30 -0
  176. spire/xls/GeomertyAdjustValuesCollection.py +39 -0
  177. spire/xls/GetText.py +15 -0
  178. spire/xls/GoalSeek.py +65 -0
  179. spire/xls/GoalSeekResult.py +57 -0
  180. spire/xls/GradientArrayWrapper.py +188 -0
  181. spire/xls/GradientColorType.py +18 -0
  182. spire/xls/GradientPatternType.py +64 -0
  183. spire/xls/GradientPresetType.py +39 -0
  184. spire/xls/GradientStops.py +146 -0
  185. spire/xls/GradientStyleType.py +21 -0
  186. spire/xls/GradientTextureType.py +40 -0
  187. spire/xls/GradientType.py +17 -0
  188. spire/xls/GradientVariantsType.py +19 -0
  189. spire/xls/GroupBoxCollection.py +70 -0
  190. spire/xls/GroupByType.py +15 -0
  191. spire/xls/GroupShape.py +21 -0
  192. spire/xls/GroupShapeCollection.py +46 -0
  193. spire/xls/HPageBreak.py +32 -0
  194. spire/xls/HPageBreaksCollection.py +108 -0
  195. spire/xls/HTMLOptions.py +144 -0
  196. spire/xls/HistogramAxisFormat.py +30 -0
  197. spire/xls/HorizontalAlignType.py +23 -0
  198. spire/xls/HttpContentType.py +18 -0
  199. spire/xls/HyperLink.py +32 -0
  200. spire/xls/HyperLinkType.py +20 -0
  201. spire/xls/HyperLinksCollection.py +72 -0
  202. spire/xls/IAddInFunction.py +22 -0
  203. spire/xls/IAddInFunctions.py +50 -0
  204. spire/xls/IArcShape.py +259 -0
  205. spire/xls/IArcShapes.py +50 -0
  206. spire/xls/IAutoFilter.py +167 -0
  207. spire/xls/IAutoFilterCondition.py +123 -0
  208. spire/xls/IAutoFilters.py +49 -0
  209. spire/xls/IBorder.py +116 -0
  210. spire/xls/IBorders.py +106 -0
  211. spire/xls/IBuiltInDocumentProperties.py +579 -0
  212. spire/xls/IButtonShape.py +12 -0
  213. spire/xls/IButtonShapes.py +50 -0
  214. spire/xls/IChart.py +1368 -0
  215. spire/xls/IChartAxis.py +722 -0
  216. spire/xls/IChartBorder.py +220 -0
  217. spire/xls/IChartCategoryAxis.py +410 -0
  218. spire/xls/IChartDataLabels.py +457 -0
  219. spire/xls/IChartDataPoint.py +131 -0
  220. spire/xls/IChartDataPoints.py +31 -0
  221. spire/xls/IChartDataTable.py +197 -0
  222. spire/xls/IChartDropBar.py +12 -0
  223. spire/xls/IChartErrorBars.py +373 -0
  224. spire/xls/IChartFillBorder.py +303 -0
  225. spire/xls/IChartFormat.py +571 -0
  226. spire/xls/IChartFrameFormat.py +93 -0
  227. spire/xls/IChartGridLine.py +107 -0
  228. spire/xls/IChartInterior.py +278 -0
  229. spire/xls/IChartLegend.py +499 -0
  230. spire/xls/IChartLegendEntries.py +30 -0
  231. spire/xls/IChartLegendEntry.py +178 -0
  232. spire/xls/IChartPageSetup.py +56 -0
  233. spire/xls/IChartSerie.py +779 -0
  234. spire/xls/IChartSerieDataFormat.py +566 -0
  235. spire/xls/IChartSeries.py +39 -0
  236. spire/xls/IChartSeriesAxis.py +128 -0
  237. spire/xls/IChartShape.py +92 -0
  238. spire/xls/IChartShapes.py +39 -0
  239. spire/xls/IChartTextArea.py +197 -0
  240. spire/xls/IChartTrendLine.py +548 -0
  241. spire/xls/IChartTrendLines.py +79 -0
  242. spire/xls/IChartValueAxis.py +518 -0
  243. spire/xls/IChartWallOrFloor.py +32 -0
  244. spire/xls/ICharts.py +70 -0
  245. spire/xls/ICheckBox.py +96 -0
  246. spire/xls/ICheckBoxes.py +50 -0
  247. spire/xls/ICloneParent.py +28 -0
  248. spire/xls/IColorConditionValue.py +31 -0
  249. spire/xls/IColorScale.py +32 -0
  250. spire/xls/ICombinedRange.py +87 -0
  251. spire/xls/IComboBoxShape.py +95 -0
  252. spire/xls/IComboBoxes.py +50 -0
  253. spire/xls/IComment.py +85 -0
  254. spire/xls/ICommentShape.py +12 -0
  255. spire/xls/IComments.py +50 -0
  256. spire/xls/IConditionValue.py +68 -0
  257. spire/xls/IConditionalFormat.py +606 -0
  258. spire/xls/IConditionalFormats.py +48 -0
  259. spire/xls/IConditionalFormatsCollection.py +134 -0
  260. spire/xls/ICustomDocumentProperties.py +128 -0
  261. spire/xls/IDataBar.py +105 -0
  262. spire/xls/IDataSort.py +95 -0
  263. spire/xls/IDataValidation.py +421 -0
  264. spire/xls/IDataValidationCollection.py +132 -0
  265. spire/xls/IDataValidationTable.py +68 -0
  266. spire/xls/IDigitalSignature.py +99 -0
  267. spire/xls/IDigitalSignatures.py +29 -0
  268. spire/xls/IDocumentProperty.py +226 -0
  269. spire/xls/IErrorIndicator.py +31 -0
  270. spire/xls/IExcelApplication.py +22 -0
  271. spire/xls/IExtendIndex.py +21 -0
  272. spire/xls/IExtendedFormat.py +530 -0
  273. spire/xls/IFont.py +271 -0
  274. spire/xls/IFormat3D.py +252 -0
  275. spire/xls/IGeomPath.py +23 -0
  276. spire/xls/IGeomPathInfo.py +112 -0
  277. spire/xls/IGeomPathShape.py +30 -0
  278. spire/xls/IGlow.py +85 -0
  279. spire/xls/IGradient.py +174 -0
  280. spire/xls/IGroupBox.py +67 -0
  281. spire/xls/IGroupBoxes.py +50 -0
  282. spire/xls/IHPageBreak.py +22 -0
  283. spire/xls/IHPageBreaks.py +31 -0
  284. spire/xls/IHyperLink.py +118 -0
  285. spire/xls/IHyperLinks.py +48 -0
  286. spire/xls/IIconSet.py +96 -0
  287. spire/xls/IInterior.py +117 -0
  288. spire/xls/IInternalAddtionalFormat.py +238 -0
  289. spire/xls/IInternalFont.py +31 -0
  290. spire/xls/IInternalWorksheet.py +132 -0
  291. spire/xls/ILabelShape.py +49 -0
  292. spire/xls/ILabelShapes.py +50 -0
  293. spire/xls/ILineShape.py +305 -0
  294. spire/xls/ILines.py +50 -0
  295. spire/xls/IListBox.py +86 -0
  296. spire/xls/IListBoxes.py +50 -0
  297. spire/xls/IListObject.py +493 -0
  298. spire/xls/IListObjectColumn.py +222 -0
  299. spire/xls/IListObjects.py +31 -0
  300. spire/xls/IMarkersDesigner.py +113 -0
  301. spire/xls/IMigrantRange.py +21 -0
  302. spire/xls/INameRanges.py +162 -0
  303. spire/xls/INamedObject.py +22 -0
  304. spire/xls/INamedRange.py +162 -0
  305. spire/xls/INumberFormat.py +77 -0
  306. spire/xls/IOleObject.py +176 -0
  307. spire/xls/IOleObjects.py +32 -0
  308. spire/xls/IOptimizedUpdate.py +28 -0
  309. spire/xls/IOvalShape.py +154 -0
  310. spire/xls/IOvalShapes.py +50 -0
  311. spire/xls/IPageSetup.py +195 -0
  312. spire/xls/IPageSetupBase.py +642 -0
  313. spire/xls/IPictureShape.py +99 -0
  314. spire/xls/IPictures.py +250 -0
  315. spire/xls/IPivotCache.py +41 -0
  316. spire/xls/IPivotCaches.py +39 -0
  317. spire/xls/IPivotCalculatedFields.py +50 -0
  318. spire/xls/IPivotDataField.py +68 -0
  319. spire/xls/IPivotDataFields.py +50 -0
  320. spire/xls/IPivotField.py +291 -0
  321. spire/xls/IPivotFields.py +41 -0
  322. spire/xls/IPivotTable.py +393 -0
  323. spire/xls/IPivotTableOptions.py +428 -0
  324. spire/xls/IPivotTables.py +68 -0
  325. spire/xls/IPropertyData.py +70 -0
  326. spire/xls/IPrstGeomShape.py +71 -0
  327. spire/xls/IPrstGeomShapes.py +81 -0
  328. spire/xls/IRadioButton.py +105 -0
  329. spire/xls/IRadioButtons.py +71 -0
  330. spire/xls/IRectangleShape.py +60 -0
  331. spire/xls/IRectangleShapes.py +50 -0
  332. spire/xls/IReflectionEffect.py +138 -0
  333. spire/xls/IRichTextString.py +93 -0
  334. spire/xls/IScrollBarShape.py +140 -0
  335. spire/xls/IScrollBarShapes.py +50 -0
  336. spire/xls/IShadow.py +244 -0
  337. spire/xls/IShape.py +409 -0
  338. spire/xls/IShapeFill.py +522 -0
  339. spire/xls/IShapeLineFormat.py +331 -0
  340. spire/xls/IShapes.py +270 -0
  341. spire/xls/ISortColumn.py +96 -0
  342. spire/xls/ISortColumns.py +70 -0
  343. spire/xls/ISortedRule.py +112 -0
  344. spire/xls/ISparkline.py +68 -0
  345. spire/xls/ISparklineGroup.py +428 -0
  346. spire/xls/ISparklines.py +72 -0
  347. spire/xls/ISpinnerShape.py +102 -0
  348. spire/xls/ISpinnerShapes.py +50 -0
  349. spire/xls/IStyle.py +50 -0
  350. spire/xls/IStyles.py +69 -0
  351. spire/xls/ITabSheet.py +302 -0
  352. spire/xls/ITabSheets.py +57 -0
  353. spire/xls/ITextBox.py +116 -0
  354. spire/xls/ITextBoxLinkShape.py +40 -0
  355. spire/xls/ITextBoxShape.py +22 -0
  356. spire/xls/ITextBoxes.py +61 -0
  357. spire/xls/ITextFrame.py +120 -0
  358. spire/xls/IVPageBreak.py +22 -0
  359. spire/xls/IVPageBreaks.py +31 -0
  360. spire/xls/IWorkbook.py +1806 -0
  361. spire/xls/IWorksheet.py +2694 -0
  362. spire/xls/IWorksheetGroup.py +48 -0
  363. spire/xls/IWorksheets.py +159 -0
  364. spire/xls/IXLSRange.py +2479 -0
  365. spire/xls/IXLSRanges.py +35 -0
  366. spire/xls/IconSet.py +103 -0
  367. spire/xls/IconSetType.py +35 -0
  368. spire/xls/IgnoreErrorType.py +24 -0
  369. spire/xls/ImageFormatType.py +18 -0
  370. spire/xls/ImageLocationTypes.py +15 -0
  371. spire/xls/ImageType.py +17 -0
  372. spire/xls/ImportObjectOptions.py +89 -0
  373. spire/xls/InsertMoveOption.py +15 -0
  374. spire/xls/InsertOptionsType.py +16 -0
  375. spire/xls/InteriorArrayWrapper.py +126 -0
  376. spire/xls/LOGFONT.py +140 -0
  377. spire/xls/LabelShapeCollection.py +71 -0
  378. spire/xls/LegendPositionType.py +21 -0
  379. spire/xls/LegendSpacingType.py +18 -0
  380. spire/xls/LineCollection.py +85 -0
  381. spire/xls/LineShapeType.py +17 -0
  382. spire/xls/LineStyleType.py +29 -0
  383. spire/xls/ListBoxCollection.py +71 -0
  384. spire/xls/ListObjectCollection.py +45 -0
  385. spire/xls/MarkerDesigner.py +172 -0
  386. spire/xls/MeasureUnits.py +21 -0
  387. spire/xls/MsoPathInfo.py +38 -0
  388. spire/xls/MsoPathType.py +21 -0
  389. spire/xls/MultipleFilterCollection.py +166 -0
  390. spire/xls/NegativeBarFormat.py +82 -0
  391. spire/xls/OColor.py +165 -0
  392. spire/xls/OLEDBCommandType.py +19 -0
  393. spire/xls/OdsPageBackground.py +129 -0
  394. spire/xls/OdsPageBackgroundImagePositionType.py +22 -0
  395. spire/xls/OdsPageBackgroundImageType.py +16 -0
  396. spire/xls/OdsPageBackgroundType.py +16 -0
  397. spire/xls/OleLinkType.py +15 -0
  398. spire/xls/OleObjectType.py +51 -0
  399. spire/xls/OrderBy.py +19 -0
  400. spire/xls/OrderType.py +17 -0
  401. spire/xls/OvalShapeCollection.py +70 -0
  402. spire/xls/PageBreakExtentType.py +17 -0
  403. spire/xls/PageBreakType.py +18 -0
  404. spire/xls/PageColRow.py +48 -0
  405. spire/xls/PageOrientationType.py +17 -0
  406. spire/xls/PageSetup.py +14 -0
  407. spire/xls/PagesOrderType.py +17 -0
  408. spire/xls/PaperSizeEntry.py +30 -0
  409. spire/xls/PaperSizeType.py +135 -0
  410. spire/xls/PathFillMode.py +19 -0
  411. spire/xls/PdfConformanceLevel.py +20 -0
  412. spire/xls/PicStretch.py +104 -0
  413. spire/xls/PicTile.py +72 -0
  414. spire/xls/PicturesCollection.py +532 -0
  415. spire/xls/PivotAutoFomatTypes.py +35 -0
  416. spire/xls/PivotBuiltInStyles.py +97 -0
  417. spire/xls/PivotCache.py +12 -0
  418. spire/xls/PivotCachesCollection.py +12 -0
  419. spire/xls/PivotCalculatedFieldsCollection.py +38 -0
  420. spire/xls/PivotConditionalFormat.py +54 -0
  421. spire/xls/PivotConditionalFormatCollection.py +38 -0
  422. spire/xls/PivotDataField.py +118 -0
  423. spire/xls/PivotDataFields.py +104 -0
  424. spire/xls/PivotDataType.py +21 -0
  425. spire/xls/PivotField.py +12 -0
  426. spire/xls/PivotFieldFormatType.py +28 -0
  427. spire/xls/PivotFieldSortType.py +16 -0
  428. spire/xls/PivotGroupByTypes.py +23 -0
  429. spire/xls/PivotItem.py +161 -0
  430. spire/xls/PivotItemType.py +28 -0
  431. spire/xls/PivotLabelFilterType.py +27 -0
  432. spire/xls/PivotPageAreaFieldsOrderType.py +15 -0
  433. spire/xls/PivotReportFilter.py +92 -0
  434. spire/xls/PivotReportFilters.py +63 -0
  435. spire/xls/PivotStyle.py +79 -0
  436. spire/xls/PivotTable.py +12 -0
  437. spire/xls/PivotTableElement.py +38 -0
  438. spire/xls/PivotTableFields.py +85 -0
  439. spire/xls/PivotTableLayoutType.py +16 -0
  440. spire/xls/PivotTableStyle.py +63 -0
  441. spire/xls/PivotTablesCollection.py +12 -0
  442. spire/xls/PivotValueFilterType.py +21 -0
  443. spire/xls/PresetTextEffect.py +43 -0
  444. spire/xls/PrintCommentType.py +18 -0
  445. spire/xls/PrintErrorsType.py +19 -0
  446. spire/xls/PrintingPageType.py +16 -0
  447. spire/xls/PropertyType.py +31 -0
  448. spire/xls/PrstGeomShapeCollection.py +126 -0
  449. spire/xls/PrstGeomShapeType.py +201 -0
  450. spire/xls/QueryTableCollection.py +25 -0
  451. spire/xls/QueryTableXls.py +42 -0
  452. spire/xls/RTFCommentArray.py +112 -0
  453. spire/xls/RTFStringArray.py +112 -0
  454. spire/xls/RadioButtonCollection.py +137 -0
  455. spire/xls/RangeRichTextString.py +42 -0
  456. spire/xls/RangesCollection.py +537 -0
  457. spire/xls/ReadingOrderType.py +18 -0
  458. spire/xls/RectangleCollection.py +71 -0
  459. spire/xls/RectangleShapeType.py +22 -0
  460. spire/xls/RectangleStyleType.py +17 -0
  461. spire/xls/ReferRangeArea.py +88 -0
  462. spire/xls/RelationShip.py +15 -0
  463. spire/xls/RenameStrategy.py +16 -0
  464. spire/xls/ResizeBehaveType.py +18 -0
  465. spire/xls/RichText.py +49 -0
  466. spire/xls/RichTextObject.py +133 -0
  467. spire/xls/RichTextShape.py +168 -0
  468. spire/xls/RichTextString.py +126 -0
  469. spire/xls/RtfTags.py +30 -0
  470. spire/xls/RtfTextWriter.py +629 -0
  471. spire/xls/SaveShapeTypeOption.py +310 -0
  472. spire/xls/ScrollBarCollection.py +71 -0
  473. spire/xls/SelectionType.py +16 -0
  474. spire/xls/ShapeArrowLengthType.py +18 -0
  475. spire/xls/ShapeArrowStyleType.py +21 -0
  476. spire/xls/ShapeArrowWidthType.py +18 -0
  477. spire/xls/ShapeCollectionBase.py +87 -0
  478. spire/xls/ShapeDashLineStyleType.py +23 -0
  479. spire/xls/ShapeFillType.py +22 -0
  480. spire/xls/ShapeGeomPath.py +26 -0
  481. spire/xls/ShapeGlow.py +91 -0
  482. spire/xls/ShapeLayerChangeType.py +19 -0
  483. spire/xls/ShapeLineStyleType.py +20 -0
  484. spire/xls/ShapeReflection.py +131 -0
  485. spire/xls/ShapeSegmentPath.py +26 -0
  486. spire/xls/SheetProtectionType.py +33 -0
  487. spire/xls/SortColumn.py +120 -0
  488. spire/xls/SortColumns.py +185 -0
  489. spire/xls/SortComparsionType.py +19 -0
  490. spire/xls/SortOrientationType.py +17 -0
  491. spire/xls/SortedWayType.py +18 -0
  492. spire/xls/Sparkline.py +70 -0
  493. spire/xls/SparklineCollection.py +112 -0
  494. spire/xls/SparklineEmptyCells.py +16 -0
  495. spire/xls/SparklineGroup.py +523 -0
  496. spire/xls/SparklineGroupCollection.py +71 -0
  497. spire/xls/SparklineType.py +18 -0
  498. spire/xls/SpartlineVerticalAxisType.py +16 -0
  499. spire/xls/SpinnerShapeCollection.py +70 -0
  500. spire/xls/SplitType.py +19 -0
  501. spire/xls/StrikeThroughStyle.py +17 -0
  502. spire/xls/StringUtil.py +12 -0
  503. spire/xls/StyleArrayWrapper.py +621 -0
  504. spire/xls/StyleDefineType.py +15 -0
  505. spire/xls/StylesCollection.py +141 -0
  506. spire/xls/SubtotalTypes.py +26 -0
  507. spire/xls/TRangeValueType.py +19 -0
  508. spire/xls/TableBuiltInStyles.py +75 -0
  509. spire/xls/TextBoxCollection.py +70 -0
  510. spire/xls/TextBoxShapeBase.py +140 -0
  511. spire/xls/TextDirection.py +20 -0
  512. spire/xls/TextDirectionType.py +16 -0
  513. spire/xls/TextRotationType.py +19 -0
  514. spire/xls/TextSaveOptions.py +85 -0
  515. spire/xls/TextVerticalValue.py +19 -0
  516. spire/xls/ThemeColorType.py +27 -0
  517. spire/xls/TickLabelPositionType.py +19 -0
  518. spire/xls/TickMarkType.py +19 -0
  519. spire/xls/TimePeriodType.py +23 -0
  520. spire/xls/Top10Filter.py +75 -0
  521. spire/xls/TopBottom.py +44 -0
  522. spire/xls/TopBottomType.py +19 -0
  523. spire/xls/TopFormatType.py +18 -0
  524. spire/xls/TrendLineType.py +21 -0
  525. spire/xls/UnderlineStyle.py +32 -0
  526. spire/xls/UnknownVariableAction.py +18 -0
  527. spire/xls/UtilityMethods.py +55 -0
  528. spire/xls/VPageBreak.py +34 -0
  529. spire/xls/VPageBreaksCollection.py +96 -0
  530. spire/xls/Validation.py +33 -0
  531. spire/xls/ValidationComparisonOperator.py +23 -0
  532. spire/xls/VariableTypeAction.py +19 -0
  533. spire/xls/VerticalAlignType.py +20 -0
  534. spire/xls/ViewMode.py +18 -0
  535. spire/xls/WebQueryConnection.py +224 -0
  536. spire/xls/Workbook.py +3152 -0
  537. spire/xls/WorkbookObjectsCollection.py +25 -0
  538. spire/xls/Worksheet.py +1319 -0
  539. spire/xls/WorksheetChartsCollection.py +83 -0
  540. spire/xls/WorksheetConditionalFormats.py +12 -0
  541. spire/xls/WorksheetCopyType.py +31 -0
  542. spire/xls/WorksheetVisibility.py +18 -0
  543. spire/xls/WorksheetsCollection.py +341 -0
  544. spire/xls/WriteProtection.py +64 -0
  545. spire/xls/XLSXBorderJoinType.py +19 -0
  546. spire/xls/XLSXChartBevelType.py +26 -0
  547. spire/xls/XLSXChartLightingType.py +40 -0
  548. spire/xls/XLSXChartMaterialType.py +32 -0
  549. spire/xls/XLSXChartPrespectiveType.py +21 -0
  550. spire/xls/XLSXChartShadowInnerType.py +25 -0
  551. spire/xls/XLSXChartShadowOuterType.py +25 -0
  552. spire/xls/XLSXPivotItemType.py +28 -0
  553. spire/xls/XlsAddInFunction.py +78 -0
  554. spire/xls/XlsAddInFunctionsCollection.py +101 -0
  555. spire/xls/XlsArcShape.py +331 -0
  556. spire/xls/XlsAutoFiltersCollection.py +119 -0
  557. spire/xls/XlsBitmapShape.py +297 -0
  558. spire/xls/XlsBorder.py +172 -0
  559. spire/xls/XlsBorderArrayWrapper.py +116 -0
  560. spire/xls/XlsBordersCollection.py +101 -0
  561. spire/xls/XlsBuiltInDocumentProperties.py +639 -0
  562. spire/xls/XlsButtonShape.py +137 -0
  563. spire/xls/XlsChart.py +1510 -0
  564. spire/xls/XlsChartAxis.py +564 -0
  565. spire/xls/XlsChartBorder.py +165 -0
  566. spire/xls/XlsChartCategoryAxis.py +656 -0
  567. spire/xls/XlsChartDataLabelArea.py +387 -0
  568. spire/xls/XlsChartDataLabels.py +811 -0
  569. spire/xls/XlsChartDataPoint.py +108 -0
  570. spire/xls/XlsChartDataPointsCollection.py +120 -0
  571. spire/xls/XlsChartDataTable.py +393 -0
  572. spire/xls/XlsChartDropBar.py +301 -0
  573. spire/xls/XlsChartFill.py +571 -0
  574. spire/xls/XlsChartFormat.py +1069 -0
  575. spire/xls/XlsChartFormatCollection.py +162 -0
  576. spire/xls/XlsChartFrameFormat.py +614 -0
  577. spire/xls/XlsChartGridLine.py +171 -0
  578. spire/xls/XlsChartInterior.py +240 -0
  579. spire/xls/XlsChartLegend.py +355 -0
  580. spire/xls/XlsChartLegendArea.py +419 -0
  581. spire/xls/XlsChartLegendEntry.py +156 -0
  582. spire/xls/XlsChartPageSetup.py +56 -0
  583. spire/xls/XlsChartPlotArea.py +12 -0
  584. spire/xls/XlsChartSerie.py +589 -0
  585. spire/xls/XlsChartSerieDataFormat.py +1008 -0
  586. spire/xls/XlsChartSeries.py +111 -0
  587. spire/xls/XlsChartSeriesAxis.py +212 -0
  588. spire/xls/XlsChartShape.py +1142 -0
  589. spire/xls/XlsChartTitleArea.py +392 -0
  590. spire/xls/XlsChartValueAxis.py +317 -0
  591. spire/xls/XlsChartWallOrFloor.py +319 -0
  592. spire/xls/XlsChartsCollection.py +89 -0
  593. spire/xls/XlsCheckBoxShape.py +156 -0
  594. spire/xls/XlsComboBoxShape.py +128 -0
  595. spire/xls/XlsComment.py +234 -0
  596. spire/xls/XlsCommentsCollection.py +87 -0
  597. spire/xls/XlsConditionValue.py +111 -0
  598. spire/xls/XlsConditionalFormat.py +1119 -0
  599. spire/xls/XlsConditionalFormats.py +590 -0
  600. spire/xls/XlsDataValidationCollection.py +159 -0
  601. spire/xls/XlsDataValidationTable.py +105 -0
  602. spire/xls/XlsDocumentProperty.py +370 -0
  603. spire/xls/XlsEventArgs.py +93 -0
  604. spire/xls/XlsEventHandler.py +52 -0
  605. spire/xls/XlsFill.py +139 -0
  606. spire/xls/XlsFont.py +364 -0
  607. spire/xls/XlsFontStyle.py +12 -0
  608. spire/xls/XlsFontsCollection.py +51 -0
  609. spire/xls/XlsGradient.py +185 -0
  610. spire/xls/XlsGradientStop.py +85 -0
  611. spire/xls/XlsGroupBoxShape.py +88 -0
  612. spire/xls/XlsHPageBreak.py +105 -0
  613. spire/xls/XlsHPageBreaksCollection.py +85 -0
  614. spire/xls/XlsHeaderFooterShapeCollection.py +57 -0
  615. spire/xls/XlsHyperLink.py +229 -0
  616. spire/xls/XlsHyperLinksCollection.py +102 -0
  617. spire/xls/XlsLabelShape.py +73 -0
  618. spire/xls/XlsLineShape.py +367 -0
  619. spire/xls/XlsListBoxShape.py +124 -0
  620. spire/xls/XlsName.py +1871 -0
  621. spire/xls/XlsObject.py +36 -0
  622. spire/xls/XlsOvalShape.py +176 -0
  623. spire/xls/XlsPageSetup.py +220 -0
  624. spire/xls/XlsPageSetupBase.py +1354 -0
  625. spire/xls/XlsPicturesCollection.py +365 -0
  626. spire/xls/XlsPivotCache.py +401 -0
  627. spire/xls/XlsPivotCacheField.py +209 -0
  628. spire/xls/XlsPivotCachesCollection.py +124 -0
  629. spire/xls/XlsPivotField.py +885 -0
  630. spire/xls/XlsPivotTable.py +905 -0
  631. spire/xls/XlsPivotTablesCollection.py +131 -0
  632. spire/xls/XlsPrstGeomShape.py +97 -0
  633. spire/xls/XlsRadioButtonShape.py +188 -0
  634. spire/xls/XlsRange.py +3193 -0
  635. spire/xls/XlsRangesCollection.py +1566 -0
  636. spire/xls/XlsRectangleShape.py +174 -0
  637. spire/xls/XlsScrollBarShape.py +146 -0
  638. spire/xls/XlsShape.py +967 -0
  639. spire/xls/XlsShapeFill.py +627 -0
  640. spire/xls/XlsShapeLineFormat.py +341 -0
  641. spire/xls/XlsSpinnerShape.py +116 -0
  642. spire/xls/XlsStyle.py +106 -0
  643. spire/xls/XlsStylesCollection.py +73 -0
  644. spire/xls/XlsTextBoxShape.py +480 -0
  645. spire/xls/XlsVPageBreak.py +98 -0
  646. spire/xls/XlsVPageBreaksCollection.py +84 -0
  647. spire/xls/XlsValidation.py +520 -0
  648. spire/xls/XlsValidationWrapper.py +397 -0
  649. spire/xls/XlsWorkbook.py +1947 -0
  650. spire/xls/XlsWorkbookObjectsCollection.py +94 -0
  651. spire/xls/XlsWorksheet.py +4352 -0
  652. spire/xls/XlsWorksheetBase.py +1273 -0
  653. spire/xls/XlsWorksheetChartsCollection.py +25 -0
  654. spire/xls/XlsWorksheetConditionalFormats.py +215 -0
  655. spire/xls/XlsWorksheetsCollection.py +416 -0
  656. spire/xls/XmlOpenType.py +14 -0
  657. spire/xls/__init__.py +723 -0
  658. spire/xls/common/Boolean.py +192 -0
  659. spire/xls/common/Byte.py +256 -0
  660. spire/xls/common/Char.py +740 -0
  661. spire/xls/common/Color.py +2187 -0
  662. spire/xls/common/Common.py +150 -0
  663. spire/xls/common/CultureInfo.py +565 -0
  664. spire/xls/common/DateTime.py +1147 -0
  665. spire/xls/common/Double.py +438 -0
  666. spire/xls/common/EmfType.py +23 -0
  667. spire/xls/common/Encoding.py +928 -0
  668. spire/xls/common/FontStyle.py +25 -0
  669. spire/xls/common/GraphicsUnit.py +27 -0
  670. spire/xls/common/ICollection.py +70 -0
  671. spire/xls/common/IDictionary.py +122 -0
  672. spire/xls/common/IEnumerable.py +41 -0
  673. spire/xls/common/IEnumerator.py +60 -0
  674. spire/xls/common/IList.py +145 -0
  675. spire/xls/common/Int16.py +272 -0
  676. spire/xls/common/Int32.py +280 -0
  677. spire/xls/common/Int64.py +256 -0
  678. spire/xls/common/License.py +175 -0
  679. spire/xls/common/PixelFormat.py +43 -0
  680. spire/xls/common/Point.py +298 -0
  681. spire/xls/common/PointF.py +274 -0
  682. spire/xls/common/Rectangle.py +449 -0
  683. spire/xls/common/RectangleF.py +436 -0
  684. spire/xls/common/Regex.py +962 -0
  685. spire/xls/common/RegexOptions.py +29 -0
  686. spire/xls/common/Single.py +416 -0
  687. spire/xls/common/Size.py +271 -0
  688. spire/xls/common/SizeF.py +259 -0
  689. spire/xls/common/SpireObject.py +79 -0
  690. spire/xls/common/Stream.py +550 -0
  691. spire/xls/common/String.py +1878 -0
  692. spire/xls/common/TimeSpan.py +872 -0
  693. spire/xls/common/UInt16.py +272 -0
  694. spire/xls/common/UInt32.py +272 -0
  695. spire/xls/common/UInt64.py +272 -0
  696. spire/xls/common/__init__.py +316 -0
  697. spire/xls/lib/Spire.Xls.Base.dll +0 -0
  698. spire/xls/lib/__init__.py +0 -0
  699. spire/xls/lib/libSkiaSharp.dll +0 -0
  700. spire_xls-15.5.0.dist-info/METADATA +197 -0
  701. spire_xls-15.5.0.dist-info/RECORD +703 -0
  702. spire_xls-15.5.0.dist-info/WHEEL +5 -0
  703. spire_xls-15.5.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,4352 @@
1
+ from enum import Enum
2
+ from plum import dispatch
3
+ from typing import TypeVar,Union,Generic,List,Tuple
4
+ from spire.xls.common import *
5
+ from spire.xls import *
6
+ from ctypes import *
7
+ import abc
8
+
9
+ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
10
+ """
11
+
12
+ """
13
+ def GetActiveSelectionRange(self)->List['CellRange']:
14
+ """
15
+ <summary>
16
+ Get active selection range.
17
+ </summary>
18
+ <returns></returns>
19
+ """
20
+ GetDllLibXls().XlsWorksheet_get_ActiveSelectionRange.argtypes=[c_void_p]
21
+ GetDllLibXls().XlsWorksheet_get_ActiveSelectionRange.restype=IntPtrArray
22
+ intPtrArray = CallCFunction(GetDllLibXls().XlsWorksheet_get_ActiveSelectionRange, self.Ptr)
23
+ ret = GetObjVectorFromArray(intPtrArray, CellRange)
24
+ return ret
25
+
26
+
27
+ def GroupByColumns(self ,firstColumn:int,lastColumn:int,isCollapsed:bool)->'CellRange':
28
+ """
29
+ <summary>
30
+ Groups columns.
31
+ </summary>
32
+ <param name="firstColumn">The first column index to be grouped.</param>
33
+ <param name="lastColumn">The last column index to be grouped.</param>
34
+ <param name="isCollapsed">Indicates whether group should be collapsed.</param>
35
+ <returns></returns>
36
+ """
37
+
38
+ GetDllLibXls().XlsWorksheet_GroupByColumns.argtypes=[c_void_p ,c_int,c_int,c_bool]
39
+ GetDllLibXls().XlsWorksheet_GroupByColumns.restype=c_void_p
40
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GroupByColumns, self.Ptr, firstColumn,lastColumn,isCollapsed)
41
+ ret = None if intPtr==None else CellRange(intPtr)
42
+ return ret
43
+
44
+
45
+
46
+ def GroupByRows(self ,firstRow:int,lastRow:int,isCollapsed:bool)->'CellRange':
47
+ """
48
+ <summary>
49
+ Groups rows.
50
+ </summary>
51
+ <param name="firstRow">The first row index to be grouped.</param>
52
+ <param name="lastRow">The last row index to be grouped.</param>
53
+ <param name="isCollapsed">Indicates whether group should be collapsed.</param>
54
+ <returns></returns>
55
+ """
56
+
57
+ GetDllLibXls().XlsWorksheet_GroupByRows.argtypes=[c_void_p ,c_int,c_int,c_bool]
58
+ GetDllLibXls().XlsWorksheet_GroupByRows.restype=c_void_p
59
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GroupByRows, self.Ptr, firstRow,lastRow,isCollapsed)
60
+ ret = None if intPtr==None else CellRange(intPtr)
61
+ return ret
62
+
63
+
64
+
65
+ def UngroupByColumns(self ,firstColumn:int,lastColumn:int)->'CellRange':
66
+ """
67
+ <summary>
68
+ Ungroups columns.
69
+ </summary>
70
+ <param name="firstColumn">The first column index to be grouped.</param>
71
+ <param name="lastColumn">The last column index to be grouped.</param>
72
+ <returns></returns>
73
+ """
74
+
75
+ GetDllLibXls().XlsWorksheet_UngroupByColumns.argtypes=[c_void_p ,c_int,c_int]
76
+ GetDllLibXls().XlsWorksheet_UngroupByColumns.restype=c_void_p
77
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_UngroupByColumns, self.Ptr, firstColumn,lastColumn)
78
+ ret = None if intPtr==None else CellRange(intPtr)
79
+ return ret
80
+
81
+
82
+
83
+ def UngroupByRows(self ,firstRow:int,lastRow:int)->'CellRange':
84
+ """
85
+ <summary>
86
+ Ungroups rows.
87
+ </summary>
88
+ <param name="firstRow">The first row index to be grouped.</param>
89
+ <param name="lastRow">The last row index to be grouped.</param>
90
+ <returns></returns>
91
+ """
92
+
93
+ GetDllLibXls().XlsWorksheet_UngroupByRows.argtypes=[c_void_p ,c_int,c_int]
94
+ GetDllLibXls().XlsWorksheet_UngroupByRows.restype=c_void_p
95
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_UngroupByRows, self.Ptr, firstRow,lastRow)
96
+ ret = None if intPtr==None else CellRange(intPtr)
97
+ return ret
98
+
99
+
100
+
101
+ def SaveShapesToImage(self ,option:'SaveShapeTypeOption')->List['Stream']:
102
+ """
103
+
104
+ """
105
+ GetDllLibXls().XlsWorksheet_SaveShapesToImage.argtypes=[c_void_p ,c_void_p]
106
+ GetDllLibXls().XlsWorksheet_SaveShapesToImage.restype=IntPtrArray
107
+ intPtrArray = CallCFunction(GetDllLibXls().XlsWorksheet_SaveShapesToImage, self.Ptr,option.Ptr)
108
+ ret = GetObjVectorFromArray(intPtrArray, Stream)
109
+ return ret
110
+
111
+
112
+
113
+ @dispatch
114
+
115
+ def ApplyStyle(self ,style:CellStyle):
116
+ """
117
+
118
+ """
119
+ intPtrstyle:c_void_p = style.Ptr
120
+
121
+ GetDllLibXls().XlsWorksheet_ApplyStyle.argtypes=[c_void_p ,c_void_p]
122
+ CallCFunction(GetDllLibXls().XlsWorksheet_ApplyStyle, self.Ptr, intPtrstyle)
123
+
124
+ @dispatch
125
+
126
+ def ApplyStyle(self ,style:CellStyle,applyRowStyle:bool,applyColumnStyle:bool):
127
+ """
128
+ <summary>
129
+ Apply style to whole sheet.
130
+ </summary>
131
+ <param name="style">style to apply</param>
132
+ <param name="applyRowStyle">true means apply style to all rows</param>
133
+ <param name="applyColumnStyle">true means apply style to all columns</param>
134
+ """
135
+ intPtrstyle:c_void_p = style.Ptr
136
+
137
+ GetDllLibXls().XlsWorksheet_ApplyStyleSAA.argtypes=[c_void_p ,c_void_p,c_bool,c_bool]
138
+ CallCFunction(GetDllLibXls().XlsWorksheet_ApplyStyleSAA, self.Ptr, intPtrstyle,applyRowStyle,applyColumnStyle)
139
+
140
+ @dispatch
141
+
142
+ def Subtotal(self ,range:IXLSRange,groupByIndex:int,totalFields:List[int],subtotalType:SubtotalTypes):
143
+ """
144
+ <summary>
145
+ Creates subtotals for the range.
146
+ </summary>
147
+ <param name="range">The range</param>
148
+ <param name="groupByIndex">The field index to group by, offset from zero</param>
149
+ <param name="totalFields">An array of zero-based field index offsets, indicating the fields to which the subtotals are added.</param>
150
+ <param name="subtotalType">The subtotal type.</param>
151
+ """
152
+ intPtrrange:c_void_p = range.Ptr
153
+ #arraytotalFields:ArrayTypetotalFields = ""
154
+ counttotalFields = len(totalFields)
155
+ ArrayTypetotalFields = c_int * counttotalFields
156
+ arraytotalFields = ArrayTypetotalFields()
157
+ for i in range(0, counttotalFields):
158
+ arraytotalFields[i] = totalFields[i]
159
+
160
+ enumsubtotalType:c_int = subtotalType.value
161
+
162
+ GetDllLibXls().XlsWorksheet_Subtotal.argtypes=[c_void_p ,c_void_p,c_int,ArrayTypetotalFields,c_int,c_int]
163
+ CallCFunction(GetDllLibXls().XlsWorksheet_Subtotal, self.Ptr, intPtrrange,groupByIndex,arraytotalFields,counttotalFields,enumsubtotalType)
164
+
165
+ @dispatch
166
+
167
+ def Subtotal(self ,r:IXLSRange,groupByIndex:int,totalFields:List[int],subtotalType:SubtotalTypes,replace:bool,addPageBreak:bool,addsummaryBelowData:bool):
168
+ """
169
+ <summary>
170
+ Creates subtotals for the range.
171
+ </summary>
172
+ <param name="range">The range</param>
173
+ <param name="groupByIndex">The field index to group by, offset from zero</param>
174
+ <param name="totalFields">An array of zero-based field index offsets, indicating the fields to which the subtotals are added.</param>
175
+ <param name="subtotalType">The subtotal type.</param>
176
+ <param name="replace">Indicates whether replace the current subtotals</param>
177
+ <param name="addPageBreak">Indicates whether add page break between groups</param>
178
+ <param name="addsummaryBelowData">Indicates whether add summarry below data.</param>
179
+ """
180
+ intPtrrange:c_void_p = r.Ptr
181
+ #arraytotalFields:ArrayTypetotalFields = ""
182
+ counttotalFields = len(totalFields)
183
+ ArrayTypetotalFields = c_int * counttotalFields
184
+ arraytotalFields = ArrayTypetotalFields()
185
+ for i in range(0, counttotalFields):
186
+ arraytotalFields[i] = totalFields[i]
187
+
188
+ enumsubtotalType:c_int = subtotalType.value
189
+
190
+ GetDllLibXls().XlsWorksheet_SubtotalRGTSRAA.argtypes=[c_void_p ,c_void_p,c_int,ArrayTypetotalFields,c_int,c_int,c_bool,c_bool,c_bool]
191
+ CallCFunction(GetDllLibXls().XlsWorksheet_SubtotalRGTSRAA, self.Ptr, intPtrrange,groupByIndex,arraytotalFields,counttotalFields,enumsubtotalType,replace,addPageBreak,addsummaryBelowData)
192
+
193
+
194
+ def GetRowIsAutoFit(self ,rowIndex:int)->bool:
195
+ """
196
+ <summary>
197
+ Get GetRowIsAutoFit By rowIndex
198
+ </summary>
199
+ <param name="rowIndex"></param>
200
+ <returns>If the row is null Return false,else if the row height is Autofit Return true, the row height is CustomHeight Return false</returns>
201
+ """
202
+
203
+ GetDllLibXls().XlsWorksheet_GetRowIsAutoFit.argtypes=[c_void_p ,c_int]
204
+ GetDllLibXls().XlsWorksheet_GetRowIsAutoFit.restype=c_bool
205
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_GetRowIsAutoFit, self.Ptr, rowIndex)
206
+ return ret
207
+
208
+
209
+ def GetColumnIsAutoFit(self ,columnIndex:int)->bool:
210
+ """
211
+ <summary>
212
+ Get ColumnIsAutofit By columnIndex
213
+ </summary>
214
+ <param name="columnIndex"></param>
215
+ <returns>If the column is null Return false,else if the column width is Autofit Return true, the column width is CustomWidth Return false</returns>
216
+ """
217
+
218
+ GetDllLibXls().XlsWorksheet_GetColumnIsAutoFit.argtypes=[c_void_p ,c_int]
219
+ GetDllLibXls().XlsWorksheet_GetColumnIsAutoFit.restype=c_bool
220
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_GetColumnIsAutoFit, self.Ptr, columnIndex)
221
+ return ret
222
+
223
+
224
+ def GetDefaultRowStyle(self ,rowIndex:int)->'IStyle':
225
+ """
226
+
227
+ """
228
+
229
+ GetDllLibXls().XlsWorksheet_GetDefaultRowStyle.argtypes=[c_void_p ,c_int]
230
+ GetDllLibXls().XlsWorksheet_GetDefaultRowStyle.restype=c_void_p
231
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GetDefaultRowStyle, self.Ptr, rowIndex)
232
+ ret = None if intPtr==None else CellStyle(intPtr)
233
+ return ret
234
+
235
+
236
+
237
+ def GetError(self ,row:int,column:int)->str:
238
+ """
239
+ <summary>
240
+ Gets error value from cell.
241
+ </summary>
242
+ <param name="row">Row index.</param>
243
+ <param name="column">Column index.</param>
244
+ <returns>Returns error value or null.</returns>
245
+ """
246
+
247
+ GetDllLibXls().XlsWorksheet_GetError.argtypes=[c_void_p ,c_int,c_int]
248
+ GetDllLibXls().XlsWorksheet_GetError.restype=c_void_p
249
+ ret = PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetError, self.Ptr, row,column))
250
+ return ret
251
+
252
+
253
+
254
+ def GetFormulaErrorValue(self ,row:int,column:int)->str:
255
+ """
256
+ <summary>
257
+ Gets formula error value from cell.
258
+ </summary>
259
+ <param name="row">Row index.</param>
260
+ <param name="column">Column index.</param>
261
+ <returns>Returns error value or null.</returns>
262
+ """
263
+
264
+ GetDllLibXls().XlsWorksheet_GetFormulaErrorValue.argtypes=[c_void_p ,c_int,c_int]
265
+ GetDllLibXls().XlsWorksheet_GetFormulaErrorValue.restype=c_void_p
266
+ ret = PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetFormulaErrorValue, self.Ptr, row,column))
267
+ return ret
268
+
269
+
270
+
271
+ def GetFormulaNumberValue(self ,row:int,column:int)->float:
272
+ """
273
+ <summary>
274
+ Returns formula number value corresponding to the cell.
275
+ </summary>
276
+ <param name="row">One-based row index of the cell to get value from.</param>
277
+ <param name="column">One-based column index of the cell to get value from.</param>
278
+ <returns>Number contained by the cell.</returns>
279
+ """
280
+
281
+ GetDllLibXls().XlsWorksheet_GetFormulaNumberValue.argtypes=[c_void_p ,c_int,c_int]
282
+ GetDllLibXls().XlsWorksheet_GetFormulaNumberValue.restype=c_double
283
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_GetFormulaNumberValue, self.Ptr, row,column)
284
+ return ret
285
+
286
+
287
+ def GetFormulaStringValue(self ,row:int,column:int)->str:
288
+ """
289
+ <summary>
290
+ Returns formula string value corresponding to the cell.
291
+ </summary>
292
+ <param name="row">One-based row index of the cell to get value from.</param>
293
+ <param name="column">One-based column index of the cell to get value from.</param>
294
+ <returns>String contained by the cell.</returns>
295
+ """
296
+
297
+ GetDllLibXls().XlsWorksheet_GetFormulaStringValue.argtypes=[c_void_p ,c_int,c_int]
298
+ GetDllLibXls().XlsWorksheet_GetFormulaStringValue.restype=c_void_p
299
+ ret = PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetFormulaStringValue, self.Ptr, row,column))
300
+ return ret
301
+
302
+
303
+ @dispatch
304
+
305
+ def GetFormula(self ,row:int,column:int,bR1C1:bool)->str:
306
+ """
307
+
308
+ """
309
+
310
+ GetDllLibXls().XlsWorksheet_GetFormula.argtypes=[c_void_p ,c_int,c_int,c_bool]
311
+ GetDllLibXls().XlsWorksheet_GetFormula.restype=c_void_p
312
+ ret = PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetFormula, self.Ptr, row,column,bR1C1))
313
+ return ret
314
+
315
+
316
+ @dispatch
317
+
318
+ def GetFormula(self ,row:int,column:int,bR1C1:bool,isForSerialization:bool)->str:
319
+ """
320
+
321
+ """
322
+
323
+ GetDllLibXls().XlsWorksheet_GetFormulaRCBI.argtypes=[c_void_p ,c_int,c_int,c_bool,c_bool]
324
+ GetDllLibXls().XlsWorksheet_GetFormulaRCBI.restype=c_void_p
325
+ ret = PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetFormulaRCBI, self.Ptr, row,column,bR1C1,isForSerialization))
326
+ return ret
327
+
328
+
329
+
330
+ def GetFormulaBoolValue(self ,row:int,column:int)->bool:
331
+ """
332
+ <summary>
333
+ Gets formula bool value from cell.
334
+ </summary>
335
+ <param name="row">Represents row index.</param>
336
+ <param name="column">Represents column index.</param>
337
+ <returns>Returns found bool value. If cannot found returns false.</returns>
338
+ """
339
+
340
+ GetDllLibXls().XlsWorksheet_GetFormulaBoolValue.argtypes=[c_void_p ,c_int,c_int]
341
+ GetDllLibXls().XlsWorksheet_GetFormulaBoolValue.restype=c_bool
342
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_GetFormulaBoolValue, self.Ptr, row,column)
343
+ return ret
344
+
345
+
346
+ def GetNumber(self ,row:int,column:int)->float:
347
+ """
348
+ <summary>
349
+ Returns number value corresponding to the cell.
350
+ </summary>
351
+ <param name="row">One-based row index of the cell to get value from.</param>
352
+ <param name="column">One-based column index of the cell to get value from.</param>
353
+ <returns>Number contained by the cell.</returns>
354
+ """
355
+
356
+ GetDllLibXls().XlsWorksheet_GetNumber.argtypes=[c_void_p ,c_int,c_int]
357
+ GetDllLibXls().XlsWorksheet_GetNumber.restype=c_double
358
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_GetNumber, self.Ptr, row,column)
359
+ return ret
360
+
361
+
362
+ def GetRowHeight(self ,row:int)->float:
363
+ """
364
+ <summary>
365
+ Gets the height of a specified row.
366
+ </summary>
367
+ <param name="row">Row index.</param>
368
+ <returns>Height of row</returns>
369
+ """
370
+
371
+ GetDllLibXls().XlsWorksheet_GetRowHeight.argtypes=[c_void_p ,c_int]
372
+ GetDllLibXls().XlsWorksheet_GetRowHeight.restype=c_double
373
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_GetRowHeight, self.Ptr, row)
374
+ return ret
375
+
376
+
377
+ def GetColumnIsHide(self ,columnIndex:int)->bool:
378
+ """
379
+ <summary>
380
+ Indicates whether the column is hidden.
381
+ </summary>
382
+ <param name="columnIndex">Column index.</param>
383
+ <returns></returns>
384
+ """
385
+
386
+ GetDllLibXls().XlsWorksheet_GetColumnIsHide.argtypes=[c_void_p ,c_int]
387
+ GetDllLibXls().XlsWorksheet_GetColumnIsHide.restype=c_bool
388
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_GetColumnIsHide, self.Ptr, columnIndex)
389
+ return ret
390
+
391
+
392
+ def GetRowIsHide(self ,rowIndex:int)->bool:
393
+ """
394
+ <summary>
395
+ Indicates whether the row is hidden.
396
+ </summary>
397
+ <param name="rowIndex">Row index.</param>
398
+ <returns></returns>
399
+ """
400
+
401
+ GetDllLibXls().XlsWorksheet_GetRowIsHide.argtypes=[c_void_p ,c_int]
402
+ GetDllLibXls().XlsWorksheet_GetRowIsHide.restype=c_bool
403
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_GetRowIsHide, self.Ptr, rowIndex)
404
+ return ret
405
+
406
+
407
+ def HideColumn(self ,columnIndex:int):
408
+ """
409
+ <summary>
410
+ Hides a column.
411
+ </summary>
412
+ <param name="columnIndex">Column index.</param>
413
+ """
414
+
415
+ GetDllLibXls().XlsWorksheet_HideColumn.argtypes=[c_void_p ,c_int]
416
+ CallCFunction(GetDllLibXls().XlsWorksheet_HideColumn, self.Ptr, columnIndex)
417
+
418
+
419
+ def HideColumns(self ,columnIndex:int,columnCount:int):
420
+ """
421
+ <summary>
422
+ Hides columns.
423
+ </summary>
424
+ <param name="columnIndex">Column index.</param>
425
+ <param name="columnCount">Column count.</param>
426
+ """
427
+
428
+ GetDllLibXls().XlsWorksheet_HideColumns.argtypes=[c_void_p ,c_int,c_int]
429
+ CallCFunction(GetDllLibXls().XlsWorksheet_HideColumns, self.Ptr, columnIndex,columnCount)
430
+
431
+
432
+ def HideRow(self ,rowIndex:int):
433
+ """
434
+ <summary>
435
+ Hides a row.
436
+ </summary>
437
+ <param name="rowIndex">Row index.</param>
438
+ """
439
+
440
+ GetDllLibXls().XlsWorksheet_HideRow.argtypes=[c_void_p ,c_int]
441
+ CallCFunction(GetDllLibXls().XlsWorksheet_HideRow, self.Ptr, rowIndex)
442
+
443
+
444
+ def HideRows(self ,rowIndex:int,rowCount:int):
445
+ """
446
+ <summary>
447
+ Hides a row.
448
+ </summary>
449
+ <param name="rowIndex">Row index.</param>
450
+ <param name="rowCount">Row count.</param>
451
+ """
452
+
453
+ GetDllLibXls().XlsWorksheet_HideRows.argtypes=[c_void_p ,c_int,c_int]
454
+ CallCFunction(GetDllLibXls().XlsWorksheet_HideRows, self.Ptr, rowIndex,rowCount)
455
+
456
+
457
+ def GetRowHeightPixels(self ,rowIndex:int)->int:
458
+ """
459
+ <summary>
460
+ Gets the height of a specified row in unit of pixel.
461
+ <example>The following code illustrates how to get the row height for a particular row:
462
+ <code>
463
+ //Create worksheet
464
+ Workbook workbook = new Workbook();
465
+ Worksheet worksheet = workbook.Worksheets[0];
466
+ //Set text
467
+ worksheet["C2"].Text = "Sample text";
468
+ worksheet["C2"].Style.Font.Size = 18;
469
+ //Set auto fit
470
+ worksheet.AutoFitRow(2);
471
+ //Get row height
472
+ Console.WriteLine(worksheet.GetRowHeightPixels(2));
473
+ //Save to file
474
+ workbook.SaveToFile("UsedRange.xlsx");
475
+ </code>
476
+ </example>
477
+ </summary>
478
+ <param name="rowIndex">Row index.</param>
479
+ <returns>Height of row</returns>
480
+ """
481
+
482
+ GetDllLibXls().XlsWorksheet_GetRowHeightPixels.argtypes=[c_void_p ,c_int]
483
+ GetDllLibXls().XlsWorksheet_GetRowHeightPixels.restype=c_int
484
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_GetRowHeightPixels, self.Ptr, rowIndex)
485
+ return ret
486
+
487
+
488
+ def GetText(self ,row:int,column:int)->str:
489
+ """
490
+ <summary>
491
+ Returns string value corresponding to the cell.
492
+ </summary>
493
+ <param name="row">One-based row index of the cell to get value from.</param>
494
+ <param name="column">One-based column index of the cell to get value from.</param>
495
+ <returns>String contained by the cell.</returns>
496
+ """
497
+
498
+ GetDllLibXls().XlsWorksheet_GetText.argtypes=[c_void_p ,c_int,c_int]
499
+ GetDllLibXls().XlsWorksheet_GetText.restype=c_void_p
500
+ ret = PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetText, self.Ptr, row,column))
501
+ return ret
502
+
503
+
504
+
505
+ def DeleteRange(self ,range:'CellRange',deleteOption:'DeleteOption'):
506
+ """
507
+ <summary>
508
+ delete a range in worksheet
509
+ </summary>
510
+ <param name="range">the range to be deleted</param>
511
+ <param name="deleteOption">Choose to move the right range to left or move the below range to above</param>
512
+ """
513
+ intPtrrange:c_void_p = range.Ptr
514
+ enumdeleteOption:c_int = deleteOption.value
515
+
516
+ GetDllLibXls().XlsWorksheet_DeleteRange.argtypes=[c_void_p ,c_void_p,c_int]
517
+ CallCFunction(GetDllLibXls().XlsWorksheet_DeleteRange, self.Ptr, intPtrrange,enumdeleteOption)
518
+
519
+
520
+ def MoveWorksheet(self ,destIndex:int):
521
+ """
522
+ <summary>
523
+ Moves worksheet into new position.
524
+ </summary>
525
+ <param name="destIndex">Destination index.</param>
526
+ """
527
+
528
+ GetDllLibXls().XlsWorksheet_MoveWorksheet.argtypes=[c_void_p ,c_int]
529
+ CallCFunction(GetDllLibXls().XlsWorksheet_MoveWorksheet, self.Ptr, destIndex)
530
+
531
+
532
+ def PixelsToColumnWidth(self ,pixels:float)->float:
533
+ """
534
+
535
+ """
536
+
537
+ GetDllLibXls().XlsWorksheet_PixelsToColumnWidth.argtypes=[c_void_p ,c_double]
538
+ GetDllLibXls().XlsWorksheet_PixelsToColumnWidth.restype=c_double
539
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_PixelsToColumnWidth, self.Ptr, pixels)
540
+ return ret
541
+
542
+ def Remove(self):
543
+ """
544
+ <summary>
545
+ Removes worksheet from parernt worksheets collection.
546
+ </summary>
547
+ """
548
+ GetDllLibXls().XlsWorksheet_Remove.argtypes=[c_void_p]
549
+ CallCFunction(GetDllLibXls().XlsWorksheet_Remove, self.Ptr)
550
+
551
+
552
+ def RemoveMergedCells(self ,range:'IXLSRange'):
553
+ """
554
+
555
+ """
556
+ intPtrrange:c_void_p = range.Ptr
557
+
558
+ GetDllLibXls().XlsWorksheet_RemoveMergedCells.argtypes=[c_void_p ,c_void_p]
559
+ CallCFunction(GetDllLibXls().XlsWorksheet_RemoveMergedCells, self.Ptr, intPtrrange)
560
+
561
+ def RemovePanes(self):
562
+ """
563
+ <summary>
564
+ Removes panes from a worksheet.
565
+ </summary>
566
+ """
567
+ GetDllLibXls().XlsWorksheet_RemovePanes.argtypes=[c_void_p]
568
+ CallCFunction(GetDllLibXls().XlsWorksheet_RemovePanes, self.Ptr)
569
+
570
+ # @dispatch
571
+ #
572
+ # def Replace(self ,oldValue:str,column:'DataColumn',columnHeaders:bool):
573
+ # """
574
+ # <summary>
575
+ # Replaces cells' values with new data.
576
+ # <example>The following code snippet illustrates how to replace the string value with data column:
577
+ # <code>
578
+ # //Create worksheet
579
+ # Workbook workbook = new Workbook();
580
+ # workbook.LoadFromFile("Sample.xlsx");
581
+ # Worksheet worksheet = workbook.Worksheets[0];
582
+ # //Replace the oldValue by data column
583
+ # string oldValue = "Find";
584
+ # System.Data.DataTable table = new System.Data.DataTable();
585
+ # table.Columns.Add("Dosage", typeof(int));
586
+ # table.Rows.Add(1);
587
+ # System.Data.DataColumn dataColumn = table.Columns[0];
588
+ # worksheet.Replace(oldValue, dataColumn, true);
589
+ # //Save to file
590
+ # workbook.SaveToFile("Replace.xlsx");
591
+ # </code>
592
+ # </example>
593
+ # </summary>
594
+ # <param name="oldValue">String value to replace.</param>
595
+ # <param name="column">Data table with new data.</param>
596
+ # <param name="columnHeaders">Indicates whether to import field names.</param>
597
+ #<remarks>
598
+ # This can be long operation (needs iteration through all cells
599
+ # in the worksheet). Better use named ranges instead and call
600
+ # Import function instead of placeholders.
601
+ # </remarks>
602
+ # """
603
+ # intPtrcolumn:c_void_p = column.Ptr
604
+ #
605
+ # GetDllLibXls().XlsWorksheet_Replace.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool]
606
+ # CallCFunction(GetDllLibXls().XlsWorksheet_Replace, self.Ptr, oldValue,intPtrcolumn,columnHeaders)
607
+
608
+
609
+ # @dispatch
610
+ #
611
+ # def Replace(self ,oldValue:str,newValues:'DataTable',columnHeaders:bool):
612
+ # """
613
+ # <summary>
614
+ # Replaces cells' values with new data.
615
+ # <example>The following code snippet illustrates how to replace the string value with data table:
616
+ # <code>
617
+ # //Create worksheet
618
+ # Workbook workbook = new Workbook();
619
+ # workbook.LoadFromFile("Sample.xlsx");
620
+ # Worksheet worksheet = workbook.Worksheets[0];
621
+ # //Replace the oldValue by data table
622
+ # string oldValue = "Find";
623
+ # System.Data.DataTable table = new System.Data.DataTable();
624
+ # table.Columns.Add("Dosage", typeof(int));
625
+ # table.Rows.Add(1);
626
+ # worksheet.Replace(oldValue, table, true);
627
+ # //Save to file
628
+ # workbook.SaveToFile("Replace.xlsx");
629
+ # </code>
630
+ # </example>
631
+ # </summary>
632
+ # <param name="oldValue">String value to replace.</param>
633
+ # <param name="newValues">Data table with new data.</param>
634
+ # <param name="columnHeaders">Indicates whether to import field names.</param>
635
+ #<remarks>
636
+ # This can be long operation (needs iteration through all cells
637
+ # in the worksheet). Better use named ranges instead and call
638
+ # Import function instead of placeholders.
639
+ # </remarks>
640
+ # """
641
+ # intPtrnewValues:c_void_p = newValues.Ptr
642
+ #
643
+ # GetDllLibXls().XlsWorksheet_ReplaceONC.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool]
644
+ # CallCFunction(GetDllLibXls().XlsWorksheet_ReplaceONC, self.Ptr, oldValue,intPtrnewValues,columnHeaders)
645
+
646
+
647
+ @dispatch
648
+
649
+ def Replace(self ,oldValue:str,newValue:DateTime):
650
+ """
651
+ <summary>
652
+ Replaces cells' values with new data.
653
+ <example>The following code illustrates how to replace the string value with datetime:
654
+ <code>
655
+ //Create worksheet
656
+ Workbook workbook = new Workbook();
657
+ workbook.LoadFromFile("Sample.xlsx");
658
+ Worksheet worksheet = workbook.Worksheets[0];
659
+ //Replace the oldValue by dateTime
660
+ string oldValue = "Find";
661
+ DateTime dateTime = DateTime.Now;
662
+ worksheet.Replace(oldValue, dateTime);
663
+ //Save to file
664
+ workbook.SaveToFile("Replace.xlsx");
665
+ </code>
666
+ </example>
667
+ </summary>
668
+ <param name="oldValue">String value to replace.</param>
669
+ <param name="newValue">New value for the range with specified string.</param>
670
+ <remarks>
671
+ This can be long operation (needs iteration through all cells
672
+ in the worksheet). Better use named ranges instead and call
673
+ Import function instead of placeholders.
674
+ </remarks>
675
+ """
676
+ intPtrnewValue:c_void_p = newValue.Ptr
677
+
678
+ GetDllLibXls().XlsWorksheet_ReplaceON.argtypes=[c_void_p ,c_void_p,c_void_p]
679
+ CallCFunction(GetDllLibXls().XlsWorksheet_ReplaceON, self.Ptr, oldValue,intPtrnewValue)
680
+
681
+ @dispatch
682
+
683
+ def Replace(self ,oldValue:str,newValue:float):
684
+ """
685
+ <summary>
686
+ Replaces cells' values with new data.
687
+ <example>The following code snippet illustrates how to replace the string with double:
688
+ <code>
689
+ //Create worksheet
690
+ Workbook workbook = new Workbook();
691
+ workbook.LoadFromFile("Sample.xlsx");
692
+ Worksheet worksheet = workbook.Worksheets[0];
693
+ //Replace the oldValue by double
694
+ string oldValue = "Ten";
695
+ worksheet.Replace(oldValue, 10.0);
696
+ //Save to file
697
+ workbook.SaveToFile("Replace.xlsx");
698
+ </code>
699
+ </example>
700
+ </summary>
701
+ <param name="oldValue">String value to replace.</param>
702
+ <param name="newValue">New value for the range with specified string.</param>
703
+ """
704
+
705
+ GetDllLibXls().XlsWorksheet_ReplaceON1.argtypes=[c_void_p ,c_void_p,c_double]
706
+ CallCFunction(GetDllLibXls().XlsWorksheet_ReplaceON1, self.Ptr, oldValue,newValue)
707
+
708
+ @dispatch
709
+
710
+ def Replace(self ,oldValue:str,newValues:List[float],isVertical:bool):
711
+ """
712
+ <summary>
713
+ Replaces cells' values with new data.
714
+ <example>The following code snippet illustrates how to replace the string with array of double values:
715
+ <code>
716
+ //Create worksheet
717
+ Workbook workbook = new Workbook();
718
+ workbook.LoadFromFile("Sample.xlsx");
719
+ Worksheet worksheet = workbook.Worksheets[0];
720
+ //Replace the oldValue by array of double values
721
+ string oldValue = "Find";
722
+ double[] newValues = { 1.0, 2.0 };
723
+ worksheet.Replace(oldValue, newValues, true);
724
+ //Save to file
725
+ workbook.SaveToFile("Replace.xlsx");
726
+ </code>
727
+ </example>
728
+ </summary>
729
+ <param name="oldValue">String value to replace.</param>
730
+ <param name="newValues">Array of new values.</param>
731
+ <param name="isVertical">Indicates whether array should be inserted vertically.</param>
732
+ <remarks>
733
+ This can be long operation (needs iteration through all cells
734
+ in the worksheet). Better use named ranges instead and call
735
+ Import function instead of placeholders.
736
+ </remarks>
737
+ """
738
+ #arraynewValues:ArrayTypenewValues = ""
739
+ countnewValues = len(newValues)
740
+ ArrayTypenewValues = c_double * countnewValues
741
+ arraynewValues = ArrayTypenewValues()
742
+ for i in range(0, countnewValues):
743
+ arraynewValues[i] = newValues[i]
744
+
745
+
746
+ GetDllLibXls().XlsWorksheet_ReplaceONI.argtypes=[c_void_p ,c_void_p,ArrayTypenewValues,c_int,c_bool]
747
+ CallCFunction(GetDllLibXls().XlsWorksheet_ReplaceONI, self.Ptr, oldValue,arraynewValues,countnewValues,isVertical)
748
+
749
+ @dispatch
750
+
751
+ def Replace(self ,oldValue:str,newValues:List[int],isVertical:bool):
752
+ """
753
+ <summary>
754
+ Replaces cells' values with new data.
755
+ <example>The following code snippet illustrates how to replace the string with array of int values:
756
+ <code>
757
+ //Create worksheet
758
+ Workbook workbook = new Workbook();
759
+ workbook.LoadFromFile("Sample.xlsx");
760
+ Worksheet worksheet = workbook.Worksheets[0];
761
+ //Replace the oldValue by array of int values
762
+ string oldValue = "Find";
763
+ int[] newValues = { 1, 2 };
764
+ worksheet.Replace(oldValue, newValues, true);
765
+ //Save to file
766
+ workbook.SaveToFile("Replace.xlsx");
767
+ </code>
768
+ </example>
769
+ </summary>
770
+ <param name="oldValue">String value to replace.</param>
771
+ <param name="newValues">Array of new values.</param>
772
+ <param name="isVertical">Indicates whether array should be inserted vertically.</param>
773
+ <remarks>
774
+ This can be long operation (needs iteration through all cells
775
+ in the worksheet). Better use named ranges instead and call
776
+ Import function instead of placeholders.
777
+ </remarks>
778
+ """
779
+ #arraynewValues:ArrayTypenewValues = ""
780
+ countnewValues = len(newValues)
781
+ ArrayTypenewValues = c_int * countnewValues
782
+ arraynewValues = ArrayTypenewValues()
783
+ for i in range(0, countnewValues):
784
+ arraynewValues[i] = newValues[i]
785
+
786
+
787
+ GetDllLibXls().XlsWorksheet_ReplaceONI1.argtypes=[c_void_p ,c_void_p,ArrayTypenewValues,c_int,c_bool]
788
+ CallCFunction(GetDllLibXls().XlsWorksheet_ReplaceONI1, self.Ptr, oldValue,arraynewValues,countnewValues,isVertical)
789
+
790
+ @dispatch
791
+
792
+ def Replace(self ,oldValue:str,newValue:str):
793
+ """
794
+ <summary>
795
+ Replaces cells' values with new data.
796
+ <example>The following code snippet illustrates how to replace the string with another string:
797
+ <code>
798
+ //Create worksheet
799
+ Workbook workbook = new Workbook();
800
+ workbook.LoadFromFile("Sample.xlsx");
801
+ Worksheet worksheet = workbook.Worksheets[0];
802
+ //Replace the oldValue by newValue
803
+ string oldValue = "Find";
804
+ string newValue = "NewValue";
805
+ worksheet.Replace(oldValue, newValue);
806
+ //Save to file
807
+ workbook.SaveToFile("Replace.xlsx");
808
+ </code>
809
+ </example>
810
+ </summary>
811
+ <param name="oldValue">String value to replace.</param>
812
+ <param name="newValue">New value for the range with specified string.</param>
813
+ <remarks>
814
+ This can be long operation (needs iteration through all cells
815
+ in the worksheet). Better use named ranges instead and call
816
+ Import function instead of placeholders.
817
+ </remarks>
818
+ """
819
+
820
+ GetDllLibXls().XlsWorksheet_ReplaceON11.argtypes=[c_void_p ,c_void_p,c_void_p]
821
+ CallCFunction(GetDllLibXls().XlsWorksheet_ReplaceON11, self.Ptr, oldValue,newValue)
822
+
823
+ @dispatch
824
+ def ReplaceAll(self ,oldValue:str,newValue:str,matchCase:bool)->int:
825
+ """
826
+
827
+ """
828
+
829
+ GetDllLibXls().XlsWorksheet_ReplaceAll.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool]
830
+ GetDllLibXls().XlsWorksheet_ReplaceAll.restype=c_int
831
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_ReplaceAll, self.Ptr, oldValue,newValue,matchCase)
832
+ return ret
833
+
834
+ @dispatch
835
+ def ReplaceAll(self ,oldValue:str,oldStyle:CellStyle,newValue:str,newStyle:CellStyle)->int:
836
+ """
837
+
838
+ """
839
+ intPtrOldStyle:c_void_p = oldStyle.Ptr
840
+ intPtrNewStyle:c_void_p = newStyle.Ptr
841
+ GetDllLibXls().XlsWorksheet_ReplaceAllOONN.argtypes=[c_void_p ,c_void_p,c_void_p,c_void_p,c_void_p]
842
+ GetDllLibXls().XlsWorksheet_ReplaceAllOONN.restype=c_int
843
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_ReplaceAllOONN, self.Ptr, oldValue,intPtrOldStyle,newValue,intPtrNewStyle)
844
+ return ret
845
+
846
+ @dispatch
847
+
848
+ def Replace(self ,oldValue:str,newValues:List[str],isVertical:bool):
849
+ """
850
+ <summary>
851
+ Replaces cells' values with new data.
852
+ <example>The following code snippet illustrates how to replace the string with array of string values:
853
+ <code>
854
+ //Create worksheet
855
+ Workbook workbook = new Workbook();
856
+ workbook.LoadFromFile("Sample.xlsx");
857
+ Worksheet worksheet = workbook.Worksheets[0];
858
+ //Replace the oldValue by array of string values
859
+ string oldValue = "Find";
860
+ string[] newValues = { "X values", "Y values" };
861
+ worksheet.Replace(oldValue, newValues , true);
862
+ //Save to file
863
+ workbook.SaveToFile("Replace.xlsx");
864
+ </code>
865
+ </example>
866
+ </summary>
867
+ <param name="oldValue">String value to replace.</param>
868
+ <param name="newValues">Array of new values.</param>
869
+ <param name="isVertical">Indicates whether array should be inserted vertically.</param>
870
+ <remarks>
871
+ This can be long operation (needs iteration through all cells
872
+ in the worksheet). Better use named ranges instead and call
873
+ Import function instead of placeholders.
874
+ </remarks>
875
+ """
876
+ #arraynewValues:ArrayTypenewValues = ""
877
+ countnewValues = len(newValues)
878
+ ArrayTypenewValues = c_wchar_p * countnewValues
879
+ arraynewValues = ArrayTypenewValues()
880
+ for i in range(0, countnewValues):
881
+ arraynewValues[i] = newValues[i]
882
+
883
+
884
+ GetDllLibXls().XlsWorksheet_ReplaceONI11.argtypes=[c_void_p ,c_void_p,ArrayTypenewValues,c_int,c_bool]
885
+ CallCFunction(GetDllLibXls().XlsWorksheet_ReplaceONI11, self.Ptr, oldValue,arraynewValues,countnewValues,isVertical)
886
+
887
+ @dispatch
888
+
889
+ def SaveToImage(self ,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int)->Stream:
890
+ """
891
+
892
+ """
893
+
894
+ GetDllLibXls().XlsWorksheet_SaveToImage.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
895
+ GetDllLibXls().XlsWorksheet_SaveToImage.restype=c_void_p
896
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_SaveToImage, self.Ptr, firstRow,firstColumn,lastRow,lastColumn)
897
+ ret = None if intPtr==None else Stream(intPtr)
898
+ return ret
899
+
900
+
901
+ @dispatch
902
+
903
+ def SaveToImage(self ,fileName:str,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int):
904
+ """
905
+ <summary>
906
+ Save worksheet to image.
907
+ </summary>
908
+ <param name="fileName">file Name</param>
909
+ <param name="firstRow"></param>
910
+ <param name="firstColumn"></param>
911
+ <param name="lastRow"></param>
912
+ <param name="lastColumn"></param>
913
+ <returns></returns>
914
+ """
915
+
916
+ GetDllLibXls().XlsWorksheet_SaveToImageFFFLL.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int,c_int]
917
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToImageFFFLL, self.Ptr, fileName,firstRow,firstColumn,lastRow,lastColumn)
918
+
919
+ @dispatch
920
+
921
+ def SaveToImage(self ,fileName:str):
922
+ """
923
+ <summary>
924
+ Save worksheet to image.
925
+ </summary>
926
+ <param name="fileName">file Name</param>
927
+ <returns></returns>
928
+ """
929
+
930
+ GetDllLibXls().XlsWorksheet_SaveToImageF.argtypes=[c_void_p ,c_void_p]
931
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToImageF, self.Ptr, fileName)
932
+
933
+ # @dispatch
934
+
935
+ # def SaveToImage(self ,fileName:str,format:ImageFormat):
936
+ # """
937
+ #<summary></summary>
938
+ # <param name="fileName">file name</param>
939
+ # <param name="format">file format</param>
940
+ # """
941
+ # intPtrformat:c_void_p = format.Ptr
942
+
943
+ # GetDllLibXls().XlsWorksheet_SaveToImageFF.argtypes=[c_void_p ,c_void_p,c_void_p]
944
+ # CallCFunction(GetDllLibXls().XlsWorksheet_SaveToImageFF, self.Ptr, fileName,intPtrformat)
945
+
946
+
947
+ def ToImage(self ,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int)->'Stream':
948
+ """
949
+ <summary></summary>
950
+ <param name="firstRow">One-based index of the first row to convert.</param>
951
+ <param name="firstColumn">One-based index of the first column to convert.</param>
952
+ <param name="lastRow">One-based index of the last row to convert.</param>
953
+ <param name="lastColumn">One-based index of the last column to convert.</param>
954
+ """
955
+
956
+ GetDllLibXls().XlsWorksheet_ToImage.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
957
+ GetDllLibXls().XlsWorksheet_ToImage.restype=c_void_p
958
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_ToImage, self.Ptr, firstRow,firstColumn,lastRow,lastColumn)
959
+ ret = None if intPtr==None else Stream(intPtr)
960
+ return ret
961
+
962
+
963
+ @dispatch
964
+
965
+ def SaveToImage(self ,stream:Stream,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int,imageType:ImageType)->Stream:
966
+ """
967
+ <summary>
968
+ Save worksheet into image.
969
+ <example>The following code illustrates how to convert the specified range into image with the specified type:
970
+ <code>
971
+ //Create worksheet
972
+ Workbook workbook = new Workbook();
973
+ workbook.LoadFromFile("Sample.xlsx");
974
+ Worksheet worksheet = workbook.Worksheets[0];
975
+ //Creat stream
976
+ Stream stream = new MemoryStream();
977
+ //Save to image
978
+ System.Drawing.Image image = worksheet.SaveToImage(stream,1, 1, 10, 20, Spire.Xls.ImageType.Bitmap);
979
+ image.Save("Sample.png", System.Drawing.Imaging.ImageFormat.Png);
980
+ </code>
981
+ </example>
982
+ </summary>
983
+ <param name="stream">Output stream. It is ignored if null.</param>
984
+ <param name="firstRow">One-based index of the first row to convert.</param>
985
+ <param name="firstColumn">One-based index of the first column to convert.</param>
986
+ <param name="lastRow">One-based index of the last row to convert.</param>
987
+ <param name="lastColumn">One-based index of the last column to convert.</param>
988
+ <param name="imageType">Type of the image to create.</param>
989
+ <returns>Created image.</returns>
990
+ """
991
+ intPtrstream:c_void_p = stream.Ptr
992
+ enumimageType:c_int = imageType.value
993
+
994
+ GetDllLibXls().XlsWorksheet_SaveToImageSFFLLI.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int,c_int,c_int]
995
+ GetDllLibXls().XlsWorksheet_SaveToImageSFFLLI.restype=c_void_p
996
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_SaveToImageSFFLLI, self.Ptr, intPtrstream,firstRow,firstColumn,lastRow,lastColumn,enumimageType)
997
+ ret = None if intPtr==None else Stream(intPtr)
998
+ return ret
999
+
1000
+
1001
+ @dispatch
1002
+
1003
+ def SaveToImage(self ,stream:Stream,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int,emfType:EmfType)->Stream:
1004
+ """
1005
+ <summary>
1006
+ Converts range into image.
1007
+ </summary>
1008
+ <param name="outputStream">Output stream. It is ignored if null.</param>
1009
+ <param name="firstRow">One-based index of the first row to convert.</param>
1010
+ <param name="firstColumn">One-based index of the first column to convert.</param>
1011
+ <param name="lastRow">One-based index of the last row to convert.</param>
1012
+ <param name="lastColumn">One-based index of the last column to convert.</param>
1013
+ <param name="emfType">Metafile EmfType.</param>
1014
+ <returns>Created image.</returns>
1015
+ """
1016
+ intPtrstream:c_void_p = stream.Ptr
1017
+ enumemfType:c_int = emfType.value
1018
+
1019
+ GetDllLibXls().XlsWorksheet_SaveToImageSFFLLE.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int,c_int,c_int]
1020
+ GetDllLibXls().XlsWorksheet_SaveToImageSFFLLE.restype=c_void_p
1021
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_SaveToImageSFFLLE, self.Ptr, intPtrstream,firstRow,firstColumn,lastRow,lastColumn,enumemfType)
1022
+ ret = None if intPtr==None else Stream(intPtr)
1023
+ return ret
1024
+
1025
+
1026
+ @dispatch
1027
+
1028
+ def SaveToImage(self ,stream:Stream,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int,imageType:ImageType,emfType:EmfType)->Stream:
1029
+ """
1030
+ <summary>
1031
+ Converts range into image.
1032
+ </summary>
1033
+ <param name="firstRow">One-based index of the first row to convert.</param>
1034
+ <param name="firstColumn">One-based index of the first column to convert.</param>
1035
+ <param name="lastRow">One-based index of the last row to convert.</param>
1036
+ <param name="lastColumn">One-based index of the last column to convert.</param>
1037
+ <param name="imageType">Type of the image to create.</param>
1038
+ <param name="outputStream">Output stream. It is ignored if null.</param>
1039
+ <param name="emfType">Metafile EmfType.</param>
1040
+ <returns>Created image.</returns>
1041
+ """
1042
+ intPtrstream:c_void_p = stream.Ptr
1043
+ enumimageType:c_int = imageType.value
1044
+ enumemfType:c_int = emfType.value
1045
+
1046
+ GetDllLibXls().XlsWorksheet_SaveToImageSFFLLIE.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int,c_int,c_int,c_int]
1047
+ GetDllLibXls().XlsWorksheet_SaveToImageSFFLLIE.restype=c_void_p
1048
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_SaveToImageSFFLLIE, self.Ptr, intPtrstream,firstRow,firstColumn,lastRow,lastColumn,enumimageType,enumemfType)
1049
+ ret = None if intPtr==None else Stream(intPtr)
1050
+ return ret
1051
+
1052
+
1053
+
1054
+ def SaveToEMFImage(self ,FilePath:str,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int,emfType:'EmfType'):
1055
+ """
1056
+
1057
+ """
1058
+ enumemfType:c_int = emfType.value
1059
+
1060
+ GetDllLibXls().XlsWorksheet_SaveToEMFImage.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int,c_int,c_int]
1061
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToEMFImage, self.Ptr, FilePath,firstRow,firstColumn,lastRow,lastColumn,enumemfType)
1062
+
1063
+ @dispatch
1064
+
1065
+ def SaveToHtml(self ,stream:Stream):
1066
+ """
1067
+ <summary>
1068
+ Save to HTML stream.
1069
+ <example>The following code snippets illustrates how to save as html as stream:
1070
+ <code>
1071
+ //Create worksheet
1072
+ Workbook workbook = new Workbook();
1073
+ workbook.LoadFromFile("Sample.xlsx");
1074
+ Worksheet worksheet = workbook.Worksheets[0];
1075
+ //Creat stream
1076
+ Stream stream = new MemoryStream();
1077
+ //Save to HTML stream
1078
+ worksheet.SaveToHtml(stream);
1079
+ </code>
1080
+ </example>
1081
+ </summary>
1082
+ <param name="stream">Stream object</param>
1083
+ """
1084
+ intPtrstream:c_void_p = stream.Ptr
1085
+
1086
+ GetDllLibXls().XlsWorksheet_SaveToHtml.argtypes=[c_void_p ,c_void_p]
1087
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToHtml, self.Ptr, intPtrstream)
1088
+
1089
+ @dispatch
1090
+
1091
+ def SaveToHtml(self ,stream:Stream,saveOption:HTMLOptions):
1092
+ """
1093
+ <summary>
1094
+ Saves work sheet to HTML.
1095
+ <example>The following code snippets illustrates how to save as html as stream with Save option:
1096
+ <code>
1097
+ //Create worksheet
1098
+ Workbook workbook = new Workbook();
1099
+ workbook.LoadFromFile("Sample.xlsx");
1100
+ Worksheet worksheet = workbook.Worksheets[0];
1101
+ //Creat stream
1102
+ Stream stream = new MemoryStream();
1103
+ //Save to HTML stream
1104
+ worksheet.SaveToHtml(stream, Spire.Xls.Core.Spreadsheet.HTMLOptions.Default);
1105
+ </code>
1106
+ </example>
1107
+ </summary>
1108
+ <param name="stream">The stream</param>
1109
+ <param name="saveOption">The option</param>
1110
+ """
1111
+ intPtrstream:c_void_p = stream.Ptr
1112
+ intPtrsaveOption:c_void_p = saveOption.Ptr
1113
+
1114
+ GetDllLibXls().XlsWorksheet_SaveToHtmlSS.argtypes=[c_void_p ,c_void_p,c_void_p]
1115
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToHtmlSS, self.Ptr, intPtrstream,intPtrsaveOption)
1116
+
1117
+ @dispatch
1118
+
1119
+ def SaveToHtml(self ,filename:str):
1120
+ """
1121
+ <summary>
1122
+ Save to HTML file.
1123
+ <example>The following code snippets illustrates how to save as html to the specified file name:
1124
+ <code>
1125
+ //Create worksheet
1126
+ Workbook workbook = new Workbook();
1127
+ workbook.LoadFromFile("Sample.xlsx");
1128
+ Worksheet worksheet = workbook.Worksheets[0];
1129
+ //Save to HTML file
1130
+ worksheet.SaveToHtml("Output.html");
1131
+ </code>
1132
+ </example>
1133
+ </summary>
1134
+ <param name="filename">File name</param>
1135
+ """
1136
+
1137
+ GetDllLibXls().XlsWorksheet_SaveToHtmlF.argtypes=[c_void_p ,c_void_p]
1138
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToHtmlF, self.Ptr, filename)
1139
+
1140
+ @dispatch
1141
+
1142
+ def SaveToHtml(self ,fileName:str,saveOption:HTMLOptions):
1143
+ """
1144
+ <summary>
1145
+ Saves as HTML.
1146
+ <example>The following code snippets illustrates how to save as html to the specified file name and save option:
1147
+ <code>
1148
+ //Create worksheet
1149
+ Workbook workbook = new Workbook();
1150
+ workbook.LoadFromFile("Sample.xlsx");
1151
+ Worksheet worksheet = workbook.Worksheets[0];
1152
+ //Save to HTML file
1153
+ worksheet.SaveToHtml("Sample.html" , Spire.Xls.Core.Spreadsheet.HTMLOptions.Default);
1154
+ </code>
1155
+ </example>
1156
+ </summary>
1157
+ <param name="fileName">The filename</param>
1158
+ <param name="saveOption">The option</param>
1159
+ """
1160
+ intPtrsaveOption:c_void_p = saveOption.Ptr
1161
+
1162
+ GetDllLibXls().XlsWorksheet_SaveToHtmlFS.argtypes=[c_void_p ,c_void_p,c_void_p]
1163
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToHtmlFS, self.Ptr, fileName,intPtrsaveOption)
1164
+
1165
+ @dispatch
1166
+
1167
+ def SaveToFile(self ,fileName:str,separator:str):
1168
+ """
1169
+ <summary>
1170
+ Save worksheet to file.
1171
+ <example>The following code illustrates how to saves the worksheet in a different file with separator:
1172
+ <code>
1173
+ //Create worksheet
1174
+ Workbook workbook = new Workbook();
1175
+ workbook.LoadFromFile("Sample.xlsx");
1176
+ Worksheet worksheet = workbook.Worksheets[0];
1177
+ //Save to file
1178
+ worksheet.SaveToFile("SaveToFile.csv" , ",");
1179
+ </code>
1180
+ </example>
1181
+ </summary>
1182
+ <param name="fileName">File name.</param>
1183
+ <param name="separator">Seperator.</param>
1184
+ """
1185
+
1186
+ GetDllLibXls().XlsWorksheet_SaveToFile.argtypes=[c_void_p ,c_void_p,c_void_p]
1187
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToFile, self.Ptr, fileName,separator)
1188
+
1189
+ @dispatch
1190
+
1191
+ def SaveToFile(self ,fileName:str,separator:str,retainHiddenData:bool):
1192
+ """
1193
+ <summary>
1194
+ Save worksheet to file.
1195
+ </summary>
1196
+ <param name="fileName">File name.</param>
1197
+ <param name="separator">Seperator.</param>
1198
+ <param name="retainHiddenData">retain hidden data</param>
1199
+ """
1200
+
1201
+ GetDllLibXls().XlsWorksheet_SaveToFileFSR.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool]
1202
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToFileFSR, self.Ptr, fileName,separator,retainHiddenData)
1203
+
1204
+ @dispatch
1205
+
1206
+ def SaveToFile(self ,fileName:str,separator:str,encoding:Encoding):
1207
+ """
1208
+ <summary>
1209
+ Save worksheet to file..
1210
+ </summary>
1211
+ <param name="fileName">File name.</param>
1212
+ <param name="separator">Seperator.</param>
1213
+ <param name="encoding">Encoding to use.</param>
1214
+ """
1215
+ intPtrencoding:c_void_p = encoding.Ptr
1216
+
1217
+ GetDllLibXls().XlsWorksheet_SaveToFileFSE.argtypes=[c_void_p ,c_void_p,c_void_p,c_void_p]
1218
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToFileFSE, self.Ptr, fileName,separator,intPtrencoding)
1219
+
1220
+ @dispatch
1221
+
1222
+ def SaveToStream(self ,stream:Stream,separator:str):
1223
+ """
1224
+ <summary>
1225
+ Save worksheet to stream.
1226
+ <example>The following code illustrates how to saves the worksheet as stream with separator:
1227
+ <code>
1228
+ //Create worksheet
1229
+ Workbook workbook = new Workbook();
1230
+ workbook.LoadFromFile("Sample.xlsx");
1231
+ Worksheet worksheet = workbook.Worksheets[0];
1232
+ //Create stream
1233
+ Stream stream = new MemoryStream();
1234
+ //Save to stream
1235
+ worksheet.SaveToStream(stream , ",");
1236
+ </code>
1237
+ </example>
1238
+ </summary>
1239
+ <param name="stream">Stream object.</param>
1240
+ <param name="separator">Seperator.</param>
1241
+ """
1242
+ intPtrstream:c_void_p = stream.Ptr
1243
+
1244
+ GetDllLibXls().XlsWorksheet_SaveToStream.argtypes=[c_void_p ,c_void_p,c_void_p]
1245
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToStream, self.Ptr, intPtrstream,separator)
1246
+
1247
+ @dispatch
1248
+
1249
+ def SaveToStream(self ,stream:Stream,separator:str,retainHiddenData:bool):
1250
+ """
1251
+ <summary>
1252
+ Save worksheet to stream.
1253
+ </summary>
1254
+ <param name="stream">Stream object.</param>
1255
+ <param name="separator">Seperator.</param>
1256
+ <param name="retainHiddenData">retain hidden data</param>
1257
+ """
1258
+ intPtrstream:c_void_p = stream.Ptr
1259
+
1260
+ GetDllLibXls().XlsWorksheet_SaveToStreamSSR.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool]
1261
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToStreamSSR, self.Ptr, intPtrstream,separator,retainHiddenData)
1262
+
1263
+ @dispatch
1264
+
1265
+ def SaveToStream(self ,stream:Stream,separator:str,encoding:Encoding):
1266
+ """
1267
+ <summary>
1268
+ Save worksheet to stream.
1269
+ </summary>
1270
+ <param name="stream">Stream to save.</param>
1271
+ <param name="separator">Current seperator.</param>
1272
+ <param name="encoding">Encoding to use.</param>
1273
+ """
1274
+ intPtrstream:c_void_p = stream.Ptr
1275
+ intPtrencoding:c_void_p = encoding.Ptr
1276
+
1277
+ GetDllLibXls().XlsWorksheet_SaveToStreamSSE.argtypes=[c_void_p ,c_void_p,c_void_p,c_void_p]
1278
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToStreamSSE, self.Ptr, intPtrstream,separator,intPtrencoding)
1279
+
1280
+
1281
+ def SaveToXps(self ,fileName:str):
1282
+ """
1283
+ <summary>
1284
+ Saves specific worksheet to xps.
1285
+ </summary>
1286
+ <param name="fileName">File name.</param>
1287
+ """
1288
+
1289
+ GetDllLibXls().XlsWorksheet_SaveToXps.argtypes=[c_void_p ,c_void_p]
1290
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToXps, self.Ptr, fileName)
1291
+
1292
+ @dispatch
1293
+
1294
+ def SaveToPdf(self ,fileName:str,fileFormat:FileFormat):
1295
+ """
1296
+ <summary>
1297
+ Save worksheet to pdf.
1298
+ </summary>
1299
+ <param name="fileName">File name.</param>
1300
+ """
1301
+ enumfileFormat:c_int = fileFormat.value
1302
+
1303
+ GetDllLibXls().XlsWorksheet_SaveToPdf.argtypes=[c_void_p ,c_void_p,c_int]
1304
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToPdf, self.Ptr, fileName,enumfileFormat)
1305
+
1306
+ @dispatch
1307
+
1308
+ def SaveToPdf(self ,fileName:str):
1309
+ """
1310
+ <summary>
1311
+ Save worksheet to pdf.
1312
+ </summary>
1313
+ <param name="fileName">File name.</param>
1314
+ """
1315
+
1316
+ GetDllLibXls().XlsWorksheet_SaveToPdfF.argtypes=[c_void_p ,c_void_p]
1317
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToPdfF, self.Ptr, fileName)
1318
+
1319
+ @dispatch
1320
+
1321
+ def SaveToPdfStream(self ,stream:Stream,fileFormat:FileFormat):
1322
+ """
1323
+
1324
+ """
1325
+ intPtrstream:c_void_p = stream.Ptr
1326
+ enumfileFormat:c_int = fileFormat.value
1327
+
1328
+ GetDllLibXls().XlsWorksheet_SaveToPdfStream.argtypes=[c_void_p ,c_void_p,c_int]
1329
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToPdfStream, self.Ptr, intPtrstream,enumfileFormat)
1330
+
1331
+ @dispatch
1332
+
1333
+ def SaveToPdfStream(self ,stream:Stream):
1334
+ """
1335
+ <summary>
1336
+ Save worksheet to pdf Stream.
1337
+ </summary>
1338
+ <param name="stream">Stream.</param>
1339
+ """
1340
+ intPtrstream:c_void_p = stream.Ptr
1341
+
1342
+ GetDllLibXls().XlsWorksheet_SaveToPdfStreamS.argtypes=[c_void_p ,c_void_p]
1343
+ CallCFunction(GetDllLibXls().XlsWorksheet_SaveToPdfStreamS, self.Ptr, intPtrstream)
1344
+
1345
+
1346
+ def ToSVGStream(self ,stream:'Stream',firstRow:int,firstColumn:int,lastRow:int,lastColumn:int):
1347
+ """
1348
+ <summary>
1349
+ Convert CellRange to Svg stream
1350
+ </summary>
1351
+ <param name="stream">stream.</param>
1352
+ <param name="firstRow">One-based index of the first row to convert.</param>
1353
+ <param name="firstColumn">One-based index of the first column to convert.</param>
1354
+ <param name="lastRow">One-based index of the last row to convert.</param>
1355
+ <param name="lastColumn">One-based index of the last column to convert.</param>
1356
+ """
1357
+ intPtrstream:c_void_p = stream.Ptr
1358
+
1359
+ GetDllLibXls().XlsWorksheet_ToSVGStream.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int,c_int]
1360
+ CallCFunction(GetDllLibXls().XlsWorksheet_ToSVGStream, self.Ptr, intPtrstream,firstRow,firstColumn,lastRow,lastColumn)
1361
+
1362
+
1363
+ def SetBlank(self ,iRow:int,iColumn:int):
1364
+ """
1365
+ <summary>
1366
+ Sets blank in specified cell.
1367
+ </summary>
1368
+ <param name="iRow">One-based row index of the cell to set value.</param>
1369
+ <param name="iColumn">One-based column index of the cell to set value.</param>
1370
+ """
1371
+
1372
+ GetDllLibXls().XlsWorksheet_SetBlank.argtypes=[c_void_p ,c_int,c_int]
1373
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetBlank, self.Ptr, iRow,iColumn)
1374
+
1375
+
1376
+ def SetBoolean(self ,iRow:int,iColumn:int,value:bool):
1377
+ """
1378
+ <summary>
1379
+ Sets value in the specified cell.
1380
+ </summary>
1381
+ <param name="iRow">One-based row index of the cell to set value.</param>
1382
+ <param name="iColumn">One-based column index of the cell to set value.</param>
1383
+ <param name="value">Value to set.</param>
1384
+ """
1385
+
1386
+ GetDllLibXls().XlsWorksheet_SetBoolean.argtypes=[c_void_p ,c_int,c_int,c_bool]
1387
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetBoolean, self.Ptr, iRow,iColumn,value)
1388
+
1389
+ @dispatch
1390
+
1391
+ def SetColumnWidthInPixels(self ,iColumn:int,value:int):
1392
+ """
1393
+ <summary>
1394
+ Sets column width in pixels.
1395
+ <example>The following code illustrates how to set width for a column:
1396
+ <code>
1397
+ //Create worksheet
1398
+ Workbook workbook = new Workbook();
1399
+ Worksheet worksheet = workbook.Worksheets[0];
1400
+ //Set column width
1401
+ worksheet.SetColumnWidthInPixels(2, 160);
1402
+ //Save to file
1403
+ workbook.SaveToFile("SetColumnWidthInPixels.xlsx");
1404
+ </code>
1405
+ </example>
1406
+ </summary>
1407
+ <param name="iColumn">One-based column index.</param>
1408
+ <param name="value">Width in pixels to set.</param>
1409
+ """
1410
+
1411
+ GetDllLibXls().XlsWorksheet_SetColumnWidthInPixels.argtypes=[c_void_p ,c_int,c_int]
1412
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetColumnWidthInPixels, self.Ptr, iColumn,value)
1413
+
1414
+
1415
+ def SetColumnWidth(self ,columnIndex:int,width:float):
1416
+ """
1417
+ <summary>
1418
+ Set solumn width
1419
+ </summary>
1420
+ <param name="columnIndex">Column index.</param>
1421
+ <param name="width">Width to set.</param>
1422
+ """
1423
+
1424
+ GetDllLibXls().XlsWorksheet_SetColumnWidth.argtypes=[c_void_p ,c_int,c_double]
1425
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetColumnWidth, self.Ptr, columnIndex,width)
1426
+
1427
+ @dispatch
1428
+
1429
+ def SetColumnWidthInPixels(self ,columnIndex:int,count:int,value:int):
1430
+ """
1431
+ <summary>
1432
+ Sets the width of the specified columns.
1433
+ </summary>
1434
+ <param name="columnIndex">Column index</param>
1435
+ <param name="count">count</param>
1436
+ <param name="value">Value</param>
1437
+ """
1438
+
1439
+ GetDllLibXls().XlsWorksheet_SetColumnWidthInPixelsCCV.argtypes=[c_void_p ,c_int,c_int,c_int]
1440
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetColumnWidthInPixelsCCV, self.Ptr, columnIndex,count,value)
1441
+
1442
+ @dispatch
1443
+
1444
+ def SetDefaultColumnStyle(self ,columnIndex:int,defaultStyle:IStyle):
1445
+ """
1446
+ <summary>
1447
+ Sets default style for column.
1448
+ </summary>
1449
+ <param name="columnIndex">Column index.</param>
1450
+ <param name="defaultStyle">Default style.</param>
1451
+ """
1452
+ intPtrdefaultStyle:c_void_p = defaultStyle.Ptr
1453
+
1454
+ GetDllLibXls().XlsWorksheet_SetDefaultColumnStyle.argtypes=[c_void_p ,c_int,c_void_p]
1455
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetDefaultColumnStyle, self.Ptr, columnIndex,intPtrdefaultStyle)
1456
+
1457
+ @dispatch
1458
+
1459
+ def SetDefaultColumnStyle(self ,firstColumnIndex:int,lastColumnIndex:int,defaultStyle:IStyle):
1460
+ """
1461
+
1462
+ """
1463
+ intPtrdefaultStyle:c_void_p = defaultStyle.Ptr
1464
+
1465
+ GetDllLibXls().XlsWorksheet_SetDefaultColumnStyleFLD.argtypes=[c_void_p ,c_int,c_int,c_void_p]
1466
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetDefaultColumnStyleFLD, self.Ptr, firstColumnIndex,lastColumnIndex,intPtrdefaultStyle)
1467
+
1468
+ @dispatch
1469
+
1470
+ def SetDefaultRowStyle(self ,rowIndex:int,defaultStyle:IStyle):
1471
+ """
1472
+
1473
+ """
1474
+ intPtrdefaultStyle:c_void_p = defaultStyle.Ptr
1475
+
1476
+ GetDllLibXls().XlsWorksheet_SetDefaultRowStyle.argtypes=[c_void_p ,c_int,c_void_p]
1477
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetDefaultRowStyle, self.Ptr, rowIndex,intPtrdefaultStyle)
1478
+
1479
+ @dispatch
1480
+
1481
+ def SetDefaultRowStyle(self ,firstRowIndex:int,lastRowIndex:int,defaultStyle:IStyle):
1482
+ """
1483
+
1484
+ """
1485
+ intPtrdefaultStyle:c_void_p = defaultStyle.Ptr
1486
+
1487
+ GetDllLibXls().XlsWorksheet_SetDefaultRowStyleFLD.argtypes=[c_void_p ,c_int,c_int,c_void_p]
1488
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetDefaultRowStyleFLD, self.Ptr, firstRowIndex,lastRowIndex,intPtrdefaultStyle)
1489
+
1490
+ @dispatch
1491
+
1492
+ def SetError(self ,iRow:int,iColumn:int,value:str):
1493
+ """
1494
+ <summary>
1495
+ Sets error in the specified cell.
1496
+ </summary>
1497
+ <param name="iRow">One-based row index of the cell to set value.</param>
1498
+ <param name="iColumn">One-based column index of the cell to set value.</param>
1499
+ <param name="value">Error to set.</param>
1500
+ """
1501
+
1502
+ GetDllLibXls().XlsWorksheet_SetError.argtypes=[c_void_p ,c_int,c_int,c_void_p]
1503
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetError, self.Ptr, iRow,iColumn,value)
1504
+
1505
+ @dispatch
1506
+
1507
+ def SetError(self ,iRow:int,iColumn:int,value:str,isSetText:bool):
1508
+ """
1509
+ <summary></summary>
1510
+ <param name="iRow"></param>
1511
+ <param name="iColumn"></param>
1512
+ <param name="value"></param>
1513
+ <param name="isSetText"></param>
1514
+ """
1515
+
1516
+ GetDllLibXls().XlsWorksheet_SetErrorIIVI.argtypes=[c_void_p ,c_int,c_int,c_void_p,c_bool]
1517
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetErrorIIVI, self.Ptr, iRow,iColumn,value,isSetText)
1518
+
1519
+ @dispatch
1520
+
1521
+ def SetFormula(self ,iRow:int,iColumn:int,value:str):
1522
+ """
1523
+ <summary>
1524
+ Sets formula in the specified cell.
1525
+ </summary>
1526
+ <param name="iRow">One-based row index of the cell to set value.</param>
1527
+ <param name="iColumn">One-based column index of the cell to set value.</param>
1528
+ <param name="value">Formula to set.</param>
1529
+ """
1530
+
1531
+ GetDllLibXls().XlsWorksheet_SetFormula.argtypes=[c_void_p ,c_int,c_int,c_void_p]
1532
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetFormula, self.Ptr, iRow,iColumn,value)
1533
+
1534
+ @dispatch
1535
+
1536
+ def SetFormula(self ,iRow:int,iColumn:int,value:str,bIsR1C1:bool):
1537
+ """
1538
+ <summary>
1539
+ Sets formula in the specified cell.
1540
+ </summary>
1541
+ <param name="iRow">One-based row index of the cell to set value.</param>
1542
+ <param name="iColumn">One-based column index of the cell to set value.</param>
1543
+ <param name="value">Formula to set.</param>
1544
+ <param name="bIsR1C1">Indicates is formula in R1C1 notation.</param>
1545
+ """
1546
+
1547
+ GetDllLibXls().XlsWorksheet_SetFormulaIIVB.argtypes=[c_void_p ,c_int,c_int,c_void_p,c_bool]
1548
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetFormulaIIVB, self.Ptr, iRow,iColumn,value,bIsR1C1)
1549
+
1550
+
1551
+ def SetFormulaBoolValue(self ,iRow:int,iColumn:int,value:bool):
1552
+ """
1553
+ <summary>
1554
+ Sets formula bool value.
1555
+ </summary>
1556
+ <param name="iRow">One based row index.</param>
1557
+ <param name="iColumn">One based column index.</param>
1558
+ <param name="value">Represents formula bool value for set.</param>
1559
+ """
1560
+
1561
+ GetDllLibXls().XlsWorksheet_SetFormulaBoolValue.argtypes=[c_void_p ,c_int,c_int,c_bool]
1562
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetFormulaBoolValue, self.Ptr, iRow,iColumn,value)
1563
+
1564
+
1565
+ def SetFormulaErrorValue(self ,iRow:int,iColumn:int,value:str):
1566
+ """
1567
+ <summary>
1568
+ Sets formula error value.
1569
+ </summary>
1570
+ <param name="iRow">One based row index.</param>
1571
+ <param name="iColumn">One based column index.</param>
1572
+ <param name="value">Represents formula error value for set.</param>
1573
+ """
1574
+
1575
+ GetDllLibXls().XlsWorksheet_SetFormulaErrorValue.argtypes=[c_void_p ,c_int,c_int,c_void_p]
1576
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetFormulaErrorValue, self.Ptr, iRow,iColumn,value)
1577
+
1578
+
1579
+ def SetFormulaNumberValue(self ,iRow:int,iColumn:int,value:float):
1580
+ """
1581
+ <summary>
1582
+ Sets formula number value.
1583
+ </summary>
1584
+ <param name="iRow">One based row index.</param>
1585
+ <param name="iColumn">One based column index.</param>
1586
+ <param name="value">Represents formula number value for set.</param>
1587
+ """
1588
+
1589
+ GetDllLibXls().XlsWorksheet_SetFormulaNumberValue.argtypes=[c_void_p ,c_int,c_int,c_double]
1590
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetFormulaNumberValue, self.Ptr, iRow,iColumn,value)
1591
+
1592
+
1593
+ def SetFormulaStringValue(self ,iRow:int,iColumn:int,value:str):
1594
+ """
1595
+ <summary>
1596
+ Sets formula string value.
1597
+ </summary>
1598
+ <param name="iRow">One based row index.</param>
1599
+ <param name="iColumn">One based column index.</param>
1600
+ <param name="value">Represents formula string value for set.</param>
1601
+ """
1602
+
1603
+ GetDllLibXls().XlsWorksheet_SetFormulaStringValue.argtypes=[c_void_p ,c_int,c_int,c_void_p]
1604
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetFormulaStringValue, self.Ptr, iRow,iColumn,value)
1605
+
1606
+
1607
+ def SetNumber(self ,iRow:int,iColumn:int,value:float):
1608
+ """
1609
+ <summary>
1610
+ Sets value in the specified cell.
1611
+ </summary>
1612
+ <param name="iRow">One-based row index of the cell to set value.</param>
1613
+ <param name="iColumn">One-based column index of the cell to set value.</param>
1614
+ <param name="value">Value to set.</param>
1615
+ """
1616
+
1617
+ GetDllLibXls().XlsWorksheet_SetNumber.argtypes=[c_void_p ,c_int,c_int,c_double]
1618
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetNumber, self.Ptr, iRow,iColumn,value)
1619
+
1620
+
1621
+ def SetRowHeightInPixels(self ,rowIndex:int,count:int,value:float):
1622
+ """
1623
+ <summary>
1624
+ Set Row height from Start Row index
1625
+ </summary>
1626
+ <param name="rowIndex">Row index</param>
1627
+ <param name="Count">count</param>
1628
+ <param name="value">Value</param>
1629
+ """
1630
+
1631
+ GetDllLibXls().XlsWorksheet_SetRowHeightInPixels.argtypes=[c_void_p ,c_int,c_int,c_double]
1632
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetRowHeightInPixels, self.Ptr, rowIndex,count,value)
1633
+
1634
+
1635
+ def SetRowHeight(self ,rowIndex:int,height:float):
1636
+ """
1637
+ <summary>
1638
+ Sets the height of the specified row.
1639
+ </summary>
1640
+ <param name="rowIndex">Row index.</param>
1641
+ <param name="height">Height.</param>
1642
+ """
1643
+
1644
+ GetDllLibXls().XlsWorksheet_SetRowHeight.argtypes=[c_void_p ,c_int,c_double]
1645
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetRowHeight, self.Ptr, rowIndex,height)
1646
+
1647
+
1648
+ def SetRowHeightPixels(self ,rowIndex:int,height:float):
1649
+ """
1650
+ <summary>
1651
+ Sets the height of the specified row.
1652
+ <example>The following code illustrates how to set height for a row:
1653
+ <code>
1654
+ //Create worksheet
1655
+ Workbook workbook = new Workbook();
1656
+ Worksheet worksheet = workbook.Worksheets[0];
1657
+ //Set row height
1658
+ worksheet.SetRowHeightPixels(3, 150);
1659
+ //Save to file
1660
+ workbook.SaveToFile("SetRowHeightPixels.xlsx");
1661
+ </code>
1662
+ </example>
1663
+ </summary>
1664
+ <param name="rowIndex">Row index.</param>
1665
+ <param name="height">Height.</param>
1666
+ """
1667
+
1668
+ GetDllLibXls().XlsWorksheet_SetRowHeightPixels.argtypes=[c_void_p ,c_int,c_double]
1669
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetRowHeightPixels, self.Ptr, rowIndex,height)
1670
+
1671
+
1672
+ def SetText(self ,iRow:int,iColumn:int,value:str):
1673
+ """
1674
+ <summary>
1675
+ Sets text in the specified cell.
1676
+ </summary>
1677
+ <param name="iRow">One-based row index of the cell to set value.</param>
1678
+ <param name="iColumn">One-based column index of the cell to set value.</param>
1679
+ <param name="value">Text to set.</param>
1680
+ """
1681
+
1682
+ GetDllLibXls().XlsWorksheet_SetText.argtypes=[c_void_p ,c_int,c_int,c_void_p]
1683
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetText, self.Ptr, iRow,iColumn,value)
1684
+
1685
+
1686
+ def SetValue(self ,rowIndex:int,columnIndex:int,stringValue:str):
1687
+ """
1688
+
1689
+ """
1690
+
1691
+ GetDllLibXls().XlsWorksheet_SetValue.argtypes=[c_void_p ,c_int,c_int,c_void_p]
1692
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetValue, self.Ptr, rowIndex,columnIndex,stringValue)
1693
+
1694
+ @dispatch
1695
+
1696
+ def SetCellValue(self ,rowIndex:int,columnIndex:int,boolValue:bool):
1697
+ """
1698
+ <summary>
1699
+ Sets value in the specified cell.
1700
+ </summary>
1701
+ <param name="rowIndex">Row index.</param>
1702
+ <param name="columnIndex">Column index.</param>
1703
+ <param name="boolValue">Value to set.</param>
1704
+ """
1705
+
1706
+ GetDllLibXls().XlsWorksheet_SetCellValue.argtypes=[c_void_p ,c_int,c_int,c_bool]
1707
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetCellValue, self.Ptr, rowIndex,columnIndex,boolValue)
1708
+
1709
+ @dispatch
1710
+
1711
+ def SetCellValue(self ,rowIndex:int,columnIndex:int,stringValue:str):
1712
+ """
1713
+ <summary>
1714
+ Sets value in the specified cell.
1715
+ </summary>
1716
+ <param name="rowIndex">Row index</param>
1717
+ <param name="columnIndex">Column index.</param>
1718
+ <param name="stringValue">Value to set.</param>
1719
+ """
1720
+
1721
+ GetDllLibXls().XlsWorksheet_SetCellValueRCS.argtypes=[c_void_p ,c_int,c_int,c_void_p]
1722
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetCellValueRCS, self.Ptr, rowIndex,columnIndex,stringValue)
1723
+
1724
+ @property
1725
+ def HasMergedCells(self)->bool:
1726
+ """
1727
+ <summary>
1728
+ Indicates whether worksheet has merged cells.
1729
+ </summary>
1730
+ """
1731
+ GetDllLibXls().XlsWorksheet_get_HasMergedCells.argtypes=[c_void_p]
1732
+ GetDllLibXls().XlsWorksheet_get_HasMergedCells.restype=c_bool
1733
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_HasMergedCells, self.Ptr)
1734
+ return ret
1735
+
1736
+ @property
1737
+ def HasOleObjects(self)->bool:
1738
+ """
1739
+ <summary>
1740
+ Indicats whether there is OLE object.
1741
+ <example>The following code illustrates how to access the IListObjects collection in the worksheet to add a new IOleObject and check Ole Object:
1742
+ <code>
1743
+ //Create worksheet
1744
+ Workbook workbook = new Workbook();
1745
+ Worksheet worksheet = workbook.Worksheets[0];
1746
+ //Create image stream
1747
+ System.Drawing.Image image = System.Drawing.Image.FromFile("image.png");
1748
+ //Add ole object
1749
+ IOleObject oleObject = worksheet.OleObjects.Add("Shapes.xlsx", image, OleLinkType.Embed);
1750
+ //Check HasOleObject.Output will be true.</para>
1751
+ Console.Write(worksheet.HasOleObjects);
1752
+
1753
+ <para>//Save to file
1754
+ workbook.SaveToFile("HasOleObjects.xlsx");
1755
+ </code>
1756
+ </example>
1757
+ </summary>
1758
+ <value>
1759
+ <c>true</c> if this instance is OLE object; otherwise, <c>false</c>.
1760
+ </value>
1761
+ """
1762
+ GetDllLibXls().XlsWorksheet_get_HasOleObjects.argtypes=[c_void_p]
1763
+ GetDllLibXls().XlsWorksheet_get_HasOleObjects.restype=c_bool
1764
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_HasOleObjects, self.Ptr)
1765
+ return ret
1766
+
1767
+ @property
1768
+ def HorizontalSplit(self)->int:
1769
+ """
1770
+
1771
+ """
1772
+ GetDllLibXls().XlsWorksheet_get_HorizontalSplit.argtypes=[c_void_p]
1773
+ GetDllLibXls().XlsWorksheet_get_HorizontalSplit.restype=c_int
1774
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_HorizontalSplit, self.Ptr)
1775
+ return ret
1776
+
1777
+ @HorizontalSplit.setter
1778
+ def HorizontalSplit(self, value:int):
1779
+ GetDllLibXls().XlsWorksheet_set_HorizontalSplit.argtypes=[c_void_p, c_int]
1780
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_HorizontalSplit, self.Ptr, value)
1781
+
1782
+ @property
1783
+
1784
+ def HPageBreaks(self)->'IHPageBreaks':
1785
+ """
1786
+
1787
+ """
1788
+ GetDllLibXls().XlsWorksheet_get_HPageBreaks.argtypes=[c_void_p]
1789
+ GetDllLibXls().XlsWorksheet_get_HPageBreaks.restype=c_void_p
1790
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_HPageBreaks, self.Ptr)
1791
+ ret = None if intPtr==None else IHPageBreaks(intPtr)
1792
+ return ret
1793
+
1794
+
1795
+ @property
1796
+
1797
+ def HyperLinks(self)->'IHyperLinks':
1798
+ """
1799
+
1800
+ """
1801
+ GetDllLibXls().XlsWorksheet_get_HyperLinks.argtypes=[c_void_p]
1802
+ GetDllLibXls().XlsWorksheet_get_HyperLinks.restype=c_void_p
1803
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_HyperLinks, self.Ptr)
1804
+ ret = None if intPtr==None else IHyperLinks(intPtr)
1805
+ return ret
1806
+
1807
+
1808
+ @property
1809
+ def IsDisplayZeros(self)->bool:
1810
+ """
1811
+ <summary>
1812
+ Indicates whether zero values to be displayed
1813
+ </summary>
1814
+ """
1815
+ GetDllLibXls().XlsWorksheet_get_IsDisplayZeros.argtypes=[c_void_p]
1816
+ GetDllLibXls().XlsWorksheet_get_IsDisplayZeros.restype=c_bool
1817
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_IsDisplayZeros, self.Ptr)
1818
+ return ret
1819
+
1820
+ @IsDisplayZeros.setter
1821
+ def IsDisplayZeros(self, value:bool):
1822
+ GetDllLibXls().XlsWorksheet_set_IsDisplayZeros.argtypes=[c_void_p, c_bool]
1823
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_IsDisplayZeros, self.Ptr, value)
1824
+
1825
+ @property
1826
+ def IsEmpty(self)->bool:
1827
+ """
1828
+ <summary>
1829
+ Indicates whether worksheet is empty. Read-only.
1830
+ </summary>
1831
+ """
1832
+ GetDllLibXls().XlsWorksheet_get_IsEmpty.argtypes=[c_void_p]
1833
+ GetDllLibXls().XlsWorksheet_get_IsEmpty.restype=c_bool
1834
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_IsEmpty, self.Ptr)
1835
+ return ret
1836
+
1837
+ @property
1838
+ def IsFreezePanes(self)->bool:
1839
+ """
1840
+ <summary>
1841
+ Indicates whether freezed panes are applied.
1842
+ </summary>
1843
+ """
1844
+ GetDllLibXls().XlsWorksheet_get_IsFreezePanes.argtypes=[c_void_p]
1845
+ GetDllLibXls().XlsWorksheet_get_IsFreezePanes.restype=c_bool
1846
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_IsFreezePanes, self.Ptr)
1847
+ return ret
1848
+
1849
+ @property
1850
+ def IsStringsPreserved(self)->bool:
1851
+ """
1852
+ <summary>
1853
+ Indicates if all values in the workbook are preserved as strings.
1854
+ </summary>
1855
+ """
1856
+ GetDllLibXls().XlsWorksheet_get_IsStringsPreserved.argtypes=[c_void_p]
1857
+ GetDllLibXls().XlsWorksheet_get_IsStringsPreserved.restype=c_bool
1858
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_IsStringsPreserved, self.Ptr)
1859
+ return ret
1860
+
1861
+ @IsStringsPreserved.setter
1862
+ def IsStringsPreserved(self, value:bool):
1863
+ GetDllLibXls().XlsWorksheet_set_IsStringsPreserved.argtypes=[c_void_p, c_bool]
1864
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_IsStringsPreserved, self.Ptr, value)
1865
+
1866
+ @dispatch
1867
+
1868
+ def AddAllowEditRange(self ,title:str,range:CellRange,password:str)->bool:
1869
+ """
1870
+ <summary>
1871
+ AddAllowEditRange : add a range of cells that allow editing
1872
+ </summary>
1873
+ <param name="title">title</param>
1874
+ <param name="range">range</param>
1875
+ <param name="password">password</param>
1876
+ """
1877
+ intPtrrange:c_void_p = range.Ptr
1878
+
1879
+ GetDllLibXls().XlsWorksheet_AddAllowEditRange.argtypes=[c_void_p ,c_void_p,c_void_p,c_void_p]
1880
+ GetDllLibXls().XlsWorksheet_AddAllowEditRange.restype=c_bool
1881
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_AddAllowEditRange, self.Ptr, title,intPtrrange,password)
1882
+ return ret
1883
+
1884
+ @dispatch
1885
+
1886
+ def AddAllowEditRange(self ,title:str,range:CellRange)->bool:
1887
+ """
1888
+ <summary>
1889
+ AddAllowEditRange : add a range of cells that allow editing
1890
+ </summary>
1891
+ <param name="title">title</param>
1892
+ <param name="range">range</param>
1893
+ """
1894
+ intPtrrange:c_void_p = range.Ptr
1895
+
1896
+ GetDllLibXls().XlsWorksheet_AddAllowEditRangeTR.argtypes=[c_void_p ,c_void_p,c_void_p]
1897
+ GetDllLibXls().XlsWorksheet_AddAllowEditRangeTR.restype=c_bool
1898
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_AddAllowEditRangeTR, self.Ptr, title,intPtrrange)
1899
+ return ret
1900
+
1901
+ @property
1902
+
1903
+ def ListObjects(self)->'IListObjects':
1904
+ """
1905
+ <summary>
1906
+ Returns all list objects in the worksheet.
1907
+ </summary>
1908
+ """
1909
+ GetDllLibXls().XlsWorksheet_get_ListObjects.argtypes=[c_void_p]
1910
+ GetDllLibXls().XlsWorksheet_get_ListObjects.restype=c_void_p
1911
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_ListObjects, self.Ptr)
1912
+ ret = None if intPtr==None else ListObjectCollection(intPtr)
1913
+ return ret
1914
+
1915
+
1916
+ @property
1917
+ def FormulasVisible(self)->bool:
1918
+ """
1919
+
1920
+ """
1921
+ GetDllLibXls().XlsWorksheet_get_FormulasVisible.argtypes=[c_void_p]
1922
+ GetDllLibXls().XlsWorksheet_get_FormulasVisible.restype=c_bool
1923
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_FormulasVisible, self.Ptr)
1924
+ return ret
1925
+
1926
+ @FormulasVisible.setter
1927
+ def FormulasVisible(self, value:bool):
1928
+ GetDllLibXls().XlsWorksheet_set_FormulasVisible.argtypes=[c_void_p, c_bool]
1929
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_FormulasVisible, self.Ptr, value)
1930
+
1931
+ @property
1932
+ def RowColumnHeadersVisible(self)->bool:
1933
+ """
1934
+ <summary>
1935
+ True if row and column headers are visible.
1936
+ False otherwise.
1937
+ </summary>
1938
+ """
1939
+ GetDllLibXls().XlsWorksheet_get_RowColumnHeadersVisible.argtypes=[c_void_p]
1940
+ GetDllLibXls().XlsWorksheet_get_RowColumnHeadersVisible.restype=c_bool
1941
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_RowColumnHeadersVisible, self.Ptr)
1942
+ return ret
1943
+
1944
+ @RowColumnHeadersVisible.setter
1945
+ def RowColumnHeadersVisible(self, value:bool):
1946
+ GetDllLibXls().XlsWorksheet_set_RowColumnHeadersVisible.argtypes=[c_void_p, c_bool]
1947
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_RowColumnHeadersVisible, self.Ptr, value)
1948
+
1949
+ @property
1950
+ def ProtectContents(self)->bool:
1951
+ """
1952
+ <summary>
1953
+ Indicates whether current sheet is protected.
1954
+ </summary>
1955
+ """
1956
+ GetDllLibXls().XlsWorksheet_get_ProtectContents.argtypes=[c_void_p]
1957
+ GetDllLibXls().XlsWorksheet_get_ProtectContents.restype=c_bool
1958
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_ProtectContents, self.Ptr)
1959
+ return ret
1960
+
1961
+ @property
1962
+
1963
+ def PivotTables(self)->'PivotTablesCollection':
1964
+ """
1965
+ <summary>
1966
+ Returns charts collection. Read-only.
1967
+ </summary>
1968
+ """
1969
+ GetDllLibXls().XlsWorksheet_get_PivotTables.argtypes=[c_void_p]
1970
+ GetDllLibXls().XlsWorksheet_get_PivotTables.restype=c_void_p
1971
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_PivotTables, self.Ptr)
1972
+ ret = None if intPtr==None else PivotTablesCollection(intPtr)
1973
+ return ret
1974
+
1975
+
1976
+ @property
1977
+
1978
+ def QuotedName(self)->str:
1979
+ """
1980
+ <summary>
1981
+ Returns quoted name of the worksheet.
1982
+ </summary>
1983
+ """
1984
+ GetDllLibXls().XlsWorksheet_get_QuotedName.argtypes=[c_void_p]
1985
+ GetDllLibXls().XlsWorksheet_get_QuotedName.restype=c_void_p
1986
+ ret = PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_get_QuotedName, self.Ptr))
1987
+ return ret
1988
+
1989
+
1990
+ @property
1991
+
1992
+ def DVTable(self)->'IDataValidationTable':
1993
+ """
1994
+
1995
+ """
1996
+ GetDllLibXls().XlsWorksheet_get_DVTable.argtypes=[c_void_p]
1997
+ GetDllLibXls().XlsWorksheet_get_DVTable.restype=c_void_p
1998
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_DVTable, self.Ptr)
1999
+ ret = None if intPtr==None else XlsDataValidationTable(intPtr)
2000
+ return ret
2001
+
2002
+
2003
+ def CalculateAllValue(self):
2004
+ """
2005
+ <summary>
2006
+ Caculate all formula for the specified worksheet
2007
+ </summary>
2008
+ """
2009
+ GetDllLibXls().XlsWorksheet_CalculateAllValue.argtypes=[c_void_p]
2010
+ CallCFunction(GetDllLibXls().XlsWorksheet_CalculateAllValue, self.Ptr)
2011
+
2012
+
2013
+ def GetCaculateValue(self ,row:int,col:int)->'str':
2014
+ """
2015
+
2016
+ """
2017
+
2018
+ GetDllLibXls().XlsWorksheet_GetCaculateValue.argtypes=[c_void_p ,c_int,c_int]
2019
+ GetDllLibXls().XlsWorksheet_GetCaculateValue.restype=c_void_p
2020
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GetCaculateValue, self.Ptr, row,col)
2021
+ ret = None if intPtr==None else PtrToStr(intPtr)
2022
+ return ret
2023
+
2024
+
2025
+
2026
+ def SetCaculateValue(self ,value:'SpireObject',row:int,col:int):
2027
+ """
2028
+
2029
+ """
2030
+ intPtrvalue:c_void_p = value.Ptr
2031
+
2032
+ GetDllLibXls().XlsWorksheet_SetCaculateValue.argtypes=[c_void_p ,c_void_p,c_int,c_int]
2033
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetCaculateValue, self.Ptr, intPtrvalue,row,col)
2034
+
2035
+ # @dispatch
2036
+ #
2037
+ # def InsertArray(self ,dateTimeArray:'DateTime[]',firstRow:int,firstColumn:int,isVertical:bool)->int:
2038
+ # """
2039
+ # <summary>
2040
+ # Imports an array of datetimes into worksheet.
2041
+ # <example>The following code illustrates how to Imports an array of DateTime values into a worksheet with the specified row and colum:
2042
+ # <code>
2043
+ # //Create worksheet
2044
+ # Workbook workbook = new Workbook();
2045
+ # Worksheet worksheet = workbook.Worksheets[0];
2046
+ # //Initialize the DateTime Array
2047
+ # DateTime[] arrayDate = new DateTime[4] { DateTime.Parse("06:45"), DateTime.Parse("08:30"), DateTime.Parse("09:40"), DateTime.Parse("10:30") };
2048
+ # //Insert the DateTime Array to Sheet
2049
+ # worksheet.InsertArray(arrayDate, 1, 1, true);
2050
+ # //Save to file
2051
+ # workbook.SaveToFile(InsertArray.xlsx");
2052
+ # </code>
2053
+ # </example>
2054
+ # </summary>
2055
+ # <param name="dateTimeArray">Datetime array.</param>
2056
+ # <param name="firstRow">The row number of the first cell to import in.</param>
2057
+ # <param name="firstColumn">The column number of the first cell to import in.</param>
2058
+ # <param name="isVertical">Specifies to import data vertically or horizontally.</param>
2059
+ # <returns></returns>
2060
+ # """
2061
+ # #arraydateTimeArray:ArrayTypedateTimeArray = ""
2062
+ # countdateTimeArray = len(dateTimeArray)
2063
+ # ArrayTypedateTimeArray = c_void_p * countdateTimeArray
2064
+ # arraydateTimeArray = ArrayTypedateTimeArray()
2065
+ # for i in range(0, countdateTimeArray):
2066
+ # arraydateTimeArray[i] = dateTimeArray[i].Ptr
2067
+ #
2068
+ #
2069
+ # GetDllLibXls().XlsWorksheet_InsertArray.argtypes=[c_void_p ,ArrayTypedateTimeArray,c_int,c_int,c_bool]
2070
+ # GetDllLibXls().XlsWorksheet_InsertArray.restype=c_int
2071
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertArray, self.Ptr, arraydateTimeArray,firstRow,firstColumn,isVertical)
2072
+ # return ret
2073
+
2074
+
2075
+ @dispatch
2076
+
2077
+ def InsertArray(self ,doubleArray:List[float],firstRow:int,firstColumn:int,isVertical:bool)->int:
2078
+ """
2079
+ <summary>
2080
+ Imports an array of doubles into a worksheet.
2081
+ <example>The following code illustrates how to Imports an array of Double values into a worksheet with the specified row and column:
2082
+ <code>
2083
+ //Create worksheet
2084
+ Workbook workbook = new Workbook();
2085
+ Worksheet worksheet = workbook.Worksheets[0];
2086
+ //Initialize the double Array
2087
+ double[] arrayDouble = new double[4] { 344.0045, 345.0045, 346.0045, 347.0045 };
2088
+ //Insert the double Array to Sheet
2089
+ worksheet.InsertArray(arrayDouble, 1, 1, true);
2090
+ //Save to file
2091
+ workbook.SaveToFile(InsertArray.xlsx");
2092
+ </code>
2093
+ </example>
2094
+ </summary>
2095
+ <param name="doubleArray">Double array</param>
2096
+ <param name="firstRow">The row number of the first cell to import in.</param>
2097
+ <param name="firstColumn">The column number of the first cell to import in.</param>
2098
+ <param name="isVertical">Specifies to import data vertically or horizontally.</param>
2099
+ <returns></returns>
2100
+ """
2101
+ #arraydoubleArray:ArrayTypedoubleArray = ""
2102
+ countdoubleArray = len(doubleArray)
2103
+ ArrayTypedoubleArray = c_double * countdoubleArray
2104
+ arraydoubleArray = ArrayTypedoubleArray()
2105
+ for i in range(0, countdoubleArray):
2106
+ arraydoubleArray[i] = doubleArray[i]
2107
+
2108
+
2109
+ GetDllLibXls().XlsWorksheet_InsertArrayDFFI.argtypes=[c_void_p ,ArrayTypedoubleArray,c_int,c_int,c_int,c_bool]
2110
+ GetDllLibXls().XlsWorksheet_InsertArrayDFFI.restype=c_int
2111
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertArrayDFFI, self.Ptr, arraydoubleArray,countdoubleArray,firstRow,firstColumn,isVertical)
2112
+ return ret
2113
+
2114
+ # @dispatch
2115
+ #
2116
+ # def InsertArray(self ,objects:'T',firstRow:int,firstColumn:int,isVertical:bool)->int:
2117
+ # """
2118
+ #
2119
+ # """
2120
+ # intPtrobjects:c_void_p = objects.Ptr
2121
+ #
2122
+ # GetDllLibXls().XlsWorksheet_InsertArrayOFFI.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_bool]
2123
+ # GetDllLibXls().XlsWorksheet_InsertArrayOFFI.restype=c_int
2124
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertArrayOFFI, self.Ptr, intPtrobjects,firstRow,firstColumn,isVertical)
2125
+ # return ret
2126
+
2127
+
2128
+ @dispatch
2129
+
2130
+ def InsertArray(self ,intArray:List[int],firstRow:int,firstColumn:int,isVertical:bool)->int:
2131
+ """
2132
+ <summary>
2133
+ Imports an array of integer into a worksheet.
2134
+ <example>The following code illustrates how to Imports an array of integer values into a worksheet with the specified row and column:
2135
+ <code>
2136
+ //Create worksheet
2137
+ Workbook workbook = new Workbook();
2138
+ Worksheet worksheet = workbook.Worksheets[0];
2139
+ //Initialize the integer Array
2140
+ int[] arrayInt = new int[4] {1000, 2000, 3000, 4000};
2141
+ //Insert the integer Array to Sheet
2142
+ worksheet.InsertArray(arrayInt, 1, 1, true);
2143
+ //Save to file
2144
+ workbook.SaveToFile(InsertArray.xlsx");
2145
+ </code>
2146
+ </example>
2147
+ </summary>
2148
+ <param name="intArray">Integer array.</param>
2149
+ <param name="firstRow">The row number of the first cell to import in.</param>
2150
+ <param name="firstColumn">The column number of the first cell to import in.</param>
2151
+ <param name="isVertical">Specifies to import data vertically or horizontally.</param>
2152
+ <returns></returns>
2153
+ """
2154
+ #arrayintArray:ArrayTypeintArray = ""
2155
+ countintArray = len(intArray)
2156
+ ArrayTypeintArray = c_int * countintArray
2157
+ arrayintArray = ArrayTypeintArray()
2158
+ for i in range(0, countintArray):
2159
+ arrayintArray[i] = intArray[i]
2160
+
2161
+
2162
+ GetDllLibXls().XlsWorksheet_InsertArrayIFFI.argtypes=[c_void_p ,ArrayTypeintArray,c_int,c_int,c_int,c_bool]
2163
+ GetDllLibXls().XlsWorksheet_InsertArrayIFFI.restype=c_int
2164
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertArrayIFFI, self.Ptr, arrayintArray,countintArray,firstRow,firstColumn,isVertical)
2165
+ return ret
2166
+
2167
+ # @dispatch
2168
+ #
2169
+ # def InsertArray(self ,objectArray:'Object[,]',firstRow:int,firstColumn:int)->int:
2170
+ # """
2171
+ #
2172
+ # """
2173
+ # #arrayobjectArray:ArrayTypeobjectArray = ""
2174
+ # countobjectArray = len(objectArray)
2175
+ # ArrayTypeobjectArray = c_void_p * countobjectArray
2176
+ # arrayobjectArray = ArrayTypeobjectArray()
2177
+ # for i in range(0, countobjectArray):
2178
+ # arrayobjectArray[i] = objectArray[i].Ptr
2179
+ #
2180
+ #
2181
+ # GetDllLibXls().XlsWorksheet_InsertArrayOFF.argtypes=[c_void_p ,ArrayTypeobjectArray,c_int,c_int]
2182
+ # GetDllLibXls().XlsWorksheet_InsertArrayOFF.restype=c_int
2183
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertArrayOFF, self.Ptr, arrayobjectArray,firstRow,firstColumn)
2184
+ # return ret
2185
+
2186
+
2187
+ # @dispatch
2188
+ #
2189
+ # def InsertArray(self ,objectArray:'Object[,]',firstRow:int,firstColumn:int,needConvert:bool)->int:
2190
+ # """
2191
+ # <summary>
2192
+ # Imports an array of objects into a worksheet.
2193
+ # <example>The following code illustrates how to Imports an array of Object into a worksheet with specified alignment:
2194
+ # <code>
2195
+ # //Create worksheet
2196
+ # Workbook workbook = new Workbook();
2197
+ # Worksheet worksheet = workbook.Worksheets[0];
2198
+ # //Initialize the Object Array
2199
+ # object[] array = new object[4] { "Total Income", "Actual Expense", "Expected Expenses", "Profit" };
2200
+ # //Insert the Object Array to Sheet
2201
+ # worksheet.InsertArray(array, 1, 1, true);
2202
+ # //Save to file
2203
+ # workbook.SaveToFile(InsertArray.xlsx");
2204
+ # </code>
2205
+ # </example>
2206
+ # </summary>
2207
+ # <param name="arrObject">Array to import.</param>
2208
+ # <param name="firstRow">The row number of the first cell to import in.</param>
2209
+ # <param name="firstColumn">The column number of the first cell to import in.</param>
2210
+ # <param name="isVertical">TRUE if array should be imported vertically; FALSE - horizontally.</param>
2211
+ # <returns>Number of imported elements.</returns>
2212
+ # """
2213
+ # #arrayobjectArray:ArrayTypeobjectArray = ""
2214
+ # countobjectArray = len(objectArray)
2215
+ # ArrayTypeobjectArray = c_void_p * countobjectArray
2216
+ # arrayobjectArray = ArrayTypeobjectArray()
2217
+ # for i in range(0, countobjectArray):
2218
+ # arrayobjectArray[i] = objectArray[i].Ptr
2219
+ #
2220
+ #
2221
+ # GetDllLibXls().XlsWorksheet_InsertArrayOFFN.argtypes=[c_void_p ,ArrayTypeobjectArray,c_int,c_int,c_bool]
2222
+ # GetDllLibXls().XlsWorksheet_InsertArrayOFFN.restype=c_int
2223
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertArrayOFFN, self.Ptr, arrayobjectArray,firstRow,firstColumn,needConvert)
2224
+ # return ret
2225
+
2226
+
2227
+ @dispatch
2228
+
2229
+ def InsertArray(self ,stringArray:List[str],firstRow:int,firstColumn:int,isVertical:bool)->int:
2230
+ """
2231
+ <summary>
2232
+ Imports an array of strings into a worksheet.
2233
+ <example>The following code illustrates how to Imports an array of String into a worksheet with specified row and column:
2234
+ <code>
2235
+ //Create worksheet
2236
+ Workbook workbook = new Workbook();
2237
+ Worksheet worksheet = workbook.Worksheets[0];
2238
+ //Initialize the string Array
2239
+ string[] arrayString = new string[4] { "Total Income", "Actual Expense", "Expected Expenses", "Profit" };
2240
+ //Insert the string Array to Sheet
2241
+ worksheet.InsertArray(arrayString, 1, 1, true);
2242
+ //Save to file
2243
+ workbook.SaveToFile(InsertArray.xlsx");
2244
+ </code>
2245
+ </example>
2246
+ </summary>
2247
+ <param name="stringArray">String array.</param>
2248
+ <param name="firstRow">The row number of the first cell to import in.</param>
2249
+ <param name="firstColumn">The column number of the first cell to import in.</param>
2250
+ <param name="isVertical">Specifies to import data vertically or horizontally.</param>
2251
+ <returns></returns>
2252
+ """
2253
+ #arraystringArray:ArrayTypestringArray = ""
2254
+ countstringArray = len(stringArray)
2255
+ ArrayTypestringArray = c_wchar_p * countstringArray
2256
+ arraystringArray = ArrayTypestringArray()
2257
+ for i in range(0, countstringArray):
2258
+ arraystringArray[i] = stringArray[i]
2259
+
2260
+
2261
+ GetDllLibXls().XlsWorksheet_InsertArraySFFI.argtypes=[c_void_p ,ArrayTypestringArray,c_int,c_int,c_int,c_bool]
2262
+ GetDllLibXls().XlsWorksheet_InsertArraySFFI.restype=c_int
2263
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertArraySFFI, self.Ptr, arraystringArray,countstringArray,firstRow,firstColumn,isVertical)
2264
+ return ret
2265
+
2266
+ @dispatch
2267
+
2268
+ def InsertArray(self ,arrObject:List[SpireObject],firstRow:int,firstColumn:int,isVertical:bool)->int:
2269
+ """
2270
+ <summary>
2271
+ Imports an array of objects into a worksheet.
2272
+ <example>The following code illustrates how to Imports an array of Object into a worksheet with specified alignment:
2273
+ <code>
2274
+ //Create worksheet
2275
+ Workbook workbook = new Workbook();
2276
+ Worksheet worksheet = workbook.Worksheets[0];
2277
+ //Initialize the Object Array
2278
+ object[] array = new object[4] { "Total Income", "Actual Expense", "Expected Expenses", "Profit" };
2279
+ //Insert the Object Array to Sheet
2280
+ worksheet.InsertArray(array, 1, 1, true);
2281
+ //Save to file
2282
+ workbook.SaveToFile(InsertArray.xlsx");
2283
+ </code>
2284
+ </example>
2285
+ </summary>
2286
+ <param name="arrObject">Array to import.</param>
2287
+ <param name="firstRow">The row number of the first cell to import in.</param>
2288
+ <param name="firstColumn">The column number of the first cell to import in.</param>
2289
+ <param name="isVertical">TRUE if array should be imported vertically; FALSE - horizontally.</param>
2290
+ <returns>Number of imported elements.</returns>
2291
+ """
2292
+ #arrayarrObject:ArrayTypearrObject = ""
2293
+ countarrObject = len(arrObject)
2294
+ ArrayTypearrObject = c_void_p * countarrObject
2295
+ arrayarrObject = ArrayTypearrObject()
2296
+ for i in range(0, countarrObject):
2297
+ arrayarrObject[i] = arrObject[i].Ptr
2298
+
2299
+
2300
+ GetDllLibXls().XlsWorksheet_InsertArrayAFFI.argtypes=[c_void_p ,ArrayTypearrObject,c_int,c_int,c_int,c_bool]
2301
+ GetDllLibXls().XlsWorksheet_InsertArrayAFFI.restype=c_int
2302
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertArrayAFFI, self.Ptr, arrayarrObject,countarrObject,firstRow,firstColumn,isVertical)
2303
+ return ret
2304
+
2305
+ #
2306
+ # def InsertArrayList(self ,arrayList:'ArrayList',firstRow:int,firstColumn:int,isVertical:bool)->int:
2307
+ # """
2308
+ # <summary>
2309
+ # Imports an arraylist of data into a worksheet.
2310
+ # </summary>
2311
+ # <param name="arrayList">Data arraylist.</param>
2312
+ # <param name="firstRow">The row number of the first cell to import in.</param>
2313
+ # <param name="firstColumn">The column number of the first cell to import in.</param>
2314
+ # <param name="isVertical">Specifies to import data vertically or horizontally.</param>
2315
+ # <returns></returns>
2316
+ # """
2317
+ # intPtrarrayList:c_void_p = arrayList.Ptr
2318
+ #
2319
+ # GetDllLibXls().XlsWorksheet_InsertArrayList.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_bool]
2320
+ # GetDllLibXls().XlsWorksheet_InsertArrayList.restype=c_int
2321
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertArrayList, self.Ptr, intPtrarrayList,firstRow,firstColumn,isVertical)
2322
+ # return ret
2323
+
2324
+
2325
+ #
2326
+ # def InsertDataColumn(self ,dataColumn:'DataColumn',columnHeaders:bool,firstRow:int,firstColumn:int)->int:
2327
+ # """
2328
+ # <summary>
2329
+ # Imports data column.
2330
+ # <example>The following code illustrates how to Imports data from a DataColumn into a worksheet with the specified row and column:
2331
+ # <code>
2332
+ # //Create worksheet
2333
+ # Workbook workbook = new Workbook();
2334
+ # Worksheet worksheet = workbook.Worksheets[0];
2335
+ # //Create a DataTable
2336
+ # System.Data.DataTable table = new System.Data.DataTable();
2337
+ # table.Columns.Add("ID", typeof(int));
2338
+ # table.Columns.Add("Item", typeof(string));
2339
+ # table.Columns.Add("Name", typeof(string));
2340
+ # table.Rows.Add(1, "Soap", "David");
2341
+ # table.Rows.Add(2, "Paste", "Sam");
2342
+ # table.Rows.Add(3, "Cream", "Christoff");
2343
+ # //Insert the DataColumn to worksheet
2344
+ # System.Data.DataColumn column = table.Columns[2];
2345
+ # worksheet.InsertDataColumn(column, true, 1, 1);
2346
+ # //Save to file
2347
+ # workbook.SaveToFile(InsertDataColumn.xlsx");
2348
+ # </code>
2349
+ # </example>
2350
+ # </summary>
2351
+ # <param name="dataColumn">Data column to import.</param>
2352
+ # <param name="columnHeaders">Indicates whether to import field names.</param>
2353
+ # <param name="firstRow">Index of the first row.</param>
2354
+ # <param name="firstColumn">Index of the first column</param>
2355
+ # <returns></returns>
2356
+ # """
2357
+ # intPtrdataColumn:c_void_p = dataColumn.Ptr
2358
+ #
2359
+ # GetDllLibXls().XlsWorksheet_InsertDataColumn.argtypes=[c_void_p ,c_void_p,c_bool,c_int,c_int]
2360
+ # GetDllLibXls().XlsWorksheet_InsertDataColumn.restype=c_int
2361
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertDataColumn, self.Ptr, intPtrdataColumn,columnHeaders,firstRow,firstColumn)
2362
+ # return ret
2363
+
2364
+
2365
+ #
2366
+ # def InsertDataColumns(self ,dataColumns:'DataColumn[]',columnHeaders:bool,firstRow:int,firstColumn:int)->int:
2367
+ # """
2368
+ # <summary>
2369
+ # Imports array of data columns.
2370
+ # </summary>
2371
+ # <param name="dataColumns">Data columns to import.</param>
2372
+ # <param name="columnHeaders">Indicates whether to import field names.</param>
2373
+ # <param name="firstRow">Index to the first row.</param>
2374
+ # <param name="firstColumn">Index to the first column.</param>
2375
+ # <returns></returns>
2376
+ # """
2377
+ # #arraydataColumns:ArrayTypedataColumns = ""
2378
+ # countdataColumns = len(dataColumns)
2379
+ # ArrayTypedataColumns = c_void_p * countdataColumns
2380
+ # arraydataColumns = ArrayTypedataColumns()
2381
+ # for i in range(0, countdataColumns):
2382
+ # arraydataColumns[i] = dataColumns[i].Ptr
2383
+ #
2384
+ #
2385
+ # GetDllLibXls().XlsWorksheet_InsertDataColumns.argtypes=[c_void_p ,ArrayTypedataColumns,c_bool,c_int,c_int]
2386
+ # GetDllLibXls().XlsWorksheet_InsertDataColumns.restype=c_int
2387
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertDataColumns, self.Ptr, arraydataColumns,columnHeaders,firstRow,firstColumn)
2388
+ # return ret
2389
+
2390
+
2391
+ # @dispatch
2392
+ #
2393
+ # def InsertDataTable(self ,dataTable:'DataTable',columnHeaders:bool,firstRow:int,firstColumn:int)->int:
2394
+ # """
2395
+ # <summary>
2396
+ # Imports data from a DataTable into worksheet.
2397
+ # <example>The following code illustrates how to Imports data from a DataTable into a worksheet with the specified row and column:
2398
+ # <code>
2399
+ # //Create worksheet
2400
+ # Workbook workbook = new Workbook();
2401
+ # Worksheet worksheet = workbook.Worksheets[0];
2402
+ # //Create a DataTable
2403
+ # System.Data.DataTable table = new System.Data.DataTable();
2404
+ # table.Columns.Add("ID", typeof(int));
2405
+ # table.Columns.Add("Item", typeof(string));
2406
+ # table.Columns.Add("Name", typeof(string));
2407
+ # table.Rows.Add(1, "Soap", "David");
2408
+ # table.Rows.Add(2, "Paste", "Sam");
2409
+ # table.Rows.Add(3, "Cream", "Christoff");
2410
+ # //Insert the DataTable to worksheet
2411
+ # worksheet.InsertDataTable(table, true, 1, 1);
2412
+ # //Save to file
2413
+ # workbook.SaveToFile(InsertDataTable.xlsx");
2414
+ # </code>
2415
+ # </example>
2416
+ # </summary>
2417
+ # <param name="dataTable">DataTable</param>
2418
+ # <param name="columnHeaders">Indicates whether to import field names.</param>
2419
+ # <param name="firstRow">The row number of the first cell to import in.</param>
2420
+ # <param name="firstColumn">The column number of the first cell to import in.</param>
2421
+ # <returns></returns>
2422
+ # """
2423
+ # intPtrdataTable:c_void_p = dataTable.Ptr
2424
+ #
2425
+ # GetDllLibXls().XlsWorksheet_InsertDataTable.argtypes=[c_void_p ,c_void_p,c_bool,c_int,c_int]
2426
+ # GetDllLibXls().XlsWorksheet_InsertDataTable.restype=c_int
2427
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertDataTable, self.Ptr, intPtrdataTable,columnHeaders,firstRow,firstColumn)
2428
+ # return ret
2429
+
2430
+
2431
+ # @dispatch
2432
+ #
2433
+ # def InsertDataTable(self ,dataTable:'DataTable',columnHeaders:bool,firstRow:int,firstColumn:int,transTypes:bool)->int:
2434
+ # """
2435
+ # <summary>
2436
+ # Imports data from a DataTable into worksheet.
2437
+ # <example>The following code illustrates how to Imports data from a DataTable into a worksheet with the specified row and column along with the preserve type:
2438
+ # <code>
2439
+ # //Create worksheet
2440
+ # Workbook workbook = new Workbook();
2441
+ # Worksheet worksheet = workbook.Worksheets[0];
2442
+ # //Create a DataTable
2443
+ # System.Data.DataTable table = new System.Data.DataTable();
2444
+ # table.Columns.Add("ID", typeof(int));
2445
+ # table.Columns.Add("Item", typeof(string));
2446
+ # table.Columns.Add("Name", typeof(string));
2447
+ # table.Rows.Add(1, "Soap", "David");
2448
+ # table.Rows.Add(2, "Paste", "Sam");
2449
+ # table.Rows.Add(3, "Cream", "Christoff");
2450
+ # //Insert the DataTable to worksheet
2451
+ # worksheet.InsertDataTable(table, true, 1, 1 , true);
2452
+ # //Save to file
2453
+ # workbook.SaveToFile(InsertDataTable.xlsx");
2454
+ # </code>
2455
+ # </example>
2456
+ # </summary>
2457
+ # <param name="dataTable">DataTable</param>
2458
+ # <param name="columnHeaders">Indicates whether to import field names.</param>
2459
+ # <param name="firstRow">The row number of the first cell to import in.</param>
2460
+ # <param name="firstColumn">The column number of the first cell to import in.</param>
2461
+ # <param name="transTypes">Indicates if preserve types when insert data into worksheet </param>
2462
+ # <returns></returns>
2463
+ # """
2464
+ # intPtrdataTable:c_void_p = dataTable.Ptr
2465
+ #
2466
+ # GetDllLibXls().XlsWorksheet_InsertDataTableDCFFT.argtypes=[c_void_p ,c_void_p,c_bool,c_int,c_int,c_bool]
2467
+ # GetDllLibXls().XlsWorksheet_InsertDataTableDCFFT.restype=c_int
2468
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertDataTableDCFFT, self.Ptr, intPtrdataTable,columnHeaders,firstRow,firstColumn,transTypes)
2469
+ # return ret
2470
+
2471
+
2472
+ # @dispatch
2473
+ #
2474
+ # def InsertDataTable(self ,dataTable:'DataTable',columnHeaders:bool,firstRow:int,firstColumn:int,maxRows:int,maxColumns:int)->int:
2475
+ # """
2476
+ # <summary>
2477
+ # Imports data from a DataTable into worksheet.
2478
+ # <example>The following code illustrates how to Imports data from a DataTable into a worksheet with the specified range:
2479
+ # <code>
2480
+ # //Create worksheet
2481
+ # Workbook workbook = new Workbook();
2482
+ # Worksheet worksheet = workbook.Worksheets[0];
2483
+ # //Create a DataTable
2484
+ # System.Data.DataTable table = new System.Data.DataTable();
2485
+ # table.Columns.Add("ID", typeof(int));
2486
+ # table.Columns.Add("Item", typeof(string));
2487
+ # table.Columns.Add("Name", typeof(string));
2488
+ # table.Rows.Add(1, "Soap", "David");
2489
+ # table.Rows.Add(2, "Paste", "Sam");
2490
+ # table.Rows.Add(3, "Cream", "Christoff");
2491
+ # //Insert the DataTable to worksheet
2492
+ # worksheet.InsertDataTable(table, true, 1 , 1 , 2 , 2);
2493
+ # //Save to file
2494
+ # workbook.SaveToFile(InsertDataTable.xlsx");
2495
+ # </code>
2496
+ # </example>
2497
+ # </summary>
2498
+ # <param name="dataTable">DataTable</param>
2499
+ # <param name="columnHeaders">Indicates whether to import field names.</param>
2500
+ # <param name="firstRow">The row number of the first cell to import in.</param>
2501
+ # <param name="firstColumn">The column number of the first cell to import in.</param>
2502
+ # <param name="maxRows">Maximum number of rows to import</param>
2503
+ # <param name="maxColumns">Maximum number of columns to import</param>
2504
+ # <returns></returns>
2505
+ # """
2506
+ # intPtrdataTable:c_void_p = dataTable.Ptr
2507
+ #
2508
+ # GetDllLibXls().XlsWorksheet_InsertDataTableDCFFMM.argtypes=[c_void_p ,c_void_p,c_bool,c_int,c_int,c_int,c_int]
2509
+ # GetDllLibXls().XlsWorksheet_InsertDataTableDCFFMM.restype=c_int
2510
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertDataTableDCFFMM, self.Ptr, intPtrdataTable,columnHeaders,firstRow,firstColumn,maxRows,maxColumns)
2511
+ # return ret
2512
+
2513
+
2514
+ # @dispatch
2515
+ #
2516
+ # def InsertDataTable(self ,dataTable:'DataTable',columnHeaders:bool,firstRow:int,firstColumn:int,maxRows:int,maxColumns:int,transTypes:bool)->int:
2517
+ # """
2518
+ # <summary>
2519
+ # Imports data from a DataTable into worksheet.
2520
+ # <example>The following code illustrates how to Imports data from a DataTable into a worksheet with specified range along with preserve type:
2521
+ # <code>
2522
+ # //Create worksheet
2523
+ # Workbook workbook = new Workbook();
2524
+ # Worksheet worksheet = workbook.Worksheets[0];
2525
+ # //Create a DataTable
2526
+ # System.Data.DataTable table = new System.Data.DataTable();
2527
+ # table.Columns.Add("ID", typeof(int));
2528
+ # table.Columns.Add("Item", typeof(string));
2529
+ # table.Columns.Add("Name", typeof(string));
2530
+ # table.Rows.Add(1, "Soap", "David");
2531
+ # table.Rows.Add(2, "Paste", "Sam");
2532
+ # table.Rows.Add(3, "Cream", "Christoff");
2533
+ # //Insert the DataTable to worksheet
2534
+ # worksheet.InsertDataTable(table, true, 1 , 1 , 2 , 2 , true);
2535
+ # //Save to file
2536
+ # workbook.SaveToFile(InsertDataTable.xlsx");
2537
+ # </code>
2538
+ # </example>
2539
+ # </summary>
2540
+ # <param name="dataTable">Datatable</param>
2541
+ # <param name="columnHeaders">Indicates whether to import field names.</param>
2542
+ # <param name="firstRow">The row number of the first cell to import in.</param>
2543
+ # <param name="firstColumn">The column number of the first cell to import in.</param>
2544
+ # <param name="maxRows">Maximum number of rows to import</param>
2545
+ # <param name="maxColumns">Maximum number of columns to import</param>
2546
+ # <param name="transTypes">Indicates if preserve types when insert data into worksheet </param>
2547
+ # <returns></returns>
2548
+ # """
2549
+ # intPtrdataTable:c_void_p = dataTable.Ptr
2550
+ #
2551
+ # GetDllLibXls().XlsWorksheet_InsertDataTableDCFFMMT.argtypes=[c_void_p ,c_void_p,c_bool,c_int,c_int,c_int,c_int,c_bool]
2552
+ # GetDllLibXls().XlsWorksheet_InsertDataTableDCFFMMT.restype=c_int
2553
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertDataTableDCFFMMT, self.Ptr, intPtrdataTable,columnHeaders,firstRow,firstColumn,maxRows,maxColumns,transTypes)
2554
+ # return ret
2555
+
2556
+
2557
+ # @dispatch
2558
+ #
2559
+ # def InsertDataTable(self ,dataTable:'DataTable',columnHeaders:bool,firstRow:int,firstColumn:int,maxRows:int,maxColumns:int,columnsArray:'DataColumn[]',transTypes:bool)->int:
2560
+ # """
2561
+ # <summary>
2562
+ # Imports data from a DataTable into worksheet
2563
+ # </summary>
2564
+ # <param name="dataTable">DataTable</param>
2565
+ # <param name="columnHeaders">Indicates whether to import field names.</param>
2566
+ # <param name="firstRow">The row number of the first cell to import in.</param>
2567
+ # <param name="firstColumn">The column number of the first cell to import in.</param>
2568
+ # <param name="maxRows">Maximum number of rows to import</param>
2569
+ # <param name="maxColumns">Maximum number of columns to import</param>
2570
+ # <param name="columnsArray">Array of columns to import.</param>
2571
+ # <param name="transTypes">Indicates if preserve types when insert data into worksheet.true is default</param>
2572
+ # <returns></returns>
2573
+ # """
2574
+ # intPtrdataTable:c_void_p = dataTable.Ptr
2575
+ # #arraycolumnsArray:ArrayTypecolumnsArray = ""
2576
+ # countcolumnsArray = len(columnsArray)
2577
+ # ArrayTypecolumnsArray = c_void_p * countcolumnsArray
2578
+ # arraycolumnsArray = ArrayTypecolumnsArray()
2579
+ # for i in range(0, countcolumnsArray):
2580
+ # arraycolumnsArray[i] = columnsArray[i].Ptr
2581
+ #
2582
+ #
2583
+ # GetDllLibXls().XlsWorksheet_InsertDataTableDCFFMMCT.argtypes=[c_void_p ,c_void_p,c_bool,c_int,c_int,c_int,c_int,ArrayTypecolumnsArray,c_bool]
2584
+ # GetDllLibXls().XlsWorksheet_InsertDataTableDCFFMMCT.restype=c_int
2585
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertDataTableDCFFMMCT, self.Ptr, intPtrdataTable,columnHeaders,firstRow,firstColumn,maxRows,maxColumns,arraycolumnsArray,transTypes)
2586
+ # return ret
2587
+
2588
+
2589
+ # @dispatch
2590
+ #
2591
+ # def InsertDataView(self ,dataView:'DataView',columnHeaders:bool,firstRow:int,firstColumn:int)->int:
2592
+ # """
2593
+ # <summary>
2594
+ # Imports data from a DataView into worksheet.
2595
+ # <example>The following code illustrates how to Imports data from a DataView into a worksheet with the specified row and column:
2596
+ # <code>
2597
+ # //Create worksheet
2598
+ # Workbook workbook = new Workbook();
2599
+ # Worksheet worksheet = workbook.Worksheets[0];
2600
+ # //Create a DataTable
2601
+ # System.Data.DataTable table = new System.Data.DataTable();
2602
+ # table.Columns.Add("ID", typeof(int));
2603
+ # table.Columns.Add("Item", typeof(string));
2604
+ # table.Columns.Add("Name", typeof(string));
2605
+ # table.Rows.Add(1, "Soap", "David");
2606
+ # table.Rows.Add(2, "Paste", "Sam");
2607
+ # table.Rows.Add(3, "Cream", "Christoff");
2608
+ # //Initialize dataview of datatable
2609
+ # System.Data.DataView view = table.DefaultView;
2610
+ # //Import data from DataView
2611
+ # worksheet.InsertDataView(view, true, 1, 1);
2612
+ # //Save to file
2613
+ # workbook.SaveToFile(InsertDataView.xlsx");
2614
+ # </code>
2615
+ # </example>
2616
+ # </summary>
2617
+ # <param name="dataView">Data view object</param>
2618
+ # <param name="columnHeaders">Indicates whether to import field names.</param>
2619
+ # <param name="firstRow">The row number of the first cell to import in.</param>
2620
+ # <param name="firstColumn">The column number of the first cell to import in.</param>
2621
+ # <returns></returns>
2622
+ # """
2623
+ # intPtrdataView:c_void_p = dataView.Ptr
2624
+ #
2625
+ # GetDllLibXls().XlsWorksheet_InsertDataView.argtypes=[c_void_p ,c_void_p,c_bool,c_int,c_int]
2626
+ # GetDllLibXls().XlsWorksheet_InsertDataView.restype=c_int
2627
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertDataView, self.Ptr, intPtrdataView,columnHeaders,firstRow,firstColumn)
2628
+ # return ret
2629
+
2630
+
2631
+ # @dispatch
2632
+ #
2633
+ # def InsertDataView(self ,dataView:'DataView',columnHeaders:bool,firstRow:int,firstColumn:int,transTypes:bool)->int:
2634
+ # """
2635
+ # <summary>
2636
+ # Imports data from a DataView into worksheet.
2637
+ # <example>The following code illustrates how to Imports data from a DataView into a worksheet with the specified row and column along with preserve type:
2638
+ # <code>
2639
+ # //Create worksheet
2640
+ # Workbook workbook = new Workbook();
2641
+ # Worksheet worksheet = workbook.Worksheets[0];
2642
+ # //Create a DataTable
2643
+ # System.Data.DataTable table = new System.Data.DataTable();
2644
+ # table.Columns.Add("ID", typeof(int));
2645
+ # table.Columns.Add("Item", typeof(string));
2646
+ # table.Columns.Add("Name", typeof(string));
2647
+ # table.Rows.Add(1, "Soap", "David");
2648
+ # table.Rows.Add(2, "Paste", "Sam");
2649
+ # table.Rows.Add(3, "Cream", "Christoff");
2650
+ # //Initialize dataview of datatable
2651
+ # System.Data.DataView view = table.DefaultView;
2652
+ # //Import data from DataView
2653
+ # worksheet.InsertDataView(view, true, 1, 1 , true);
2654
+ # //Save to file
2655
+ # workbook.SaveToFile(InsertDataView.xlsx");
2656
+ # </code>
2657
+ # </example>
2658
+ # </summary>
2659
+ # <param name="dataView">Dataview object.</param>
2660
+ # <param name="columnHeaders">Indicates whether to import field names.</param>
2661
+ # <param name="firstRow">The row number of the first cell to import in.</param>
2662
+ # <param name="firstColumn">The column number of the first cell to import in.</param>
2663
+ # <param name="transTypes">Indicates if preserve types when insert data into worksheet.</param>
2664
+ # <returns></returns>
2665
+ # """
2666
+ # intPtrdataView:c_void_p = dataView.Ptr
2667
+ #
2668
+ # GetDllLibXls().XlsWorksheet_InsertDataViewDCFFT.argtypes=[c_void_p ,c_void_p,c_bool,c_int,c_int,c_bool]
2669
+ # GetDllLibXls().XlsWorksheet_InsertDataViewDCFFT.restype=c_int
2670
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertDataViewDCFFT, self.Ptr, intPtrdataView,columnHeaders,firstRow,firstColumn,transTypes)
2671
+ # return ret
2672
+
2673
+
2674
+ # @dispatch
2675
+ #
2676
+ # def InsertDataView(self ,dataView:'DataView',columnHeaders:bool,firstRow:int,firstColumn:int,maxRows:int,maxColumns:int)->int:
2677
+ # """
2678
+ # <summary>
2679
+ # Imports data from a DataView into worksheet.
2680
+ # <example>The following code illustrates how to Imports data from a DataView into a worksheet with the specified range:
2681
+ # <code>
2682
+ # //Create worksheet
2683
+ # Workbook workbook = new Workbook();
2684
+ # Worksheet worksheet = workbook.Worksheets[0];
2685
+ # //Create a DataTable
2686
+ # System.Data.DataTable table = new System.Data.DataTable();
2687
+ # table.Columns.Add("ID", typeof(int));
2688
+ # table.Columns.Add("Item", typeof(string));
2689
+ # table.Columns.Add("Name", typeof(string));
2690
+ # table.Rows.Add(1, "Soap", "David");
2691
+ # table.Rows.Add(2, "Paste", "Sam");
2692
+ # table.Rows.Add(3, "Cream", "Christoff");
2693
+ # //Initialize dataview of datatable
2694
+ # System.Data.DataView view = table.DefaultView;
2695
+ # //Import data from DataView
2696
+ # worksheet.InsertDataView(view, true, 1, 1 , 2 , 2);
2697
+ # //Save to file
2698
+ # workbook.SaveToFile(InsertDataView.xlsx");
2699
+ # </code>
2700
+ # </example>
2701
+ # </summary>
2702
+ # <param name="dataView">Dataview object.</param>
2703
+ # <param name="columnHeaders">Indicates whether to import field names.</param>
2704
+ # <param name="firstRow">The row number of the first cell to import in.</param>
2705
+ # <param name="firstColumn">The column number of the first cell to import in.</param>
2706
+ # <param name="maxRows">Maximum number of rows to import.</param>
2707
+ # <param name="maxColumns">Maximum number of columns to import.</param>
2708
+ # <returns></returns>
2709
+ # """
2710
+ # intPtrdataView:c_void_p = dataView.Ptr
2711
+ #
2712
+ # GetDllLibXls().XlsWorksheet_InsertDataViewDCFFMM.argtypes=[c_void_p ,c_void_p,c_bool,c_int,c_int,c_int,c_int]
2713
+ # GetDllLibXls().XlsWorksheet_InsertDataViewDCFFMM.restype=c_int
2714
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertDataViewDCFFMM, self.Ptr, intPtrdataView,columnHeaders,firstRow,firstColumn,maxRows,maxColumns)
2715
+ # return ret
2716
+
2717
+
2718
+ # @dispatch
2719
+ #
2720
+ # def InsertDataView(self ,dataView:'DataView',columnHeaders:bool,firstRow:int,firstColumn:int,maxRows:int,maxColumns:int,transTypes:bool)->int:
2721
+ # """
2722
+ # <summary>
2723
+ # Imports data from a DataView into worksheet.
2724
+ # <example>The following code illustrates how to Imports data from a DataView into a worksheet with the specified range along with preserve type:
2725
+ # <code>
2726
+ # //Create worksheet
2727
+ # Workbook workbook = new Workbook();
2728
+ # Worksheet worksheet = workbook.Worksheets[0];
2729
+ # //Create a DataTable
2730
+ # System.Data.DataTable table = new System.Data.DataTable();
2731
+ # table.Columns.Add("ID", typeof(int));
2732
+ # table.Columns.Add("Item", typeof(string));
2733
+ # table.Columns.Add("Name", typeof(string));
2734
+ # table.Rows.Add(1, "Soap", "David");
2735
+ # table.Rows.Add(2, "Paste", "Sam");
2736
+ # table.Rows.Add(3, "Cream", "Christoff");
2737
+ # //Initialize dataview of datatable
2738
+ # System.Data.DataView view = table.DefaultView;
2739
+ # //Import data from DataView
2740
+ # worksheet.InsertDataView(view, true, 1, 1 , 2 , 2 , true);
2741
+ # //Save to file
2742
+ # workbook.SaveToFile(InsertDataView.xlsx");
2743
+ # </code>
2744
+ # </example>
2745
+ # </summary>
2746
+ # <param name="dataView">Dataview object.</param>
2747
+ # <param name="columnHeaders">Indicates whether to import field names.</param>
2748
+ # <param name="firstRow">The row number of the first cell to import in.</param>
2749
+ # <param name="firstColumn">The column number of the first cell to import in.</param>
2750
+ # <param name="maxRows">Maximum number of rows to import.</param>
2751
+ # <param name="maxColumns">Maximum number of columns to import.</param>
2752
+ # <param name="transTypes">Indicates if preserve types when insert data into worksheet.</param>
2753
+ # <returns></returns>
2754
+ # """
2755
+ # intPtrdataView:c_void_p = dataView.Ptr
2756
+ #
2757
+ # GetDllLibXls().XlsWorksheet_InsertDataViewDCFFMMT.argtypes=[c_void_p ,c_void_p,c_bool,c_int,c_int,c_int,c_int,c_bool]
2758
+ # GetDllLibXls().XlsWorksheet_InsertDataViewDCFFMMT.restype=c_int
2759
+ # ret = CallCFunction(GetDllLibXls().XlsWorksheet_InsertDataViewDCFFMMT, self.Ptr, intPtrdataView,columnHeaders,firstRow,firstColumn,maxRows,maxColumns,transTypes)
2760
+ # return ret
2761
+
2762
+
2763
+ @dispatch
2764
+
2765
+ def ImportCustomObjects(self ,list:ICollection,firstRow:int,firstColumn:int,options:ImportObjectOptions)->int:
2766
+ """
2767
+
2768
+ """
2769
+ intPtrlist:c_void_p = list.Ptr
2770
+ intPtroptions:c_void_p = options.Ptr
2771
+
2772
+ GetDllLibXls().XlsWorksheet_ImportCustomObjects.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_void_p]
2773
+ GetDllLibXls().XlsWorksheet_ImportCustomObjects.restype=c_int
2774
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_ImportCustomObjects, self.Ptr, intPtrlist,firstRow,firstColumn,intPtroptions)
2775
+ return ret
2776
+
2777
+ @dispatch
2778
+
2779
+ def ImportCustomObjects(self ,list:ICollection,propertyNames:List[str],isPropertyNameShown:bool,firstRow:int,firstColumn:int,rowNumber:int,insertRows:bool,dateFormatString:str,convertStringToNumber:bool)->int:
2780
+ """
2781
+
2782
+ """
2783
+ intPtrlist:c_void_p = list.Ptr
2784
+ #arraypropertyNames:ArrayTypepropertyNames = ""
2785
+ countpropertyNames = len(propertyNames)
2786
+ ArrayTypepropertyNames = c_wchar_p * countpropertyNames
2787
+ arraypropertyNames = ArrayTypepropertyNames()
2788
+ for i in range(0, countpropertyNames):
2789
+ arraypropertyNames[i] = propertyNames[i]
2790
+
2791
+
2792
+ GetDllLibXls().XlsWorksheet_ImportCustomObjectsLPIFFRIDC.argtypes=[c_void_p ,c_void_p,ArrayTypepropertyNames,c_int,c_bool,c_int,c_int,c_int,c_bool,c_void_p,c_bool]
2793
+ GetDllLibXls().XlsWorksheet_ImportCustomObjectsLPIFFRIDC.restype=c_int
2794
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_ImportCustomObjectsLPIFFRIDC, self.Ptr, intPtrlist,arraypropertyNames,countpropertyNames,isPropertyNameShown,firstRow,firstColumn,rowNumber,insertRows,dateFormatString,convertStringToNumber)
2795
+ return ret
2796
+
2797
+
2798
+ def IsColumnVisible(self ,columnIndex:int)->bool:
2799
+ """
2800
+ <summary>
2801
+ Indicates whether column is visible.
2802
+ </summary>
2803
+ <param name="columnIndex">Column index.</param>
2804
+ <returns>true - visible, otherwise false.</returns>
2805
+ """
2806
+
2807
+ GetDllLibXls().XlsWorksheet_IsColumnVisible.argtypes=[c_void_p ,c_int]
2808
+ GetDllLibXls().XlsWorksheet_IsColumnVisible.restype=c_bool
2809
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_IsColumnVisible, self.Ptr, columnIndex)
2810
+ return ret
2811
+
2812
+
2813
+ def IsExternalFormula(self ,row:int,column:int)->bool:
2814
+ """
2815
+ <summary>
2816
+ Indicates is formula in cell is formula to external workbook.
2817
+ </summary>
2818
+ <param name="row">Represents row index.</param>
2819
+ <param name="column">Represents column index.</param>
2820
+ <returns>If contain extern formula returns true; otherwise false.</returns>
2821
+ """
2822
+
2823
+ GetDllLibXls().XlsWorksheet_IsExternalFormula.argtypes=[c_void_p ,c_int,c_int]
2824
+ GetDllLibXls().XlsWorksheet_IsExternalFormula.restype=c_bool
2825
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_IsExternalFormula, self.Ptr, row,column)
2826
+ return ret
2827
+
2828
+
2829
+ def IsRowVisible(self ,rowIndex:int)->bool:
2830
+ """
2831
+ <summary>
2832
+ Indicates whether row is visible.
2833
+ </summary>
2834
+ <param name="rowIndex">Row index.</param>
2835
+ <returns>true - visible, otherwise false.</returns>
2836
+ """
2837
+
2838
+ GetDllLibXls().XlsWorksheet_IsRowVisible.argtypes=[c_void_p ,c_int]
2839
+ GetDllLibXls().XlsWorksheet_IsRowVisible.restype=c_bool
2840
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_IsRowVisible, self.Ptr, rowIndex)
2841
+ return ret
2842
+
2843
+ @dispatch
2844
+
2845
+ def AutoFitColumn(self ,columnIndex:int):
2846
+ """
2847
+ <summary>
2848
+ Autofit the column width.
2849
+ <example>The following code illustrates how to Auto-fit the column:
2850
+ <code>
2851
+ //Create worksheet
2852
+ Workbook workbook = new Workbook();
2853
+ Worksheet worksheet = workbook.Worksheets[0];
2854
+ //Set text
2855
+ worksheet["A1"].Text = "Sample text in cell";
2856
+ //Set auto fit
2857
+ worksheet.AutoFitColumn(1);
2858
+ //Save to file
2859
+ workbook.SaveToFile("AutoFitColumn.xlsx");
2860
+ </code>
2861
+ </example>
2862
+ </summary>
2863
+ <param name="columnIndex">Column index.</param>
2864
+ """
2865
+
2866
+ GetDllLibXls().XlsWorksheet_AutoFitColumn.argtypes=[c_void_p ,c_int]
2867
+ CallCFunction(GetDllLibXls().XlsWorksheet_AutoFitColumn, self.Ptr, columnIndex)
2868
+
2869
+ @dispatch
2870
+
2871
+ def AutoFitColumn(self ,columnIndex:int,options:AutoFitterOptions):
2872
+ """
2873
+ <summary>
2874
+ Autofit the column width.
2875
+ </summary>
2876
+ <param name="columnIndex">Column index.</param>
2877
+ <param name="options">auto fit options</param>
2878
+ """
2879
+ intPtroptions:c_void_p = options.Ptr
2880
+
2881
+ GetDllLibXls().XlsWorksheet_AutoFitColumnCO.argtypes=[c_void_p ,c_int,c_void_p]
2882
+ CallCFunction(GetDllLibXls().XlsWorksheet_AutoFitColumnCO, self.Ptr, columnIndex,intPtroptions)
2883
+
2884
+ @dispatch
2885
+
2886
+ def AutoFitColumn(self ,columnIndex:int,firstRow:int,lastRow:int):
2887
+ """
2888
+ <summary>
2889
+ Autofit the column width.
2890
+ </summary>
2891
+ <param name="columnIndex">Column index.</param>
2892
+ <param name="firstRow">One-based index of the first row to be used for autofit operation.</param>
2893
+ <param name="lastRow">One-based index of the last row to be used for autofit operation.</param>
2894
+ """
2895
+
2896
+ GetDllLibXls().XlsWorksheet_AutoFitColumnCFL.argtypes=[c_void_p ,c_int,c_int,c_int]
2897
+ CallCFunction(GetDllLibXls().XlsWorksheet_AutoFitColumnCFL, self.Ptr, columnIndex,firstRow,lastRow)
2898
+
2899
+ @dispatch
2900
+
2901
+ def AutoFitColumn(self ,columnIndex:int,firstRow:int,lastRow:int,options:AutoFitterOptions):
2902
+ """
2903
+ <summary>
2904
+ Autofit the column width.
2905
+ </summary>
2906
+ <param name="columnIndex">Column index.</param>
2907
+ <param name="firstRow">One-based index of the first row to be used for autofit operation.</param>
2908
+ <param name="lastRow">One-based index of the last row to be used for autofit operation.</param>
2909
+ <param name="options">auto fit options</param>
2910
+ """
2911
+ intPtroptions:c_void_p = options.Ptr
2912
+
2913
+ GetDllLibXls().XlsWorksheet_AutoFitColumnCFLO.argtypes=[c_void_p ,c_int,c_int,c_int,c_void_p]
2914
+ CallCFunction(GetDllLibXls().XlsWorksheet_AutoFitColumnCFLO, self.Ptr, columnIndex,firstRow,lastRow,intPtroptions)
2915
+
2916
+ @dispatch
2917
+
2918
+ def AutoFitRow(self ,rowIndex:int):
2919
+ """
2920
+ <summary>
2921
+ Autofit the row height.
2922
+ <example>The following code illustrates how to Auto-fit the row:
2923
+ <code>
2924
+ //Create worksheet
2925
+ Workbook workbook = new Workbook();
2926
+ Worksheet worksheet = workbook.Worksheets[0];
2927
+ //Set text
2928
+ worksheet["C2"].Value = "Sample text";
2929
+ //Set Style
2930
+ CellStyle style = workbook.Styles.Add("CustomStyle");
2931
+ IFont font = style.Font;
2932
+ font.Size = 18;
2933
+ worksheet["C2"].Style = style;
2934
+ //Set auto fit
2935
+ worksheet.AutoFitRow(2);
2936
+ //Save to file
2937
+ workbook.SaveToFile("AutoFitRow.xlsx");
2938
+ </code>
2939
+ </example>
2940
+ </summary>
2941
+ <param name="rowIndex">Row index</param>
2942
+ """
2943
+
2944
+ GetDllLibXls().XlsWorksheet_AutoFitRow.argtypes=[c_void_p ,c_int]
2945
+ CallCFunction(GetDllLibXls().XlsWorksheet_AutoFitRow, self.Ptr, rowIndex)
2946
+
2947
+ @dispatch
2948
+
2949
+ def AutoFitRow(self ,rowIndex:int,firstColumn:int,lastColumn:int,options:AutoFitterOptions):
2950
+ """
2951
+ <summary>
2952
+ Autofit the row height.
2953
+ </summary>
2954
+ <param name="rowIndex">Row index</param>
2955
+ <param name="firstColumn">One-based index of the first column to be used for autofit operation.</param>
2956
+ <param name="lastColumn">One-based index of the last column to be used for autofit operation.</param>
2957
+ <param name="options">auto fit options</param>
2958
+ """
2959
+ intPtroptions:c_void_p = options.Ptr
2960
+
2961
+ GetDllLibXls().XlsWorksheet_AutoFitRowRFLO.argtypes=[c_void_p ,c_int,c_int,c_int,c_void_p]
2962
+ CallCFunction(GetDllLibXls().XlsWorksheet_AutoFitRowRFLO, self.Ptr, rowIndex,firstColumn,lastColumn,intPtroptions)
2963
+
2964
+ @dispatch
2965
+
2966
+ def AutoFitRow(self ,rowIndex:int,firstColumn:int,lastColumn:int,bRaiseEvents:bool):
2967
+ """
2968
+ <summary>
2969
+ Autofit the row height.
2970
+ </summary>
2971
+ <param name="rowIndex">Row index</param>
2972
+ <param name="firstColumn">One-based index of the first column to be used for autofit operation.</param>
2973
+ <param name="lastColumn">One-based index of the last column to be used for autofit operation.</param>
2974
+ <param name="bRaiseEvents">If true then raise events.</param>
2975
+ """
2976
+
2977
+ GetDllLibXls().XlsWorksheet_AutoFitRowRFLB.argtypes=[c_void_p ,c_int,c_int,c_int,c_bool]
2978
+ CallCFunction(GetDllLibXls().XlsWorksheet_AutoFitRowRFLB, self.Ptr, rowIndex,firstColumn,lastColumn,bRaiseEvents)
2979
+
2980
+ @dispatch
2981
+
2982
+ def AutoFitRow(self ,rowIndex:int,firstColumn:int,lastColumn:int,bRaiseEvents:bool,options:AutoFitterOptions):
2983
+ """
2984
+ <summary>
2985
+ Autofit the row height.
2986
+ </summary>
2987
+ <param name="rowIndex">Row index</param>
2988
+ <param name="firstColumn">One-based index of the first column to be used for autofit operation.</param>
2989
+ <param name="lastColumn">One-based index of the last column to be used for autofit operation.</param>
2990
+ <param name="bRaiseEvents">If true then raise events.</param>
2991
+ <param name="options">auto fit options</param>
2992
+ """
2993
+ intPtroptions:c_void_p = options.Ptr
2994
+
2995
+ GetDllLibXls().XlsWorksheet_AutoFitRowRFLBO.argtypes=[c_void_p ,c_int,c_int,c_int,c_bool,c_void_p]
2996
+ CallCFunction(GetDllLibXls().XlsWorksheet_AutoFitRowRFLBO, self.Ptr, rowIndex,firstColumn,lastColumn,bRaiseEvents,intPtroptions)
2997
+
2998
+
2999
+ def CheckExistence(self ,row:int,column:int)->bool:
3000
+ """
3001
+ <summary>
3002
+ Indicates whether cell has been initialized.
3003
+ <example>The following code illustrates if the cells was initialized or accessed by the user:
3004
+ <code>
3005
+ //Create worksheet
3006
+ Workbook workbook = new Workbook();
3007
+ Worksheet worksheet = workbook.Worksheets[0];
3008
+ //Set text
3009
+ worksheet.Range["A1"].Text = "Hello";
3010
+ //Check the cell.Output will be true.
3011
+ Console.Write(worksheet.CheckExistence(1, 1));
3012
+ //Save to file
3013
+ workbook.SaveToFile("CheckExistence.xlsx");
3014
+ </code>
3015
+ </example>
3016
+ </summary>
3017
+ <param name="row">Row index.</param>
3018
+ <param name="column">Column index.</param>
3019
+ <returns>Value indicating whether the cell was initialized or accessed by the user.</returns>
3020
+ """
3021
+
3022
+ GetDllLibXls().XlsWorksheet_CheckExistence.argtypes=[c_void_p ,c_int,c_int]
3023
+ GetDllLibXls().XlsWorksheet_CheckExistence.restype=c_bool
3024
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_CheckExistence, self.Ptr, row,column)
3025
+ return ret
3026
+
3027
+ def Clear(self):
3028
+ """
3029
+ <summary>
3030
+ Clears data the worksheet.
3031
+ </summary>
3032
+ """
3033
+ GetDllLibXls().XlsWorksheet_Clear.argtypes=[c_void_p]
3034
+ CallCFunction(GetDllLibXls().XlsWorksheet_Clear, self.Ptr)
3035
+
3036
+ def ClearData(self):
3037
+ """
3038
+ <summary>
3039
+ Clears contents of a range.
3040
+ </summary>
3041
+ """
3042
+ GetDllLibXls().XlsWorksheet_ClearData.argtypes=[c_void_p]
3043
+ CallCFunction(GetDllLibXls().XlsWorksheet_ClearData, self.Ptr)
3044
+
3045
+
3046
+ def ColumnWidthToPixels(self ,widthInChars:float)->int:
3047
+ """
3048
+
3049
+ """
3050
+
3051
+ GetDllLibXls().XlsWorksheet_ColumnWidthToPixels.argtypes=[c_void_p ,c_double]
3052
+ GetDllLibXls().XlsWorksheet_ColumnWidthToPixels.restype=c_int
3053
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_ColumnWidthToPixels, self.Ptr, widthInChars)
3054
+ return ret
3055
+
3056
+ #
3057
+ # def CopyFrom(self ,worksheet:'XlsWorksheet',hashStyleNames:'Dictionary2',hashWorksheetNames:'Dictionary2',dicFontIndexes:'Dictionary2',flags:'WorksheetCopyType',hashExtFormatIndexes:'Dictionary2',hashNameIndexes:'Dictionary2',hashExternSheets:'Dictionary2'):
3058
+ # """
3059
+ #
3060
+ # """
3061
+ # intPtrworksheet:c_void_p = worksheet.Ptr
3062
+ # intPtrhashStyleNames:c_void_p = hashStyleNames.Ptr
3063
+ # intPtrhashWorksheetNames:c_void_p = hashWorksheetNames.Ptr
3064
+ # intPtrdicFontIndexes:c_void_p = dicFontIndexes.Ptr
3065
+ # enumflags:c_int = flags.value
3066
+ # intPtrhashExtFormatIndexes:c_void_p = hashExtFormatIndexes.Ptr
3067
+ # intPtrhashNameIndexes:c_void_p = hashNameIndexes.Ptr
3068
+ # intPtrhashExternSheets:c_void_p = hashExternSheets.Ptr
3069
+ #
3070
+ # GetDllLibXls().XlsWorksheet_CopyFrom.argtypes=[c_void_p ,c_void_p,c_void_p,c_void_p,c_void_p,c_int,c_void_p,c_void_p,c_void_p]
3071
+ # CallCFunction(GetDllLibXls().XlsWorksheet_CopyFrom, self.Ptr, intPtrworksheet,intPtrhashStyleNames,intPtrhashWorksheetNames,intPtrdicFontIndexes,enumflags,intPtrhashExtFormatIndexes,intPtrhashNameIndexes,intPtrhashExternSheets)
3072
+
3073
+
3074
+
3075
+ def GetCellType(self ,row:int,column:int,bNeedFormulaSubType:bool)->'TRangeValueType':
3076
+ """
3077
+ <summary>
3078
+ Gets cell type from current column.
3079
+ </summary>
3080
+ <param name="row">Indicates row.</param>
3081
+ <param name="column">Indicates column.</param>
3082
+ <param name="bNeedFormulaSubType">Indicates is need to indified formula sub type.</param>
3083
+ <returns>Returns cell type.</returns>
3084
+ """
3085
+
3086
+ GetDllLibXls().XlsWorksheet_GetCellType.argtypes=[c_void_p ,c_int,c_int,c_bool]
3087
+ GetDllLibXls().XlsWorksheet_GetCellType.restype=c_int
3088
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_GetCellType, self.Ptr, row,column,bNeedFormulaSubType)
3089
+ objwraped = TRangeValueType(ret)
3090
+ return objwraped
3091
+
3092
+ #
3093
+ # def GetClonedObject(self ,hashNewNames:'Dictionary2',book:'XlsWorkbook')->'IInternalWorksheet':
3094
+ # """
3095
+ #
3096
+ # """
3097
+ # intPtrhashNewNames:c_void_p = hashNewNames.Ptr
3098
+ # intPtrbook:c_void_p = book.Ptr
3099
+ #
3100
+ # GetDllLibXls().XlsWorksheet_GetClonedObject.argtypes=[c_void_p ,c_void_p,c_void_p]
3101
+ # GetDllLibXls().XlsWorksheet_GetClonedObject.restype=c_void_p
3102
+ # intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GetClonedObject, self.Ptr, intPtrhashNewNames,intPtrbook)
3103
+ # ret = None if intPtr==None else IInternalWorksheet(intPtr)
3104
+ # return ret
3105
+ #
3106
+
3107
+
3108
+ @dispatch
3109
+
3110
+ def GetStringValue(self ,cellIndex:int)->str:
3111
+ """
3112
+ <summary>
3113
+ Returns string value corresponding to the cell.
3114
+ </summary>
3115
+ <param name="iCellIndex">Cell index to get value from.</param>
3116
+ <returns>String contained by the cell.</returns>
3117
+ """
3118
+
3119
+ GetDllLibXls().XlsWorksheet_GetStringValue.argtypes=[c_void_p ,c_long]
3120
+ GetDllLibXls().XlsWorksheet_GetStringValue.restype=c_void_p
3121
+ ret = PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetStringValue, self.Ptr, cellIndex))
3122
+ return ret
3123
+
3124
+
3125
+ @dispatch
3126
+
3127
+ def GetStringValue(self ,row:int,column:int)->str:
3128
+ """
3129
+ <summary>
3130
+ Returns string value corresponding to the cell.
3131
+ </summary>
3132
+ <param name="row">Represents row index.</param>
3133
+ <param name="column">Represents column index.</param>
3134
+ <returns>String contained by the cell.</returns>
3135
+ """
3136
+
3137
+ GetDllLibXls().XlsWorksheet_GetStringValueRC.argtypes=[c_void_p ,c_int,c_int]
3138
+ GetDllLibXls().XlsWorksheet_GetStringValueRC.restype=c_void_p
3139
+ ret = PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetStringValueRC, self.Ptr, row,column))
3140
+ return ret
3141
+
3142
+
3143
+ @dispatch
3144
+
3145
+ def GetTextObject(self ,cellIndex:int)->SpireObject:
3146
+ """
3147
+ <summary>
3148
+ Returns TextWithFormat object corresponding to the specified cell.
3149
+ </summary>
3150
+ <param name="cellIndex">Cell index.</param>
3151
+ <returns>Object corresponding to the specified cell.</returns>
3152
+ """
3153
+
3154
+ GetDllLibXls().XlsWorksheet_GetTextObject.argtypes=[c_void_p ,c_long]
3155
+ GetDllLibXls().XlsWorksheet_GetTextObject.restype=c_void_p
3156
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GetTextObject, self.Ptr, cellIndex)
3157
+ ret = None if intPtr==None else SpireObject(intPtr)
3158
+ return ret
3159
+
3160
+
3161
+ @dispatch
3162
+
3163
+ def GetTextObject(self ,row:int,column:int)->SpireObject:
3164
+ """
3165
+ <summary>
3166
+ Returns TextWithFormat object corresponding to the specified cell.
3167
+ </summary>
3168
+ <param name="row">Represents row index.</param>
3169
+ <param name="column">Represents column index.</param>
3170
+ <returns>Object corresponding to the specified cell.</returns>
3171
+ """
3172
+
3173
+ GetDllLibXls().XlsWorksheet_GetTextObjectRC.argtypes=[c_void_p ,c_int,c_int]
3174
+ GetDllLibXls().XlsWorksheet_GetTextObjectRC.restype=c_void_p
3175
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GetTextObjectRC, self.Ptr, row,column)
3176
+ ret = None if intPtr==None else SpireObject(intPtr)
3177
+ return ret
3178
+
3179
+
3180
+
3181
+ def HasArrayFormula(self ,cellIndex:int)->bool:
3182
+ """
3183
+ <summary>
3184
+ Indicates whether cell contains array-entered formula.
3185
+ </summary>
3186
+ <param name="cellIndex">cell index.</param>
3187
+ <returns></returns>
3188
+ """
3189
+
3190
+ GetDllLibXls().XlsWorksheet_HasArrayFormula.argtypes=[c_void_p ,c_long]
3191
+ GetDllLibXls().XlsWorksheet_HasArrayFormula.restype=c_bool
3192
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_HasArrayFormula, self.Ptr, cellIndex)
3193
+ return ret
3194
+
3195
+
3196
+ def HasArrayFormulaRecord(self ,row:int,column:int)->bool:
3197
+ """
3198
+ <summary>
3199
+ Indicates is has array formula.
3200
+ </summary>
3201
+ <param name="row">Represents row index.</param>
3202
+ <param name="column">Represents column index.</param>
3203
+ <returns>Indicates is contain array formula record.</returns>
3204
+ """
3205
+
3206
+ GetDllLibXls().XlsWorksheet_HasArrayFormulaRecord.argtypes=[c_void_p ,c_int,c_int]
3207
+ GetDllLibXls().XlsWorksheet_HasArrayFormulaRecord.restype=c_bool
3208
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_HasArrayFormulaRecord, self.Ptr, row,column)
3209
+ return ret
3210
+
3211
+
3212
+ def InsertRange(self ,rowIndex:int,columnIndex:int,rowCount:int,columnCount:int,moveOptions:'InsertMoveOption',insertOptions:'InsertOptionsType')->'IXLSRange':
3213
+ """
3214
+ <summary>
3215
+ Insert a cell range into worksheet
3216
+ </summary>
3217
+ <param name="rowIndex">the cell range first row index</param>
3218
+ <param name="columnIndex">the cell range first column index</param>
3219
+ <param name="rowCount">the number of rows</param>
3220
+ <param name="columnCount">the number of columns</param>
3221
+ <param name="moveOptions">Insert options.</param>
3222
+ <param name="insertOptions">Move the cell on the right to right or Move the cell below down</param>
3223
+ <returns>return the range that insert into worksheet</returns>
3224
+ """
3225
+ enummoveOptions:c_int = moveOptions.value
3226
+ enuminsertOptions:c_int = insertOptions.value
3227
+
3228
+ GetDllLibXls().XlsWorksheet_InsertRange.argtypes=[c_void_p ,c_int,c_int,c_int,c_int,c_int,c_int]
3229
+ GetDllLibXls().XlsWorksheet_InsertRange.restype=c_void_p
3230
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_InsertRange, self.Ptr, rowIndex,columnIndex,rowCount,columnCount,enummoveOptions,enuminsertOptions)
3231
+ ret = None if intPtr==None else XlsRange(intPtr)
3232
+ return ret
3233
+
3234
+
3235
+
3236
+ def InsertCutRange(self ,cutRange:'IXLSRange',rowIndex:int,colIndex:int,moveOptions:'InsertMoveOption'):
3237
+ """
3238
+ <summary>
3239
+ Insert cut range into worksheet at specified position.
3240
+ </summary>
3241
+ <param name="cutRange">the cut range</param>
3242
+ <param name="rowIndex">the dest range first row index</param>
3243
+ <param name="colIndex">the dest range first column index</param>
3244
+ <param name="moveOptions">insert options.</param>
3245
+ """
3246
+ intPtrcutRange:c_void_p = cutRange.Ptr
3247
+ enummoveOptions:c_int = moveOptions.value
3248
+
3249
+ GetDllLibXls().XlsWorksheet_InsertCutRange.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int]
3250
+ CallCFunction(GetDllLibXls().XlsWorksheet_InsertCutRange, self.Ptr, intPtrcutRange,rowIndex,colIndex,enummoveOptions)
3251
+
3252
+ @dispatch
3253
+
3254
+ def IsArrayFormula(self ,cellIndex:int)->bool:
3255
+ """
3256
+
3257
+ """
3258
+
3259
+ GetDllLibXls().XlsWorksheet_IsArrayFormula.argtypes=[c_void_p ,c_long]
3260
+ GetDllLibXls().XlsWorksheet_IsArrayFormula.restype=c_bool
3261
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_IsArrayFormula, self.Ptr, cellIndex)
3262
+ return ret
3263
+
3264
+ @dispatch
3265
+
3266
+ def IsArrayFormula(self ,row:int,column:int)->bool:
3267
+ """
3268
+ <summary>
3269
+ Indicates whether cell contains array-entered formula.
3270
+ </summary>
3271
+ <param name="row">Represents row index.</param>
3272
+ <param name="column">Represents column index.</param>
3273
+ <returns>True if cell contains array-entered formula.</returns>
3274
+ """
3275
+
3276
+ GetDllLibXls().XlsWorksheet_IsArrayFormulaRC.argtypes=[c_void_p ,c_int,c_int]
3277
+ GetDllLibXls().XlsWorksheet_IsArrayFormulaRC.restype=c_bool
3278
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_IsArrayFormulaRC, self.Ptr, row,column)
3279
+ return ret
3280
+
3281
+ def ReparseFormula(self):
3282
+ """
3283
+
3284
+ """
3285
+ GetDllLibXls().XlsWorksheet_ReparseFormula.argtypes=[c_void_p]
3286
+ CallCFunction(GetDllLibXls().XlsWorksheet_ReparseFormula, self.Ptr)
3287
+
3288
+ def CopyToClipboard(self):
3289
+ """
3290
+
3291
+ """
3292
+ GetDllLibXls().XlsWorksheet_CopyToClipboard.argtypes=[c_void_p]
3293
+ CallCFunction(GetDllLibXls().XlsWorksheet_CopyToClipboard, self.Ptr)
3294
+
3295
+
3296
+ def CreateRanges(self ,ranges:'ListCellRanges')->'XlsRangesCollection':
3297
+ """
3298
+
3299
+ """
3300
+ #arrayranges:ArrayTyperanges = ""
3301
+ countranges = len(ranges)
3302
+ ArrayTyperanges = c_void_p * countranges
3303
+ arrayranges = ArrayTyperanges()
3304
+ for i in range(0, countranges):
3305
+ arrayranges[i] = ranges[i].Ptr
3306
+
3307
+
3308
+ GetDllLibXls().XlsWorksheet_CreateRanges.argtypes=[c_void_p ,ArrayTyperanges, c_int]
3309
+ GetDllLibXls().XlsWorksheet_CreateRanges.restype=c_void_p
3310
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_CreateRanges, self.Ptr, arrayranges, countranges)
3311
+ ret = None if intPtr==None else XlsRangesCollection(intPtr)
3312
+ return ret
3313
+
3314
+
3315
+
3316
+
3317
+ def CreateNamedRanges(self ,namedRange:str,referRange:str,vertical:bool):
3318
+ """
3319
+
3320
+ """
3321
+
3322
+ GetDllLibXls().XlsWorksheet_CreateNamedRanges.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool]
3323
+ CallCFunction(GetDllLibXls().XlsWorksheet_CreateNamedRanges, self.Ptr, namedRange,referRange,vertical)
3324
+
3325
+ @dispatch
3326
+
3327
+ def DeleteColumn(self ,index:int):
3328
+ """
3329
+ <summary>
3330
+ Deletes a column.
3331
+ </summary>
3332
+ <param name="columnIndex">Column index to remove..</param>
3333
+ """
3334
+
3335
+ GetDllLibXls().XlsWorksheet_DeleteColumn.argtypes=[c_void_p ,c_int]
3336
+ CallCFunction(GetDllLibXls().XlsWorksheet_DeleteColumn, self.Ptr, index)
3337
+
3338
+ @dispatch
3339
+
3340
+ def DeleteColumn(self ,index:int,count:int):
3341
+ """
3342
+ <summary>
3343
+ Removes specified column.
3344
+ </summary>
3345
+ <param name="index">One-based column index to remove.</param>
3346
+ <param name="count">Number of columns to remove.</param>
3347
+ """
3348
+
3349
+ GetDllLibXls().XlsWorksheet_DeleteColumnIC.argtypes=[c_void_p ,c_int,c_int]
3350
+ CallCFunction(GetDllLibXls().XlsWorksheet_DeleteColumnIC, self.Ptr, index,count)
3351
+
3352
+ @dispatch
3353
+
3354
+ def DeleteRow(self ,index:int):
3355
+ """
3356
+ <summary>
3357
+ Delete a row.
3358
+ </summary>
3359
+ <param name="index">Row index to remove</param>
3360
+ """
3361
+
3362
+ GetDllLibXls().XlsWorksheet_DeleteRow.argtypes=[c_void_p ,c_int]
3363
+ CallCFunction(GetDllLibXls().XlsWorksheet_DeleteRow, self.Ptr, index)
3364
+
3365
+ @dispatch
3366
+
3367
+ def DeleteRow(self ,index:int,count:int):
3368
+ """
3369
+ <summary>
3370
+ Removes specified row.
3371
+ </summary>
3372
+ <param name="index">One-based row index to remove</param>
3373
+ <param name="count">Number of rows to delete.</param>
3374
+ """
3375
+
3376
+ GetDllLibXls().XlsWorksheet_DeleteRowIC.argtypes=[c_void_p ,c_int,c_int]
3377
+ CallCFunction(GetDllLibXls().XlsWorksheet_DeleteRowIC, self.Ptr, index,count)
3378
+
3379
+ @dispatch
3380
+
3381
+ def InsertColumn(self ,columnIndex:int):
3382
+ """
3383
+ <summary>
3384
+ Inserts a new column into the worksheet.
3385
+ </summary>
3386
+ <param name="columnIndex">Column index</param>
3387
+ """
3388
+
3389
+ GetDllLibXls().XlsWorksheet_InsertColumn.argtypes=[c_void_p ,c_int]
3390
+ CallCFunction(GetDllLibXls().XlsWorksheet_InsertColumn, self.Ptr, columnIndex)
3391
+
3392
+ @dispatch
3393
+
3394
+ def InsertColumn(self ,columnIndex:int,columnCount:int,insertOptions:InsertOptionsType):
3395
+ """
3396
+
3397
+ """
3398
+ enuminsertOptions:c_int = insertOptions.value
3399
+
3400
+ GetDllLibXls().XlsWorksheet_InsertColumnCCI.argtypes=[c_void_p ,c_int,c_int,c_int]
3401
+ CallCFunction(GetDllLibXls().XlsWorksheet_InsertColumnCCI, self.Ptr, columnIndex,columnCount,enuminsertOptions)
3402
+
3403
+ @dispatch
3404
+
3405
+ def InsertColumn(self ,columnIndex:int,columnCount:int):
3406
+ """
3407
+ <summary>
3408
+ Inserts specified number column into the worksheet.
3409
+ </summary>
3410
+ <param name="columnIndex">Column index</param>
3411
+ <param name="columnCount">Number of columns to insert.</param>
3412
+ """
3413
+
3414
+ GetDllLibXls().XlsWorksheet_InsertColumnCC.argtypes=[c_void_p ,c_int,c_int]
3415
+ CallCFunction(GetDllLibXls().XlsWorksheet_InsertColumnCC, self.Ptr, columnIndex,columnCount)
3416
+
3417
+ @dispatch
3418
+
3419
+ def InsertRow(self ,rowIndex:int):
3420
+ """
3421
+ <summary>
3422
+ Inserts a new row into the worksheet.
3423
+ </summary>
3424
+ <param name="rowIndex">Index at which new row should be inserted</param>
3425
+ """
3426
+
3427
+ GetDllLibXls().XlsWorksheet_InsertRow.argtypes=[c_void_p ,c_int]
3428
+ CallCFunction(GetDllLibXls().XlsWorksheet_InsertRow, self.Ptr, rowIndex)
3429
+
3430
+ #
3431
+ # def ExportDataTable(self)->'DataTable':
3432
+ # """
3433
+ #
3434
+ # """
3435
+ # GetDllLibXls().XlsWorksheet_ExportDataTable.argtypes=[c_void_p]
3436
+ # GetDllLibXls().XlsWorksheet_ExportDataTable.restype=c_void_p
3437
+ # intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_ExportDataTable, self.Ptr)
3438
+ # ret = None if intPtr==None else DataTable(intPtr)
3439
+ # return ret
3440
+ #
3441
+
3442
+
3443
+ @dispatch
3444
+
3445
+ def InsertRow(self ,rowIndex:int,rowCount:int,insertOptions:InsertOptionsType):
3446
+ """
3447
+
3448
+ """
3449
+ enuminsertOptions:c_int = insertOptions.value
3450
+
3451
+ GetDllLibXls().XlsWorksheet_InsertRowRRI.argtypes=[c_void_p ,c_int,c_int,c_int]
3452
+ CallCFunction(GetDllLibXls().XlsWorksheet_InsertRowRRI, self.Ptr, rowIndex,rowCount,enuminsertOptions)
3453
+
3454
+ @dispatch
3455
+
3456
+ def InsertRow(self ,rowIndex:int,rowCount:int):
3457
+ """
3458
+ <summary>
3459
+ Inserts multiple rows into the worksheet.
3460
+ </summary>
3461
+ <param name="rowIndex">Index at which new row should be inserted</param>
3462
+ <param name="rowCount">Number of rows to be inserted. </param>
3463
+ """
3464
+
3465
+ GetDllLibXls().XlsWorksheet_InsertRowRR.argtypes=[c_void_p ,c_int,c_int]
3466
+ CallCFunction(GetDllLibXls().XlsWorksheet_InsertRowRR, self.Ptr, rowIndex,rowCount)
3467
+
3468
+
3469
+ def GetBoolean(self ,row:int,column:int)->bool:
3470
+ """
3471
+ <summary>
3472
+ Gets bool value from cell.
3473
+ </summary>
3474
+ <param name="row">Represents row index.</param>
3475
+ <param name="column">Represents column index.</param>
3476
+ <returns>Returns found bool value. If cannot found returns false.</returns>
3477
+ """
3478
+
3479
+ GetDllLibXls().XlsWorksheet_GetBoolean.argtypes=[c_void_p ,c_int,c_int]
3480
+ GetDllLibXls().XlsWorksheet_GetBoolean.restype=c_bool
3481
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_GetBoolean, self.Ptr, row,column)
3482
+ return ret
3483
+
3484
+
3485
+ def GetColumnWidth(self ,columnIndex:int)->float:
3486
+ """
3487
+ <summary>
3488
+ Gets the width of the specified column
3489
+ </summary>
3490
+ <param name="columnIndex">Column index</param>
3491
+ <returns>Width of column</returns>
3492
+ """
3493
+
3494
+ GetDllLibXls().XlsWorksheet_GetColumnWidth.argtypes=[c_void_p ,c_int]
3495
+ GetDllLibXls().XlsWorksheet_GetColumnWidth.restype=c_double
3496
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_GetColumnWidth, self.Ptr, columnIndex)
3497
+ return ret
3498
+
3499
+
3500
+ def GetColumnWidthPixels(self ,columnIndex:int)->int:
3501
+ """
3502
+ <summary>
3503
+ Gets the width of the specified column, in units of pixel.
3504
+ <example>The following code illustrates how to get the column width for a particular column:
3505
+ <code>
3506
+ //Create worksheet
3507
+ Workbook workbook = new Workbook();
3508
+ Worksheet worksheet = workbook.Worksheets[0];
3509
+ //Set text
3510
+ worksheet["A1"].Text = "Sample text in cell";
3511
+ //Set auto fit
3512
+ worksheet.AutoFitColumn(1);
3513
+ //Get column width
3514
+ Console.WriteLine(worksheet.GetColumnWidthPixels(1));
3515
+ //Save to file
3516
+ workbook.SaveToFile("UsedRange.xlsx");
3517
+ </code>
3518
+ </example>
3519
+ </summary>
3520
+ <param name="columnIndex">Column index.</param>
3521
+ <returns>Width of column</returns>
3522
+ """
3523
+
3524
+ GetDllLibXls().XlsWorksheet_GetColumnWidthPixels.argtypes=[c_void_p ,c_int]
3525
+ GetDllLibXls().XlsWorksheet_GetColumnWidthPixels.restype=c_int
3526
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_GetColumnWidthPixels, self.Ptr, columnIndex)
3527
+ return ret
3528
+
3529
+
3530
+ def GetDefaultColumnStyle(self ,columnIndex:int)->'IStyle':
3531
+ """
3532
+
3533
+ """
3534
+
3535
+ GetDllLibXls().XlsWorksheet_GetDefaultColumnStyle.argtypes=[c_void_p ,c_int]
3536
+ GetDllLibXls().XlsWorksheet_GetDefaultColumnStyle.restype=c_void_p
3537
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GetDefaultColumnStyle, self.Ptr, columnIndex)
3538
+ ret = None if intPtr==None else CellStyle(intPtr)
3539
+ return ret
3540
+
3541
+
3542
+
3543
+ def add_CellValueChanged(self ,value:'CellValueChangedEventHandler'):
3544
+ """
3545
+
3546
+ """
3547
+ intPtrvalue:c_void_p = value.Ptr
3548
+
3549
+ GetDllLibXls().XlsWorksheet_add_CellValueChanged.argtypes=[c_void_p ,c_void_p]
3550
+ CallCFunction(GetDllLibXls().XlsWorksheet_add_CellValueChanged, self.Ptr, intPtrvalue)
3551
+
3552
+
3553
+ def remove_CellValueChanged(self ,value:'CellValueChangedEventHandler'):
3554
+ """
3555
+
3556
+ """
3557
+ intPtrvalue:c_void_p = value.Ptr
3558
+
3559
+ GetDllLibXls().XlsWorksheet_remove_CellValueChanged.argtypes=[c_void_p ,c_void_p]
3560
+ CallCFunction(GetDllLibXls().XlsWorksheet_remove_CellValueChanged, self.Ptr, intPtrvalue)
3561
+
3562
+ @property
3563
+ def Copying(self)->bool:
3564
+ """
3565
+
3566
+ """
3567
+ GetDllLibXls().XlsWorksheet_get_Copying.argtypes=[c_void_p]
3568
+ GetDllLibXls().XlsWorksheet_get_Copying.restype=c_bool
3569
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_Copying, self.Ptr)
3570
+ return ret
3571
+
3572
+ @Copying.setter
3573
+ def Copying(self, value:bool):
3574
+ GetDllLibXls().XlsWorksheet_set_Copying.argtypes=[c_void_p, c_bool]
3575
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_Copying, self.Ptr, value)
3576
+
3577
+ @property
3578
+
3579
+ def OleObjects(self)->'IOleObjects':
3580
+ """
3581
+ <summary>
3582
+ Gets the OLE objects.
3583
+ <example>The following code illustrates how to access the IListObjects collection in the worksheet to add a new IOleObject:
3584
+ <code>
3585
+ //Create worksheet
3586
+ Workbook workbook = new Workbook();
3587
+ Worksheet worksheet = workbook.Worksheets[0];
3588
+ //Create image stream
3589
+ System.Drawing.Image image = System.Drawing.Image.FromFile("image.png");
3590
+ //Add ole object
3591
+ IOleObject oleObject = worksheet.OleObjects.Add("Shapes.xlsx", image, OleLinkType.Embed);
3592
+ //Save to file
3593
+ workbook.SaveToFile("OLEObjects.xlsx");
3594
+ </code>
3595
+ </example>
3596
+ </summary>
3597
+ <value>The OLE objects.</value>
3598
+ """
3599
+ GetDllLibXls().XlsWorksheet_get_OleObjects.argtypes=[c_void_p]
3600
+ GetDllLibXls().XlsWorksheet_get_OleObjects.restype=c_void_p
3601
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_OleObjects, self.Ptr)
3602
+ ret = None if intPtr==None else IOleObjects(intPtr)
3603
+ return ret
3604
+
3605
+
3606
+ @property
3607
+
3608
+ def AutoFilters(self)->'IAutoFilters':
3609
+ """
3610
+
3611
+ """
3612
+ GetDllLibXls().XlsWorksheet_get_AutoFilters.argtypes=[c_void_p]
3613
+ GetDllLibXls().XlsWorksheet_get_AutoFilters.restype=c_void_p
3614
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_AutoFilters, self.Ptr)
3615
+ ret = None if intPtr==None else IAutoFilters(intPtr)
3616
+ return ret
3617
+
3618
+
3619
+ @property
3620
+
3621
+ def Cells(self)->ListXlsRanges:
3622
+ """
3623
+
3624
+ """
3625
+ GetDllLibXls().XlsWorksheet_get_Cells.argtypes=[c_void_p]
3626
+ GetDllLibXls().XlsWorksheet_get_Cells.restype=c_void_p
3627
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_Cells, self.Ptr)
3628
+ ret = None if intPtr==None else ListXlsRanges(intPtr)
3629
+ return ret
3630
+
3631
+
3632
+ # @property
3633
+ #
3634
+ # def CellList(self)->'List1':
3635
+ # """
3636
+ #
3637
+ # """
3638
+ # GetDllLibXls().XlsWorksheet_get_CellList.argtypes=[c_void_p]
3639
+ # GetDllLibXls().XlsWorksheet_get_CellList.restype=c_void_p
3640
+ # intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_CellList, self.Ptr)
3641
+ # ret = None if intPtr==None else List1(intPtr)
3642
+ # return ret
3643
+ #
3644
+
3645
+
3646
+ @property
3647
+ def DisplayPageBreaks(self)->bool:
3648
+ """
3649
+ <summary>
3650
+ True if page breaks (both automatic and manual) on the specified
3651
+ worksheet are displayed.
3652
+ </summary>
3653
+ """
3654
+ GetDllLibXls().XlsWorksheet_get_DisplayPageBreaks.argtypes=[c_void_p]
3655
+ GetDllLibXls().XlsWorksheet_get_DisplayPageBreaks.restype=c_bool
3656
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_DisplayPageBreaks, self.Ptr)
3657
+ return ret
3658
+
3659
+ @DisplayPageBreaks.setter
3660
+ def DisplayPageBreaks(self, value:bool):
3661
+ GetDllLibXls().XlsWorksheet_set_DisplayPageBreaks.argtypes=[c_void_p, c_bool]
3662
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_DisplayPageBreaks, self.Ptr, value)
3663
+
3664
+ @property
3665
+
3666
+ def MergedCells(self)->ListXlsRanges:
3667
+ """
3668
+
3669
+ """
3670
+ GetDllLibXls().XlsWorksheet_get_MergedCells.argtypes=[c_void_p]
3671
+ GetDllLibXls().XlsWorksheet_get_MergedCells.restype=c_void_p
3672
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_MergedCells, self.Ptr)
3673
+ ret = None if intPtr==None else ListXlsRanges(intPtr)
3674
+ return ret
3675
+
3676
+
3677
+ @property
3678
+
3679
+ def Names(self)->'INameRanges':
3680
+ """
3681
+ <summary>
3682
+ Name range used by macros to access to workbook items.
3683
+ </summary>
3684
+ """
3685
+ GetDllLibXls().XlsWorksheet_get_Names.argtypes=[c_void_p]
3686
+ GetDllLibXls().XlsWorksheet_get_Names.restype=c_void_p
3687
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_Names, self.Ptr)
3688
+ ret = None if intPtr==None else INameRanges(intPtr)
3689
+ return ret
3690
+
3691
+
3692
+ @property
3693
+
3694
+ def PageSetup(self)->'IPageSetup':
3695
+ """
3696
+
3697
+ """
3698
+ GetDllLibXls().XlsWorksheet_get_PageSetup.argtypes=[c_void_p]
3699
+ GetDllLibXls().XlsWorksheet_get_PageSetup.restype=c_void_p
3700
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_PageSetup, self.Ptr)
3701
+ ret = None if intPtr==None else XlsPageSetup(intPtr)
3702
+ return ret
3703
+
3704
+
3705
+ @property
3706
+
3707
+ def MaxDisplayRange(self)->'IXLSRange':
3708
+ """
3709
+
3710
+ """
3711
+ GetDllLibXls().XlsWorksheet_get_MaxDisplayRange.argtypes=[c_void_p]
3712
+ GetDllLibXls().XlsWorksheet_get_MaxDisplayRange.restype=c_void_p
3713
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_MaxDisplayRange, self.Ptr)
3714
+ ret = None if intPtr==None else XlsRange(intPtr)
3715
+ return ret
3716
+
3717
+
3718
+ @property
3719
+
3720
+ def AllocatedRange(self)->'IXLSRange':
3721
+ """
3722
+
3723
+ """
3724
+ GetDllLibXls().XlsWorksheet_get_AllocatedRange.argtypes=[c_void_p]
3725
+ GetDllLibXls().XlsWorksheet_get_AllocatedRange.restype=c_void_p
3726
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_AllocatedRange, self.Ptr)
3727
+ ret = None if intPtr==None else XlsRange(intPtr)
3728
+ return ret
3729
+
3730
+
3731
+ @property
3732
+ def AllocatedRangeIncludesFormatting(self)->bool:
3733
+ """
3734
+
3735
+ """
3736
+ GetDllLibXls().XlsWorksheet_get_AllocatedRangeIncludesFormatting.argtypes=[c_void_p]
3737
+ GetDllLibXls().XlsWorksheet_get_AllocatedRangeIncludesFormatting.restype=c_bool
3738
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_AllocatedRangeIncludesFormatting, self.Ptr)
3739
+ return ret
3740
+
3741
+ @AllocatedRangeIncludesFormatting.setter
3742
+ def AllocatedRangeIncludesFormatting(self, value:bool):
3743
+ GetDllLibXls().XlsWorksheet_set_AllocatedRangeIncludesFormatting.argtypes=[c_void_p, c_bool]
3744
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_AllocatedRangeIncludesFormatting, self.Ptr, value)
3745
+
3746
+ @property
3747
+
3748
+ def Rows(self)->ListXlsRanges:
3749
+ """
3750
+
3751
+ """
3752
+ GetDllLibXls().XlsWorksheet_get_Rows.argtypes=[c_void_p]
3753
+ GetDllLibXls().XlsWorksheet_get_Rows.restype=c_void_p
3754
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_Rows, self.Ptr)
3755
+ ret = None if intPtr==None else ListXlsRanges(intPtr)
3756
+ return ret
3757
+
3758
+
3759
+ @property
3760
+
3761
+ def Columns(self)->ListXlsRanges:
3762
+ """
3763
+
3764
+ """
3765
+ GetDllLibXls().XlsWorksheet_get_Columns.argtypes=[c_void_p]
3766
+ GetDllLibXls().XlsWorksheet_get_Columns.restype=c_void_p
3767
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_Columns, self.Ptr)
3768
+ ret = None if intPtr==None else ListXlsRanges(intPtr)
3769
+ return ret
3770
+
3771
+
3772
+ @property
3773
+
3774
+ def ConditionalFormats(self)->'IConditionalFormatsCollection':
3775
+ """
3776
+ <summary>
3777
+ Returns collection with all conditional formats in the worksheet. Read-only.
3778
+ </summary>
3779
+ """
3780
+ GetDllLibXls().XlsWorksheet_get_ConditionalFormats.argtypes=[c_void_p]
3781
+ GetDllLibXls().XlsWorksheet_get_ConditionalFormats.restype=c_void_p
3782
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_ConditionalFormats, self.Ptr)
3783
+ ret = None if intPtr==None else XlsWorksheetConditionalFormats(intPtr)
3784
+ return ret
3785
+
3786
+
3787
+ @property
3788
+ def DefaultRowHeight(self)->float:
3789
+ """
3790
+ <summary>
3791
+ Gets or sets default height of all the rows in the worksheet,
3792
+ in points.Read/write Double.
3793
+ <example>The following code illustrates how to get the default row height:
3794
+ <code>
3795
+ //Create worksheet
3796
+ Workbook workbook = new Workbook();
3797
+ Worksheet worksheet = workbook.Worksheets[0];
3798
+ //Get row height
3799
+ Console.Write(worksheet.DefaultRowHeight);
3800
+ //Set default height
3801
+ worksheet.DefaultRowHeight = 40;
3802
+ //Save to file
3803
+ workbook.SaveToFile("DefaultRowHeight.xlsx");
3804
+ </code>
3805
+ </example>
3806
+ </summary>
3807
+ """
3808
+ GetDllLibXls().XlsWorksheet_get_DefaultRowHeight.argtypes=[c_void_p]
3809
+ GetDllLibXls().XlsWorksheet_get_DefaultRowHeight.restype=c_double
3810
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_DefaultRowHeight, self.Ptr)
3811
+ return ret
3812
+
3813
+ @DefaultRowHeight.setter
3814
+ def DefaultRowHeight(self, value:float):
3815
+ GetDllLibXls().XlsWorksheet_set_DefaultRowHeight.argtypes=[c_void_p, c_double]
3816
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_DefaultRowHeight, self.Ptr, value)
3817
+
3818
+ @property
3819
+ def DefaultPrintRowHeight(self)->int:
3820
+ """
3821
+ <summary>
3822
+ Return default row height.
3823
+ </summary>
3824
+ """
3825
+ GetDllLibXls().XlsWorksheet_get_DefaultPrintRowHeight.argtypes=[c_void_p]
3826
+ GetDllLibXls().XlsWorksheet_get_DefaultPrintRowHeight.restype=c_int
3827
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_DefaultPrintRowHeight, self.Ptr)
3828
+ return ret
3829
+
3830
+ @DefaultPrintRowHeight.setter
3831
+ def DefaultPrintRowHeight(self, value:int):
3832
+ GetDllLibXls().XlsWorksheet_set_DefaultPrintRowHeight.argtypes=[c_void_p, c_int]
3833
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_DefaultPrintRowHeight, self.Ptr, value)
3834
+
3835
+ @property
3836
+
3837
+ def ViewMode(self)->'ViewMode':
3838
+ """
3839
+ <summary>
3840
+ Gets or sets the view mode of the sheet.
3841
+ </summary>
3842
+ <value></value>
3843
+ """
3844
+ GetDllLibXls().XlsWorksheet_get_ViewMode.argtypes=[c_void_p]
3845
+ GetDllLibXls().XlsWorksheet_get_ViewMode.restype=c_int
3846
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_ViewMode, self.Ptr)
3847
+ objwraped = ViewMode(ret)
3848
+ return objwraped
3849
+
3850
+ @ViewMode.setter
3851
+ def ViewMode(self, value:'ViewMode'):
3852
+ GetDllLibXls().XlsWorksheet_set_ViewMode.argtypes=[c_void_p, c_int]
3853
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_ViewMode, self.Ptr, value.value)
3854
+
3855
+ @property
3856
+ def DefaultColumnWidth(self)->float:
3857
+ """
3858
+ <summary>
3859
+ Returns or sets the default width of all the columns in the worksheet. Read/write Double.
3860
+ <example>The following code illustrates how to get the default column width:
3861
+ <code>
3862
+ //Create worksheet
3863
+ Workbook workbook = new Workbook();
3864
+ Worksheet worksheet = workbook.Worksheets[0];
3865
+ //Get column width
3866
+ Console.Write(worksheet.DefaultColumnWidth);
3867
+ //Set default width
3868
+ worksheet.DefaultColumnWidth = 40;
3869
+ //Save to file
3870
+ workbook.SaveToFile("DefaultColumnWidth.xlsx");
3871
+ </code>
3872
+ </example>
3873
+ </summary>
3874
+ """
3875
+ GetDllLibXls().XlsWorksheet_get_DefaultColumnWidth.argtypes=[c_void_p]
3876
+ GetDllLibXls().XlsWorksheet_get_DefaultColumnWidth.restype=c_double
3877
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_DefaultColumnWidth, self.Ptr)
3878
+ return ret
3879
+
3880
+ @DefaultColumnWidth.setter
3881
+ def DefaultColumnWidth(self, value:float):
3882
+ GetDllLibXls().XlsWorksheet_set_DefaultColumnWidth.argtypes=[c_void_p, c_double]
3883
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_DefaultColumnWidth, self.Ptr, value)
3884
+
3885
+ @property
3886
+ def Zoom(self)->int:
3887
+ """
3888
+ <summary>
3889
+ Zoom factor of document.
3890
+ <example>The following code illustrates how to set zoom level of the sheet:
3891
+ <code>
3892
+ //Create worksheet
3893
+ Workbook workbook = new Workbook();
3894
+ Worksheet worksheet = workbook.Worksheets[0];
3895
+ //Set zoom
3896
+ worksheet.Zoom = 200;
3897
+ //Save to file
3898
+ workbook.SaveToFile("Zoom.xlsx");
3899
+ </code>
3900
+ </example>
3901
+ </summary>
3902
+ <remarks> Value of zoom should be between 10 and 400.</remarks>
3903
+ """
3904
+ GetDllLibXls().XlsWorksheet_get_Zoom.argtypes=[c_void_p]
3905
+ GetDllLibXls().XlsWorksheet_get_Zoom.restype=c_int
3906
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_Zoom, self.Ptr)
3907
+ return ret
3908
+
3909
+ @Zoom.setter
3910
+ def Zoom(self, value:int):
3911
+ GetDllLibXls().XlsWorksheet_set_Zoom.argtypes=[c_void_p, c_int]
3912
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_Zoom, self.Ptr, value)
3913
+
3914
+ @property
3915
+ def ZoomScaleNormal(self)->int:
3916
+ """
3917
+ <summary>
3918
+ Gets or sets the zoom scale of normal view of the sheet.
3919
+ </summary>
3920
+ <value></value>
3921
+ """
3922
+ GetDllLibXls().XlsWorksheet_get_ZoomScaleNormal.argtypes=[c_void_p]
3923
+ GetDllLibXls().XlsWorksheet_get_ZoomScaleNormal.restype=c_int
3924
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_ZoomScaleNormal, self.Ptr)
3925
+ return ret
3926
+
3927
+ @ZoomScaleNormal.setter
3928
+ def ZoomScaleNormal(self, value:int):
3929
+ GetDllLibXls().XlsWorksheet_set_ZoomScaleNormal.argtypes=[c_void_p, c_int]
3930
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_ZoomScaleNormal, self.Ptr, value)
3931
+
3932
+ @property
3933
+ def ZoomScalePageBreakView(self)->int:
3934
+ """
3935
+ <summary>
3936
+ Gets or sets the zoom scale of page break preview of the sheet.
3937
+ </summary>
3938
+ <value></value>
3939
+ """
3940
+ GetDllLibXls().XlsWorksheet_get_ZoomScalePageBreakView.argtypes=[c_void_p]
3941
+ GetDllLibXls().XlsWorksheet_get_ZoomScalePageBreakView.restype=c_int
3942
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_ZoomScalePageBreakView, self.Ptr)
3943
+ return ret
3944
+
3945
+ @ZoomScalePageBreakView.setter
3946
+ def ZoomScalePageBreakView(self, value:int):
3947
+ GetDllLibXls().XlsWorksheet_set_ZoomScalePageBreakView.argtypes=[c_void_p, c_int]
3948
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_ZoomScalePageBreakView, self.Ptr, value)
3949
+
3950
+ @property
3951
+ def ZoomScalePageLayoutView(self)->int:
3952
+ """
3953
+ <summary>
3954
+ Gets or sets the zoom scale of page layout view of the sheet.
3955
+ </summary>
3956
+ <value></value>
3957
+ """
3958
+ GetDllLibXls().XlsWorksheet_get_ZoomScalePageLayoutView.argtypes=[c_void_p]
3959
+ GetDllLibXls().XlsWorksheet_get_ZoomScalePageLayoutView.restype=c_int
3960
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_ZoomScalePageLayoutView, self.Ptr)
3961
+ return ret
3962
+
3963
+ @ZoomScalePageLayoutView.setter
3964
+ def ZoomScalePageLayoutView(self, value:int):
3965
+ GetDllLibXls().XlsWorksheet_set_ZoomScalePageLayoutView.argtypes=[c_void_p, c_int]
3966
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_ZoomScalePageLayoutView, self.Ptr, value)
3967
+
3968
+ @property
3969
+ def SelectionCount(self)->int:
3970
+ """
3971
+
3972
+ """
3973
+ GetDllLibXls().XlsWorksheet_get_SelectionCount.argtypes=[c_void_p]
3974
+ GetDllLibXls().XlsWorksheet_get_SelectionCount.restype=c_int
3975
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_SelectionCount, self.Ptr)
3976
+ return ret
3977
+
3978
+ @property
3979
+
3980
+ def Version(self)->'ExcelVersion':
3981
+ """
3982
+ <summary>
3983
+ Gets or sets excel file version.
3984
+ </summary>
3985
+ """
3986
+ GetDllLibXls().XlsWorksheet_get_Version.argtypes=[c_void_p]
3987
+ GetDllLibXls().XlsWorksheet_get_Version.restype=c_int
3988
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_Version, self.Ptr)
3989
+ objwraped = ExcelVersion(ret)
3990
+ return objwraped
3991
+
3992
+ @Version.setter
3993
+ def Version(self, value:'ExcelVersion'):
3994
+ GetDllLibXls().XlsWorksheet_set_Version.argtypes=[c_void_p, c_int]
3995
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_Version, self.Ptr, value.value)
3996
+
3997
+ @property
3998
+
3999
+ def SparklineGroups(self)->'SparklineGroupCollection':
4000
+ """
4001
+
4002
+ """
4003
+ GetDllLibXls().XlsWorksheet_get_SparklineGroups.argtypes=[c_void_p]
4004
+ GetDllLibXls().XlsWorksheet_get_SparklineGroups.restype=c_void_p
4005
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_SparklineGroups, self.Ptr)
4006
+ ret = None if intPtr==None else SparklineGroupCollection(intPtr)
4007
+ return ret
4008
+
4009
+
4010
+ @property
4011
+ def StandardHeightFlag(self)->bool:
4012
+ """
4013
+ <summary>
4014
+ Gets or sets the standard (default) height option flag, which defines that
4015
+ standard (default) row height and book default font height do not match. Bool.
4016
+ </summary>
4017
+ """
4018
+ GetDllLibXls().XlsWorksheet_get_StandardHeightFlag.argtypes=[c_void_p]
4019
+ GetDllLibXls().XlsWorksheet_get_StandardHeightFlag.restype=c_bool
4020
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_StandardHeightFlag, self.Ptr)
4021
+ return ret
4022
+
4023
+ @StandardHeightFlag.setter
4024
+ def StandardHeightFlag(self, value:bool):
4025
+ GetDllLibXls().XlsWorksheet_set_StandardHeightFlag.argtypes=[c_void_p, c_bool]
4026
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_StandardHeightFlag, self.Ptr, value)
4027
+
4028
+ @property
4029
+
4030
+ def Type(self)->'ExcelSheetType':
4031
+ """
4032
+
4033
+ """
4034
+ GetDllLibXls().XlsWorksheet_get_Type.argtypes=[c_void_p]
4035
+ GetDllLibXls().XlsWorksheet_get_Type.restype=c_int
4036
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_Type, self.Ptr)
4037
+ objwraped = ExcelSheetType(ret)
4038
+ return objwraped
4039
+
4040
+ @property
4041
+
4042
+ def Range(self)->'XlsRange':
4043
+ """
4044
+
4045
+ """
4046
+ GetDllLibXls().XlsWorksheet_get_Range.argtypes=[c_void_p]
4047
+ GetDllLibXls().XlsWorksheet_get_Range.restype=c_void_p
4048
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_Range, self.Ptr)
4049
+ ret = None if intPtr==None else XlsRange(intPtr)
4050
+ return ret
4051
+
4052
+
4053
+ @dispatch
4054
+
4055
+ def get_Item(self ,row:int,column:int)->IXLSRange:
4056
+ """
4057
+
4058
+ """
4059
+
4060
+ GetDllLibXls().XlsWorksheet_get_Item.argtypes=[c_void_p ,c_int,c_int]
4061
+ GetDllLibXls().XlsWorksheet_get_Item.restype=c_void_p
4062
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_Item, self.Ptr, row,column)
4063
+ ret = None if intPtr==None else XlsRange(intPtr)
4064
+ return ret
4065
+
4066
+
4067
+ @dispatch
4068
+
4069
+ def get_Item(self ,row:int,column:int,lastRow:int,lastColumn:int)->IXLSRange:
4070
+ """
4071
+
4072
+ """
4073
+
4074
+ GetDllLibXls().XlsWorksheet_get_ItemRCLL.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
4075
+ GetDllLibXls().XlsWorksheet_get_ItemRCLL.restype=c_void_p
4076
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_ItemRCLL, self.Ptr, row,column,lastRow,lastColumn)
4077
+ ret = None if intPtr==None else XlsRange(intPtr)
4078
+ return ret
4079
+
4080
+
4081
+ @dispatch
4082
+
4083
+ def get_Item(self ,name:str)->IXLSRange:
4084
+ """
4085
+
4086
+ """
4087
+
4088
+ GetDllLibXls().XlsWorksheet_get_ItemN.argtypes=[c_void_p ,c_void_p]
4089
+ GetDllLibXls().XlsWorksheet_get_ItemN.restype=c_void_p
4090
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_ItemN, self.Ptr, name)
4091
+ ret = None if intPtr==None else XlsRange(intPtr)
4092
+ return ret
4093
+
4094
+
4095
+ @property
4096
+
4097
+ def TopLeftCell(self)->'CellRange':
4098
+ """
4099
+ <summary>
4100
+ Gets top left cell of the worksheet.
4101
+ </summary>
4102
+ <returns></returns>
4103
+ """
4104
+ GetDllLibXls().XlsWorksheet_get_TopLeftCell.argtypes=[c_void_p]
4105
+ GetDllLibXls().XlsWorksheet_get_TopLeftCell.restype=c_void_p
4106
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_TopLeftCell, self.Ptr)
4107
+ ret = None if intPtr==None else CellRange(intPtr)
4108
+ return ret
4109
+
4110
+
4111
+ @TopLeftCell.setter
4112
+ def TopLeftCell(self, value:'CellRange'):
4113
+ GetDllLibXls().XlsWorksheet_set_TopLeftCell.argtypes=[c_void_p, c_void_p]
4114
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_TopLeftCell, self.Ptr, value.Ptr)
4115
+
4116
+ @property
4117
+ def UseRangesCache(self)->bool:
4118
+ """
4119
+ <summary>
4120
+ Indicates whether all created range objects should be cached. Default value is true.
4121
+ </summary>
4122
+ """
4123
+ GetDllLibXls().XlsWorksheet_get_UseRangesCache.argtypes=[c_void_p]
4124
+ GetDllLibXls().XlsWorksheet_get_UseRangesCache.restype=c_bool
4125
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_UseRangesCache, self.Ptr)
4126
+ return ret
4127
+
4128
+ @UseRangesCache.setter
4129
+ def UseRangesCache(self, value:bool):
4130
+ GetDllLibXls().XlsWorksheet_set_UseRangesCache.argtypes=[c_void_p, c_bool]
4131
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_UseRangesCache, self.Ptr, value)
4132
+
4133
+ @property
4134
+ def VerticalSplit(self)->int:
4135
+ """
4136
+
4137
+ """
4138
+ GetDllLibXls().XlsWorksheet_get_VerticalSplit.argtypes=[c_void_p]
4139
+ GetDllLibXls().XlsWorksheet_get_VerticalSplit.restype=c_int
4140
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_VerticalSplit, self.Ptr)
4141
+ return ret
4142
+
4143
+ @VerticalSplit.setter
4144
+ def VerticalSplit(self, value:int):
4145
+ GetDllLibXls().XlsWorksheet_set_VerticalSplit.argtypes=[c_void_p, c_int]
4146
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_VerticalSplit, self.Ptr, value)
4147
+
4148
+ @property
4149
+
4150
+ def VPageBreaks(self)->'IVPageBreaks':
4151
+ """
4152
+
4153
+ """
4154
+ GetDllLibXls().XlsWorksheet_get_VPageBreaks.argtypes=[c_void_p]
4155
+ GetDllLibXls().XlsWorksheet_get_VPageBreaks.restype=c_void_p
4156
+ intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_VPageBreaks, self.Ptr)
4157
+ ret = None if intPtr==None else IVPageBreaks(intPtr)
4158
+ return ret
4159
+
4160
+
4161
+ @property
4162
+ def ActivePane(self)->int:
4163
+ """
4164
+ <summary>
4165
+ Gets or sets index of the active pane.
4166
+ </summary>
4167
+ """
4168
+ GetDllLibXls().XlsWorksheet_get_ActivePane.argtypes=[c_void_p]
4169
+ GetDllLibXls().XlsWorksheet_get_ActivePane.restype=c_int
4170
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_ActivePane, self.Ptr)
4171
+ return ret
4172
+
4173
+ @ActivePane.setter
4174
+ def ActivePane(self, value:int):
4175
+ GetDllLibXls().XlsWorksheet_set_ActivePane.argtypes=[c_void_p, c_int]
4176
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_ActivePane, self.Ptr, value)
4177
+
4178
+
4179
+ def SetFirstColumn(self ,columnIndex:int):
4180
+ """
4181
+
4182
+ """
4183
+
4184
+ GetDllLibXls().XlsWorksheet_SetFirstColumn.argtypes=[c_void_p ,c_int]
4185
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetFirstColumn, self.Ptr, columnIndex)
4186
+
4187
+
4188
+ def SetLastColumn(self ,columnIndex:int):
4189
+ """
4190
+ <summary>
4191
+ Updates last column index.
4192
+ </summary>
4193
+ <param name="columnIndex">Column index.</param>
4194
+ """
4195
+
4196
+ GetDllLibXls().XlsWorksheet_SetLastColumn.argtypes=[c_void_p ,c_int]
4197
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetLastColumn, self.Ptr, columnIndex)
4198
+
4199
+
4200
+ def SetFirstRow(self ,rowIndex:int):
4201
+ """
4202
+ <summary>
4203
+ Updates first row index.
4204
+ </summary>
4205
+ <param name="rowIndex">Row index.</param>
4206
+ """
4207
+
4208
+ GetDllLibXls().XlsWorksheet_SetFirstRow.argtypes=[c_void_p ,c_int]
4209
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetFirstRow, self.Ptr, rowIndex)
4210
+
4211
+
4212
+ def SetLastRow(self ,rowIndex:int):
4213
+ """
4214
+ <summary>
4215
+ Updates last row index.
4216
+ </summary>
4217
+ <param name="rowIndex">Row index.</param>
4218
+ """
4219
+
4220
+ GetDllLibXls().XlsWorksheet_SetLastRow.argtypes=[c_void_p ,c_int]
4221
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetLastRow, self.Ptr, rowIndex)
4222
+
4223
+
4224
+ def ShowColumn(self ,columnIndex:int):
4225
+ """
4226
+ <summary>
4227
+ Shows a column.
4228
+ </summary>
4229
+ <param name="columnIndex">Column index.</param>
4230
+ """
4231
+
4232
+ GetDllLibXls().XlsWorksheet_ShowColumn.argtypes=[c_void_p ,c_int]
4233
+ CallCFunction(GetDllLibXls().XlsWorksheet_ShowColumn, self.Ptr, columnIndex)
4234
+
4235
+
4236
+ def ShowRow(self ,rowIndex:int):
4237
+ """
4238
+
4239
+ """
4240
+
4241
+ GetDllLibXls().XlsWorksheet_ShowRow.argtypes=[c_void_p ,c_int]
4242
+ CallCFunction(GetDllLibXls().XlsWorksheet_ShowRow, self.Ptr, rowIndex)
4243
+
4244
+ # @dispatch
4245
+
4246
+ # def ToEMFStream(self ,stream:Stream,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int,emfType:EmfType):
4247
+ # """
4248
+
4249
+ # """
4250
+ # intPtrstream:c_void_p = stream.Ptr
4251
+ # enumemfType:c_int = emfType.value
4252
+
4253
+ # GetDllLibXls().XlsWorksheet_ToEMFStream.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int,c_int,c_int]
4254
+ # CallCFunction(GetDllLibXls().XlsWorksheet_ToEMFStream, self.Ptr, intPtrstream,firstRow,firstColumn,lastRow,lastColumn,enumemfType)
4255
+
4256
+ # @dispatch
4257
+
4258
+ # def ToEMFStream(self ,stream:Stream,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int):
4259
+ # """
4260
+ #<summary></summary>
4261
+ # <param name="stream">stream.</param>
4262
+ # <param name="firstRow">One-based index of the first row to convert.</param>
4263
+ # <param name="firstColumn">One-based index of the first column to convert.</param>
4264
+ # <param name="lastRow">One-based index of the last row to convert.</param>
4265
+ # <param name="lastColumn">One-based index of the last column to convert.</param>
4266
+ # """
4267
+ # intPtrstream:c_void_p = stream.Ptr
4268
+
4269
+ # GetDllLibXls().XlsWorksheet_ToEMFStreamSFFLL.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int,c_int]
4270
+ # CallCFunction(GetDllLibXls().XlsWorksheet_ToEMFStreamSFFLL, self.Ptr, intPtrstream,firstRow,firstColumn,lastRow,lastColumn)
4271
+
4272
+ @dispatch
4273
+
4274
+ def SetActiveCell(self ,range:IXLSRange):
4275
+ """
4276
+
4277
+ """
4278
+ intPtrrange:c_void_p = range.Ptr
4279
+
4280
+ GetDllLibXls().XlsWorksheet_SetActiveCell.argtypes=[c_void_p ,c_void_p]
4281
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetActiveCell, self.Ptr, intPtrrange)
4282
+
4283
+ @dispatch
4284
+
4285
+ def SetActiveCell(self ,range:IXLSRange,updateApplication:bool):
4286
+ """
4287
+
4288
+ """
4289
+ intPtrrange:c_void_p = range.Ptr
4290
+
4291
+ GetDllLibXls().XlsWorksheet_SetActiveCellRU.argtypes=[c_void_p ,c_void_p,c_bool]
4292
+ CallCFunction(GetDllLibXls().XlsWorksheet_SetActiveCellRU, self.Ptr, intPtrrange,updateApplication)
4293
+
4294
+ @property
4295
+ def FirstVisibleColumn(self)->int:
4296
+ """
4297
+
4298
+ """
4299
+ GetDllLibXls().XlsWorksheet_get_FirstVisibleColumn.argtypes=[c_void_p]
4300
+ GetDllLibXls().XlsWorksheet_get_FirstVisibleColumn.restype=c_int
4301
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_FirstVisibleColumn, self.Ptr)
4302
+ return ret
4303
+
4304
+ @FirstVisibleColumn.setter
4305
+ def FirstVisibleColumn(self, value:int):
4306
+ GetDllLibXls().XlsWorksheet_set_FirstVisibleColumn.argtypes=[c_void_p, c_int]
4307
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_FirstVisibleColumn, self.Ptr, value)
4308
+
4309
+ @property
4310
+ def FirstVisibleRow(self)->int:
4311
+ """
4312
+
4313
+ """
4314
+ GetDllLibXls().XlsWorksheet_get_FirstVisibleRow.argtypes=[c_void_p]
4315
+ GetDllLibXls().XlsWorksheet_get_FirstVisibleRow.restype=c_int
4316
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_FirstVisibleRow, self.Ptr)
4317
+ return ret
4318
+
4319
+ @FirstVisibleRow.setter
4320
+ def FirstVisibleRow(self, value:int):
4321
+ GetDllLibXls().XlsWorksheet_set_FirstVisibleRow.argtypes=[c_void_p, c_int]
4322
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_FirstVisibleRow, self.Ptr, value)
4323
+
4324
+ @property
4325
+ def GridLinesVisible(self)->bool:
4326
+ """
4327
+ <summary>
4328
+ True if gridlines are visible;
4329
+ False otherwise.
4330
+ <example>The following code illustrates how to set visibility for grid lines:
4331
+ <code>
4332
+ //Create worksheet
4333
+ Workbook workbook = new Workbook();
4334
+ Worksheet worksheet = workbook.Worksheets[0];
4335
+ //Set grid line visibility
4336
+ worksheet.GridLinesVisible = false;
4337
+ //Save to file
4338
+ workbook.SaveToFile("GridLinesVisible.xlsx");
4339
+ </code>
4340
+ </example>
4341
+ </summary>
4342
+ """
4343
+ GetDllLibXls().XlsWorksheet_get_GridLinesVisible.argtypes=[c_void_p]
4344
+ GetDllLibXls().XlsWorksheet_get_GridLinesVisible.restype=c_bool
4345
+ ret = CallCFunction(GetDllLibXls().XlsWorksheet_get_GridLinesVisible, self.Ptr)
4346
+ return ret
4347
+
4348
+ @GridLinesVisible.setter
4349
+ def GridLinesVisible(self, value:bool):
4350
+ GetDllLibXls().XlsWorksheet_set_GridLinesVisible.argtypes=[c_void_p, c_bool]
4351
+ CallCFunction(GetDllLibXls().XlsWorksheet_set_GridLinesVisible, self.Ptr, value)
4352
+