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.
- spire/__init__.py +0 -0
- spire/xls/AddInFunctionsCollection.py +29 -0
- spire/xls/AddtionalFormatWrapper.py +976 -0
- spire/xls/AlertStyleType.py +18 -0
- spire/xls/ArcShapeCollection.py +70 -0
- spire/xls/AutoFiltersCollection.py +527 -0
- spire/xls/AutoFitterOptions.py +66 -0
- spire/xls/AutoFormatOptions.py +23 -0
- spire/xls/AutoFormatType.py +32 -0
- spire/xls/AutoSortScope.py +25 -0
- spire/xls/Average.py +29 -0
- spire/xls/AverageType.py +25 -0
- spire/xls/AxisLineIdentifierType.py +19 -0
- spire/xls/AxisTextDirectionType.py +18 -0
- spire/xls/AxisType.py +18 -0
- spire/xls/AxisTypes.py +18 -0
- spire/xls/BaseFormatType.py +17 -0
- spire/xls/BordersCollection.py +158 -0
- spire/xls/BordersCollectionArrayWrapper.py +95 -0
- spire/xls/BordersLineType.py +23 -0
- spire/xls/BubbleSizeType.py +17 -0
- spire/xls/BuiltInDocumentProperties.py +12 -0
- spire/xls/BuiltInPropertyType.py +50 -0
- spire/xls/BuiltInStyles.py +66 -0
- spire/xls/ButtonShapeCollection.py +70 -0
- spire/xls/CategoryType.py +18 -0
- spire/xls/CellBaseStyle.py +26 -0
- spire/xls/CellBorder.py +154 -0
- spire/xls/CellDataType.py +23 -0
- spire/xls/CellFormatType.py +21 -0
- spire/xls/CellRange.py +915 -0
- spire/xls/CellStyle.py +85 -0
- spire/xls/CellStyleFlag.py +432 -0
- spire/xls/CellStyleObject.py +617 -0
- spire/xls/CellValueChangedEventArgs.py +75 -0
- spire/xls/CellValueChangedEventHandler.py +52 -0
- spire/xls/Chart.py +404 -0
- spire/xls/ChartArea.py +61 -0
- spire/xls/ChartBackgroundMode.py +18 -0
- spire/xls/ChartBaseUnitType.py +18 -0
- spire/xls/ChartBorder.py +12 -0
- spire/xls/ChartCategoryAxis.py +93 -0
- spire/xls/ChartDataLabels.py +42 -0
- spire/xls/ChartDataPoint.py +42 -0
- spire/xls/ChartDataPointsCollection.py +75 -0
- spire/xls/ChartDataTable.py +12 -0
- spire/xls/ChartDisplayUnitType.py +26 -0
- spire/xls/ChartDropBar.py +12 -0
- spire/xls/ChartFormat.py +72 -0
- spire/xls/ChartFormatCollection.py +59 -0
- spire/xls/ChartGridLine.py +27 -0
- spire/xls/ChartInterior.py +12 -0
- spire/xls/ChartLegend.py +42 -0
- spire/xls/ChartLegendEntriesColl.py +128 -0
- spire/xls/ChartLegendEntry.py +27 -0
- spire/xls/ChartLinePatternType.py +24 -0
- spire/xls/ChartLineWeightType.py +19 -0
- spire/xls/ChartMarkerType.py +27 -0
- spire/xls/ChartPageSetup.py +12 -0
- spire/xls/ChartParagraphType.py +18 -0
- spire/xls/ChartPieType.py +18 -0
- spire/xls/ChartPlotArea.py +53 -0
- spire/xls/ChartPlotEmptyType.py +18 -0
- spire/xls/ChartSerie.py +142 -0
- spire/xls/ChartSerieDataFormat.py +56 -0
- spire/xls/ChartSeries.py +154 -0
- spire/xls/ChartSeriesAxis.py +72 -0
- spire/xls/ChartShadow.py +235 -0
- spire/xls/ChartSheet.py +285 -0
- spire/xls/ChartTextArea.py +782 -0
- spire/xls/ChartTitle.py +12 -0
- spire/xls/ChartValueAxis.py +92 -0
- spire/xls/ChartWallOrFloor.py +12 -0
- spire/xls/ChartsCollection.py +113 -0
- spire/xls/CheckBoxCollection.py +70 -0
- spire/xls/CheckState.py +18 -0
- spire/xls/CollectionBase.py +184 -0
- spire/xls/CollectionChangeEventArgs.py +36 -0
- spire/xls/CollectionExtended.py +92 -0
- spire/xls/ColorConditionValue.py +91 -0
- spire/xls/ColorFilter.py +45 -0
- spire/xls/ColorScale.py +172 -0
- spire/xls/ColorType.py +18 -0
- spire/xls/ComboBoxCollection.py +70 -0
- spire/xls/CommentHAlignType.py +21 -0
- spire/xls/CommentVAlignType.py +20 -0
- spire/xls/CommentsCollection.py +109 -0
- spire/xls/CommentsRange.py +578 -0
- spire/xls/CommonWrapper.py +40 -0
- spire/xls/ComparisonOperatorType.py +24 -0
- spire/xls/CompoundLineType.py +18 -0
- spire/xls/CondFormatCollectionWrapper.py +125 -0
- spire/xls/ConditionValue.py +82 -0
- spire/xls/ConditionValuePosition.py +16 -0
- spire/xls/ConditionValueType.py +20 -0
- spire/xls/ConditionalFormat.py +14 -0
- spire/xls/ConditionalFormatScope.py +16 -0
- spire/xls/ConditionalFormatType.py +33 -0
- spire/xls/ConditionalFormatWrapper.py +986 -0
- spire/xls/ConditionalFormats.py +55 -0
- spire/xls/ConditionalTopNType.py +17 -0
- spire/xls/ConnectionDataSourceType.py +26 -0
- spire/xls/ConverterSetting.py +347 -0
- spire/xls/CopyRangeOptions.py +23 -0
- spire/xls/CustomFilter.py +147 -0
- spire/xls/CustomFilterCollection.py +113 -0
- spire/xls/DBConnection.py +198 -0
- spire/xls/DVAspect.py +15 -0
- spire/xls/DataBar.py +220 -0
- spire/xls/DataBarAxisPosition.py +16 -0
- spire/xls/DataBarBorder.py +47 -0
- spire/xls/DataBarBorderType.py +15 -0
- spire/xls/DataBarFillType.py +15 -0
- spire/xls/DataBarNegativeColorType.py +15 -0
- spire/xls/DataConnections.py +25 -0
- spire/xls/DataLabelPositionType.py +26 -0
- spire/xls/DataMarkerDirection.py +17 -0
- spire/xls/DataSorter.py +154 -0
- spire/xls/DataSourceType.py +19 -0
- spire/xls/DateTimeGroupItem.py +132 -0
- spire/xls/DateTimeGroupingType.py +19 -0
- spire/xls/DeleteOption.py +15 -0
- spire/xls/DocumentProperty.py +304 -0
- spire/xls/DropLineStyleType.py +18 -0
- spire/xls/DynamicFilter.py +71 -0
- spire/xls/DynamicFilterType.py +48 -0
- spire/xls/EncryptedKeyInfo.py +12 -0
- spire/xls/ErrorBarIncludeType.py +19 -0
- spire/xls/ErrorBarType.py +20 -0
- spire/xls/Excel2016Charttype.py +20 -0
- spire/xls/ExcelAddInFunction.py +12 -0
- spire/xls/ExcelCalculationMode.py +18 -0
- spire/xls/ExcelChartType.py +96 -0
- spire/xls/ExcelClearOptions.py +18 -0
- spire/xls/ExcelColors.py +121 -0
- spire/xls/ExcelComboType.py +22 -0
- spire/xls/ExcelComment.py +27 -0
- spire/xls/ExcelCommentObject.py +618 -0
- spire/xls/ExcelFindOptions.py +16 -0
- spire/xls/ExcelFont.py +310 -0
- spire/xls/ExcelGradient.py +174 -0
- spire/xls/ExcelHorizontalAlignment.py +21 -0
- spire/xls/ExcelInterior.py +128 -0
- spire/xls/ExcelPatternType.py +52 -0
- spire/xls/ExcelPicture.py +12 -0
- spire/xls/ExcelQuartileCalculation.py +17 -0
- spire/xls/ExcelSaveType.py +15 -0
- spire/xls/ExcelShapeType.py +41 -0
- spire/xls/ExcelSheetType.py +20 -0
- spire/xls/ExcelTotalsCalculation.py +23 -0
- spire/xls/ExcelTreeMapLabelOption.py +18 -0
- spire/xls/ExcelVersion.py +24 -0
- spire/xls/ExcelVerticalAlignment.py +21 -0
- spire/xls/ExpandCollapseFlags.py +18 -0
- spire/xls/ExportTableOptions.py +74 -0
- spire/xls/ExternalConnection.py +147 -0
- spire/xls/ExternalLink.py +58 -0
- spire/xls/ExternalLinkCollection.py +25 -0
- spire/xls/FileFormat.py +40 -0
- spire/xls/FillPictureType.py +16 -0
- spire/xls/FilterColumn.py +258 -0
- spire/xls/FilterConditionType.py +21 -0
- spire/xls/FilterDataType.py +22 -0
- spire/xls/FilterOperatorType.py +20 -0
- spire/xls/FilterType.py +20 -0
- spire/xls/FindType.py +19 -0
- spire/xls/Font.py +376 -0
- spire/xls/FontArrayWrapper.py +265 -0
- spire/xls/FontUnderlineType.py +20 -0
- spire/xls/FontVertialAlignmentType.py +20 -0
- spire/xls/FontWrapper.py +450 -0
- spire/xls/FontsCollection.py +87 -0
- spire/xls/Format3D.py +235 -0
- spire/xls/GeomertyAdjustValue.py +63 -0
- spire/xls/GeomertyAdjustValueFormulaType.py +30 -0
- spire/xls/GeomertyAdjustValuesCollection.py +39 -0
- spire/xls/GetText.py +15 -0
- spire/xls/GoalSeek.py +65 -0
- spire/xls/GoalSeekResult.py +57 -0
- spire/xls/GradientArrayWrapper.py +188 -0
- spire/xls/GradientColorType.py +18 -0
- spire/xls/GradientPatternType.py +64 -0
- spire/xls/GradientPresetType.py +39 -0
- spire/xls/GradientStops.py +146 -0
- spire/xls/GradientStyleType.py +21 -0
- spire/xls/GradientTextureType.py +40 -0
- spire/xls/GradientType.py +17 -0
- spire/xls/GradientVariantsType.py +19 -0
- spire/xls/GroupBoxCollection.py +70 -0
- spire/xls/GroupByType.py +15 -0
- spire/xls/GroupShape.py +21 -0
- spire/xls/GroupShapeCollection.py +46 -0
- spire/xls/HPageBreak.py +32 -0
- spire/xls/HPageBreaksCollection.py +108 -0
- spire/xls/HTMLOptions.py +144 -0
- spire/xls/HistogramAxisFormat.py +30 -0
- spire/xls/HorizontalAlignType.py +23 -0
- spire/xls/HttpContentType.py +18 -0
- spire/xls/HyperLink.py +32 -0
- spire/xls/HyperLinkType.py +20 -0
- spire/xls/HyperLinksCollection.py +72 -0
- spire/xls/IAddInFunction.py +22 -0
- spire/xls/IAddInFunctions.py +50 -0
- spire/xls/IArcShape.py +259 -0
- spire/xls/IArcShapes.py +50 -0
- spire/xls/IAutoFilter.py +167 -0
- spire/xls/IAutoFilterCondition.py +123 -0
- spire/xls/IAutoFilters.py +49 -0
- spire/xls/IBorder.py +116 -0
- spire/xls/IBorders.py +106 -0
- spire/xls/IBuiltInDocumentProperties.py +579 -0
- spire/xls/IButtonShape.py +12 -0
- spire/xls/IButtonShapes.py +50 -0
- spire/xls/IChart.py +1368 -0
- spire/xls/IChartAxis.py +722 -0
- spire/xls/IChartBorder.py +220 -0
- spire/xls/IChartCategoryAxis.py +410 -0
- spire/xls/IChartDataLabels.py +457 -0
- spire/xls/IChartDataPoint.py +131 -0
- spire/xls/IChartDataPoints.py +31 -0
- spire/xls/IChartDataTable.py +197 -0
- spire/xls/IChartDropBar.py +12 -0
- spire/xls/IChartErrorBars.py +373 -0
- spire/xls/IChartFillBorder.py +303 -0
- spire/xls/IChartFormat.py +571 -0
- spire/xls/IChartFrameFormat.py +93 -0
- spire/xls/IChartGridLine.py +107 -0
- spire/xls/IChartInterior.py +278 -0
- spire/xls/IChartLegend.py +499 -0
- spire/xls/IChartLegendEntries.py +30 -0
- spire/xls/IChartLegendEntry.py +178 -0
- spire/xls/IChartPageSetup.py +56 -0
- spire/xls/IChartSerie.py +779 -0
- spire/xls/IChartSerieDataFormat.py +566 -0
- spire/xls/IChartSeries.py +39 -0
- spire/xls/IChartSeriesAxis.py +128 -0
- spire/xls/IChartShape.py +92 -0
- spire/xls/IChartShapes.py +39 -0
- spire/xls/IChartTextArea.py +197 -0
- spire/xls/IChartTrendLine.py +548 -0
- spire/xls/IChartTrendLines.py +79 -0
- spire/xls/IChartValueAxis.py +518 -0
- spire/xls/IChartWallOrFloor.py +32 -0
- spire/xls/ICharts.py +70 -0
- spire/xls/ICheckBox.py +96 -0
- spire/xls/ICheckBoxes.py +50 -0
- spire/xls/ICloneParent.py +28 -0
- spire/xls/IColorConditionValue.py +31 -0
- spire/xls/IColorScale.py +32 -0
- spire/xls/ICombinedRange.py +87 -0
- spire/xls/IComboBoxShape.py +95 -0
- spire/xls/IComboBoxes.py +50 -0
- spire/xls/IComment.py +85 -0
- spire/xls/ICommentShape.py +12 -0
- spire/xls/IComments.py +50 -0
- spire/xls/IConditionValue.py +68 -0
- spire/xls/IConditionalFormat.py +606 -0
- spire/xls/IConditionalFormats.py +48 -0
- spire/xls/IConditionalFormatsCollection.py +134 -0
- spire/xls/ICustomDocumentProperties.py +128 -0
- spire/xls/IDataBar.py +105 -0
- spire/xls/IDataSort.py +95 -0
- spire/xls/IDataValidation.py +421 -0
- spire/xls/IDataValidationCollection.py +132 -0
- spire/xls/IDataValidationTable.py +68 -0
- spire/xls/IDigitalSignature.py +99 -0
- spire/xls/IDigitalSignatures.py +29 -0
- spire/xls/IDocumentProperty.py +226 -0
- spire/xls/IErrorIndicator.py +31 -0
- spire/xls/IExcelApplication.py +22 -0
- spire/xls/IExtendIndex.py +21 -0
- spire/xls/IExtendedFormat.py +530 -0
- spire/xls/IFont.py +271 -0
- spire/xls/IFormat3D.py +252 -0
- spire/xls/IGeomPath.py +23 -0
- spire/xls/IGeomPathInfo.py +112 -0
- spire/xls/IGeomPathShape.py +30 -0
- spire/xls/IGlow.py +85 -0
- spire/xls/IGradient.py +174 -0
- spire/xls/IGroupBox.py +67 -0
- spire/xls/IGroupBoxes.py +50 -0
- spire/xls/IHPageBreak.py +22 -0
- spire/xls/IHPageBreaks.py +31 -0
- spire/xls/IHyperLink.py +118 -0
- spire/xls/IHyperLinks.py +48 -0
- spire/xls/IIconSet.py +96 -0
- spire/xls/IInterior.py +117 -0
- spire/xls/IInternalAddtionalFormat.py +238 -0
- spire/xls/IInternalFont.py +31 -0
- spire/xls/IInternalWorksheet.py +132 -0
- spire/xls/ILabelShape.py +49 -0
- spire/xls/ILabelShapes.py +50 -0
- spire/xls/ILineShape.py +305 -0
- spire/xls/ILines.py +50 -0
- spire/xls/IListBox.py +86 -0
- spire/xls/IListBoxes.py +50 -0
- spire/xls/IListObject.py +493 -0
- spire/xls/IListObjectColumn.py +222 -0
- spire/xls/IListObjects.py +31 -0
- spire/xls/IMarkersDesigner.py +113 -0
- spire/xls/IMigrantRange.py +21 -0
- spire/xls/INameRanges.py +162 -0
- spire/xls/INamedObject.py +22 -0
- spire/xls/INamedRange.py +162 -0
- spire/xls/INumberFormat.py +77 -0
- spire/xls/IOleObject.py +176 -0
- spire/xls/IOleObjects.py +32 -0
- spire/xls/IOptimizedUpdate.py +28 -0
- spire/xls/IOvalShape.py +154 -0
- spire/xls/IOvalShapes.py +50 -0
- spire/xls/IPageSetup.py +195 -0
- spire/xls/IPageSetupBase.py +642 -0
- spire/xls/IPictureShape.py +99 -0
- spire/xls/IPictures.py +250 -0
- spire/xls/IPivotCache.py +41 -0
- spire/xls/IPivotCaches.py +39 -0
- spire/xls/IPivotCalculatedFields.py +50 -0
- spire/xls/IPivotDataField.py +68 -0
- spire/xls/IPivotDataFields.py +50 -0
- spire/xls/IPivotField.py +291 -0
- spire/xls/IPivotFields.py +41 -0
- spire/xls/IPivotTable.py +393 -0
- spire/xls/IPivotTableOptions.py +428 -0
- spire/xls/IPivotTables.py +68 -0
- spire/xls/IPropertyData.py +70 -0
- spire/xls/IPrstGeomShape.py +71 -0
- spire/xls/IPrstGeomShapes.py +81 -0
- spire/xls/IRadioButton.py +105 -0
- spire/xls/IRadioButtons.py +71 -0
- spire/xls/IRectangleShape.py +60 -0
- spire/xls/IRectangleShapes.py +50 -0
- spire/xls/IReflectionEffect.py +138 -0
- spire/xls/IRichTextString.py +93 -0
- spire/xls/IScrollBarShape.py +140 -0
- spire/xls/IScrollBarShapes.py +50 -0
- spire/xls/IShadow.py +244 -0
- spire/xls/IShape.py +409 -0
- spire/xls/IShapeFill.py +522 -0
- spire/xls/IShapeLineFormat.py +331 -0
- spire/xls/IShapes.py +270 -0
- spire/xls/ISortColumn.py +96 -0
- spire/xls/ISortColumns.py +70 -0
- spire/xls/ISortedRule.py +112 -0
- spire/xls/ISparkline.py +68 -0
- spire/xls/ISparklineGroup.py +428 -0
- spire/xls/ISparklines.py +72 -0
- spire/xls/ISpinnerShape.py +102 -0
- spire/xls/ISpinnerShapes.py +50 -0
- spire/xls/IStyle.py +50 -0
- spire/xls/IStyles.py +69 -0
- spire/xls/ITabSheet.py +302 -0
- spire/xls/ITabSheets.py +57 -0
- spire/xls/ITextBox.py +116 -0
- spire/xls/ITextBoxLinkShape.py +40 -0
- spire/xls/ITextBoxShape.py +22 -0
- spire/xls/ITextBoxes.py +61 -0
- spire/xls/ITextFrame.py +120 -0
- spire/xls/IVPageBreak.py +22 -0
- spire/xls/IVPageBreaks.py +31 -0
- spire/xls/IWorkbook.py +1806 -0
- spire/xls/IWorksheet.py +2694 -0
- spire/xls/IWorksheetGroup.py +48 -0
- spire/xls/IWorksheets.py +159 -0
- spire/xls/IXLSRange.py +2479 -0
- spire/xls/IXLSRanges.py +35 -0
- spire/xls/IconSet.py +103 -0
- spire/xls/IconSetType.py +35 -0
- spire/xls/IgnoreErrorType.py +24 -0
- spire/xls/ImageFormatType.py +18 -0
- spire/xls/ImageLocationTypes.py +15 -0
- spire/xls/ImageType.py +17 -0
- spire/xls/ImportObjectOptions.py +89 -0
- spire/xls/InsertMoveOption.py +15 -0
- spire/xls/InsertOptionsType.py +16 -0
- spire/xls/InteriorArrayWrapper.py +126 -0
- spire/xls/LOGFONT.py +140 -0
- spire/xls/LabelShapeCollection.py +71 -0
- spire/xls/LegendPositionType.py +21 -0
- spire/xls/LegendSpacingType.py +18 -0
- spire/xls/LineCollection.py +85 -0
- spire/xls/LineShapeType.py +17 -0
- spire/xls/LineStyleType.py +29 -0
- spire/xls/ListBoxCollection.py +71 -0
- spire/xls/ListObjectCollection.py +45 -0
- spire/xls/MarkerDesigner.py +172 -0
- spire/xls/MeasureUnits.py +21 -0
- spire/xls/MsoPathInfo.py +38 -0
- spire/xls/MsoPathType.py +21 -0
- spire/xls/MultipleFilterCollection.py +166 -0
- spire/xls/NegativeBarFormat.py +82 -0
- spire/xls/OColor.py +165 -0
- spire/xls/OLEDBCommandType.py +19 -0
- spire/xls/OdsPageBackground.py +129 -0
- spire/xls/OdsPageBackgroundImagePositionType.py +22 -0
- spire/xls/OdsPageBackgroundImageType.py +16 -0
- spire/xls/OdsPageBackgroundType.py +16 -0
- spire/xls/OleLinkType.py +15 -0
- spire/xls/OleObjectType.py +51 -0
- spire/xls/OrderBy.py +19 -0
- spire/xls/OrderType.py +17 -0
- spire/xls/OvalShapeCollection.py +70 -0
- spire/xls/PageBreakExtentType.py +17 -0
- spire/xls/PageBreakType.py +18 -0
- spire/xls/PageColRow.py +48 -0
- spire/xls/PageOrientationType.py +17 -0
- spire/xls/PageSetup.py +14 -0
- spire/xls/PagesOrderType.py +17 -0
- spire/xls/PaperSizeEntry.py +30 -0
- spire/xls/PaperSizeType.py +135 -0
- spire/xls/PathFillMode.py +19 -0
- spire/xls/PdfConformanceLevel.py +20 -0
- spire/xls/PicStretch.py +104 -0
- spire/xls/PicTile.py +72 -0
- spire/xls/PicturesCollection.py +532 -0
- spire/xls/PivotAutoFomatTypes.py +35 -0
- spire/xls/PivotBuiltInStyles.py +97 -0
- spire/xls/PivotCache.py +12 -0
- spire/xls/PivotCachesCollection.py +12 -0
- spire/xls/PivotCalculatedFieldsCollection.py +38 -0
- spire/xls/PivotConditionalFormat.py +54 -0
- spire/xls/PivotConditionalFormatCollection.py +38 -0
- spire/xls/PivotDataField.py +118 -0
- spire/xls/PivotDataFields.py +104 -0
- spire/xls/PivotDataType.py +21 -0
- spire/xls/PivotField.py +12 -0
- spire/xls/PivotFieldFormatType.py +28 -0
- spire/xls/PivotFieldSortType.py +16 -0
- spire/xls/PivotGroupByTypes.py +23 -0
- spire/xls/PivotItem.py +161 -0
- spire/xls/PivotItemType.py +28 -0
- spire/xls/PivotLabelFilterType.py +27 -0
- spire/xls/PivotPageAreaFieldsOrderType.py +15 -0
- spire/xls/PivotReportFilter.py +92 -0
- spire/xls/PivotReportFilters.py +63 -0
- spire/xls/PivotStyle.py +79 -0
- spire/xls/PivotTable.py +12 -0
- spire/xls/PivotTableElement.py +38 -0
- spire/xls/PivotTableFields.py +85 -0
- spire/xls/PivotTableLayoutType.py +16 -0
- spire/xls/PivotTableStyle.py +63 -0
- spire/xls/PivotTablesCollection.py +12 -0
- spire/xls/PivotValueFilterType.py +21 -0
- spire/xls/PresetTextEffect.py +43 -0
- spire/xls/PrintCommentType.py +18 -0
- spire/xls/PrintErrorsType.py +19 -0
- spire/xls/PrintingPageType.py +16 -0
- spire/xls/PropertyType.py +31 -0
- spire/xls/PrstGeomShapeCollection.py +126 -0
- spire/xls/PrstGeomShapeType.py +201 -0
- spire/xls/QueryTableCollection.py +25 -0
- spire/xls/QueryTableXls.py +42 -0
- spire/xls/RTFCommentArray.py +112 -0
- spire/xls/RTFStringArray.py +112 -0
- spire/xls/RadioButtonCollection.py +137 -0
- spire/xls/RangeRichTextString.py +42 -0
- spire/xls/RangesCollection.py +537 -0
- spire/xls/ReadingOrderType.py +18 -0
- spire/xls/RectangleCollection.py +71 -0
- spire/xls/RectangleShapeType.py +22 -0
- spire/xls/RectangleStyleType.py +17 -0
- spire/xls/ReferRangeArea.py +88 -0
- spire/xls/RelationShip.py +15 -0
- spire/xls/RenameStrategy.py +16 -0
- spire/xls/ResizeBehaveType.py +18 -0
- spire/xls/RichText.py +49 -0
- spire/xls/RichTextObject.py +133 -0
- spire/xls/RichTextShape.py +168 -0
- spire/xls/RichTextString.py +126 -0
- spire/xls/RtfTags.py +30 -0
- spire/xls/RtfTextWriter.py +629 -0
- spire/xls/SaveShapeTypeOption.py +310 -0
- spire/xls/ScrollBarCollection.py +71 -0
- spire/xls/SelectionType.py +16 -0
- spire/xls/ShapeArrowLengthType.py +18 -0
- spire/xls/ShapeArrowStyleType.py +21 -0
- spire/xls/ShapeArrowWidthType.py +18 -0
- spire/xls/ShapeCollectionBase.py +87 -0
- spire/xls/ShapeDashLineStyleType.py +23 -0
- spire/xls/ShapeFillType.py +22 -0
- spire/xls/ShapeGeomPath.py +26 -0
- spire/xls/ShapeGlow.py +91 -0
- spire/xls/ShapeLayerChangeType.py +19 -0
- spire/xls/ShapeLineStyleType.py +20 -0
- spire/xls/ShapeReflection.py +131 -0
- spire/xls/ShapeSegmentPath.py +26 -0
- spire/xls/SheetProtectionType.py +33 -0
- spire/xls/SortColumn.py +120 -0
- spire/xls/SortColumns.py +185 -0
- spire/xls/SortComparsionType.py +19 -0
- spire/xls/SortOrientationType.py +17 -0
- spire/xls/SortedWayType.py +18 -0
- spire/xls/Sparkline.py +70 -0
- spire/xls/SparklineCollection.py +112 -0
- spire/xls/SparklineEmptyCells.py +16 -0
- spire/xls/SparklineGroup.py +523 -0
- spire/xls/SparklineGroupCollection.py +71 -0
- spire/xls/SparklineType.py +18 -0
- spire/xls/SpartlineVerticalAxisType.py +16 -0
- spire/xls/SpinnerShapeCollection.py +70 -0
- spire/xls/SplitType.py +19 -0
- spire/xls/StrikeThroughStyle.py +17 -0
- spire/xls/StringUtil.py +12 -0
- spire/xls/StyleArrayWrapper.py +621 -0
- spire/xls/StyleDefineType.py +15 -0
- spire/xls/StylesCollection.py +141 -0
- spire/xls/SubtotalTypes.py +26 -0
- spire/xls/TRangeValueType.py +19 -0
- spire/xls/TableBuiltInStyles.py +75 -0
- spire/xls/TextBoxCollection.py +70 -0
- spire/xls/TextBoxShapeBase.py +140 -0
- spire/xls/TextDirection.py +20 -0
- spire/xls/TextDirectionType.py +16 -0
- spire/xls/TextRotationType.py +19 -0
- spire/xls/TextSaveOptions.py +85 -0
- spire/xls/TextVerticalValue.py +19 -0
- spire/xls/ThemeColorType.py +27 -0
- spire/xls/TickLabelPositionType.py +19 -0
- spire/xls/TickMarkType.py +19 -0
- spire/xls/TimePeriodType.py +23 -0
- spire/xls/Top10Filter.py +75 -0
- spire/xls/TopBottom.py +44 -0
- spire/xls/TopBottomType.py +19 -0
- spire/xls/TopFormatType.py +18 -0
- spire/xls/TrendLineType.py +21 -0
- spire/xls/UnderlineStyle.py +32 -0
- spire/xls/UnknownVariableAction.py +18 -0
- spire/xls/UtilityMethods.py +55 -0
- spire/xls/VPageBreak.py +34 -0
- spire/xls/VPageBreaksCollection.py +96 -0
- spire/xls/Validation.py +33 -0
- spire/xls/ValidationComparisonOperator.py +23 -0
- spire/xls/VariableTypeAction.py +19 -0
- spire/xls/VerticalAlignType.py +20 -0
- spire/xls/ViewMode.py +18 -0
- spire/xls/WebQueryConnection.py +224 -0
- spire/xls/Workbook.py +3152 -0
- spire/xls/WorkbookObjectsCollection.py +25 -0
- spire/xls/Worksheet.py +1319 -0
- spire/xls/WorksheetChartsCollection.py +83 -0
- spire/xls/WorksheetConditionalFormats.py +12 -0
- spire/xls/WorksheetCopyType.py +31 -0
- spire/xls/WorksheetVisibility.py +18 -0
- spire/xls/WorksheetsCollection.py +341 -0
- spire/xls/WriteProtection.py +64 -0
- spire/xls/XLSXBorderJoinType.py +19 -0
- spire/xls/XLSXChartBevelType.py +26 -0
- spire/xls/XLSXChartLightingType.py +40 -0
- spire/xls/XLSXChartMaterialType.py +32 -0
- spire/xls/XLSXChartPrespectiveType.py +21 -0
- spire/xls/XLSXChartShadowInnerType.py +25 -0
- spire/xls/XLSXChartShadowOuterType.py +25 -0
- spire/xls/XLSXPivotItemType.py +28 -0
- spire/xls/XlsAddInFunction.py +78 -0
- spire/xls/XlsAddInFunctionsCollection.py +101 -0
- spire/xls/XlsArcShape.py +331 -0
- spire/xls/XlsAutoFiltersCollection.py +119 -0
- spire/xls/XlsBitmapShape.py +297 -0
- spire/xls/XlsBorder.py +172 -0
- spire/xls/XlsBorderArrayWrapper.py +116 -0
- spire/xls/XlsBordersCollection.py +101 -0
- spire/xls/XlsBuiltInDocumentProperties.py +639 -0
- spire/xls/XlsButtonShape.py +137 -0
- spire/xls/XlsChart.py +1510 -0
- spire/xls/XlsChartAxis.py +564 -0
- spire/xls/XlsChartBorder.py +165 -0
- spire/xls/XlsChartCategoryAxis.py +656 -0
- spire/xls/XlsChartDataLabelArea.py +387 -0
- spire/xls/XlsChartDataLabels.py +811 -0
- spire/xls/XlsChartDataPoint.py +108 -0
- spire/xls/XlsChartDataPointsCollection.py +120 -0
- spire/xls/XlsChartDataTable.py +393 -0
- spire/xls/XlsChartDropBar.py +301 -0
- spire/xls/XlsChartFill.py +571 -0
- spire/xls/XlsChartFormat.py +1069 -0
- spire/xls/XlsChartFormatCollection.py +162 -0
- spire/xls/XlsChartFrameFormat.py +614 -0
- spire/xls/XlsChartGridLine.py +171 -0
- spire/xls/XlsChartInterior.py +240 -0
- spire/xls/XlsChartLegend.py +355 -0
- spire/xls/XlsChartLegendArea.py +419 -0
- spire/xls/XlsChartLegendEntry.py +156 -0
- spire/xls/XlsChartPageSetup.py +56 -0
- spire/xls/XlsChartPlotArea.py +12 -0
- spire/xls/XlsChartSerie.py +589 -0
- spire/xls/XlsChartSerieDataFormat.py +1008 -0
- spire/xls/XlsChartSeries.py +111 -0
- spire/xls/XlsChartSeriesAxis.py +212 -0
- spire/xls/XlsChartShape.py +1142 -0
- spire/xls/XlsChartTitleArea.py +392 -0
- spire/xls/XlsChartValueAxis.py +317 -0
- spire/xls/XlsChartWallOrFloor.py +319 -0
- spire/xls/XlsChartsCollection.py +89 -0
- spire/xls/XlsCheckBoxShape.py +156 -0
- spire/xls/XlsComboBoxShape.py +128 -0
- spire/xls/XlsComment.py +234 -0
- spire/xls/XlsCommentsCollection.py +87 -0
- spire/xls/XlsConditionValue.py +111 -0
- spire/xls/XlsConditionalFormat.py +1119 -0
- spire/xls/XlsConditionalFormats.py +590 -0
- spire/xls/XlsDataValidationCollection.py +159 -0
- spire/xls/XlsDataValidationTable.py +105 -0
- spire/xls/XlsDocumentProperty.py +370 -0
- spire/xls/XlsEventArgs.py +93 -0
- spire/xls/XlsEventHandler.py +52 -0
- spire/xls/XlsFill.py +139 -0
- spire/xls/XlsFont.py +364 -0
- spire/xls/XlsFontStyle.py +12 -0
- spire/xls/XlsFontsCollection.py +51 -0
- spire/xls/XlsGradient.py +185 -0
- spire/xls/XlsGradientStop.py +85 -0
- spire/xls/XlsGroupBoxShape.py +88 -0
- spire/xls/XlsHPageBreak.py +105 -0
- spire/xls/XlsHPageBreaksCollection.py +85 -0
- spire/xls/XlsHeaderFooterShapeCollection.py +57 -0
- spire/xls/XlsHyperLink.py +229 -0
- spire/xls/XlsHyperLinksCollection.py +102 -0
- spire/xls/XlsLabelShape.py +73 -0
- spire/xls/XlsLineShape.py +367 -0
- spire/xls/XlsListBoxShape.py +124 -0
- spire/xls/XlsName.py +1871 -0
- spire/xls/XlsObject.py +36 -0
- spire/xls/XlsOvalShape.py +176 -0
- spire/xls/XlsPageSetup.py +220 -0
- spire/xls/XlsPageSetupBase.py +1354 -0
- spire/xls/XlsPicturesCollection.py +365 -0
- spire/xls/XlsPivotCache.py +401 -0
- spire/xls/XlsPivotCacheField.py +209 -0
- spire/xls/XlsPivotCachesCollection.py +124 -0
- spire/xls/XlsPivotField.py +885 -0
- spire/xls/XlsPivotTable.py +905 -0
- spire/xls/XlsPivotTablesCollection.py +131 -0
- spire/xls/XlsPrstGeomShape.py +97 -0
- spire/xls/XlsRadioButtonShape.py +188 -0
- spire/xls/XlsRange.py +3193 -0
- spire/xls/XlsRangesCollection.py +1566 -0
- spire/xls/XlsRectangleShape.py +174 -0
- spire/xls/XlsScrollBarShape.py +146 -0
- spire/xls/XlsShape.py +967 -0
- spire/xls/XlsShapeFill.py +627 -0
- spire/xls/XlsShapeLineFormat.py +341 -0
- spire/xls/XlsSpinnerShape.py +116 -0
- spire/xls/XlsStyle.py +106 -0
- spire/xls/XlsStylesCollection.py +73 -0
- spire/xls/XlsTextBoxShape.py +480 -0
- spire/xls/XlsVPageBreak.py +98 -0
- spire/xls/XlsVPageBreaksCollection.py +84 -0
- spire/xls/XlsValidation.py +520 -0
- spire/xls/XlsValidationWrapper.py +397 -0
- spire/xls/XlsWorkbook.py +1947 -0
- spire/xls/XlsWorkbookObjectsCollection.py +94 -0
- spire/xls/XlsWorksheet.py +4352 -0
- spire/xls/XlsWorksheetBase.py +1273 -0
- spire/xls/XlsWorksheetChartsCollection.py +25 -0
- spire/xls/XlsWorksheetConditionalFormats.py +215 -0
- spire/xls/XlsWorksheetsCollection.py +416 -0
- spire/xls/XmlOpenType.py +14 -0
- spire/xls/__init__.py +723 -0
- spire/xls/common/Boolean.py +192 -0
- spire/xls/common/Byte.py +256 -0
- spire/xls/common/Char.py +740 -0
- spire/xls/common/Color.py +2187 -0
- spire/xls/common/Common.py +150 -0
- spire/xls/common/CultureInfo.py +565 -0
- spire/xls/common/DateTime.py +1147 -0
- spire/xls/common/Double.py +438 -0
- spire/xls/common/EmfType.py +23 -0
- spire/xls/common/Encoding.py +928 -0
- spire/xls/common/FontStyle.py +25 -0
- spire/xls/common/GraphicsUnit.py +27 -0
- spire/xls/common/ICollection.py +70 -0
- spire/xls/common/IDictionary.py +122 -0
- spire/xls/common/IEnumerable.py +41 -0
- spire/xls/common/IEnumerator.py +60 -0
- spire/xls/common/IList.py +145 -0
- spire/xls/common/Int16.py +272 -0
- spire/xls/common/Int32.py +280 -0
- spire/xls/common/Int64.py +256 -0
- spire/xls/common/License.py +175 -0
- spire/xls/common/PixelFormat.py +43 -0
- spire/xls/common/Point.py +298 -0
- spire/xls/common/PointF.py +274 -0
- spire/xls/common/Rectangle.py +449 -0
- spire/xls/common/RectangleF.py +436 -0
- spire/xls/common/Regex.py +962 -0
- spire/xls/common/RegexOptions.py +29 -0
- spire/xls/common/Single.py +416 -0
- spire/xls/common/Size.py +271 -0
- spire/xls/common/SizeF.py +259 -0
- spire/xls/common/SpireObject.py +79 -0
- spire/xls/common/Stream.py +550 -0
- spire/xls/common/String.py +1878 -0
- spire/xls/common/TimeSpan.py +872 -0
- spire/xls/common/UInt16.py +272 -0
- spire/xls/common/UInt32.py +272 -0
- spire/xls/common/UInt64.py +272 -0
- spire/xls/common/__init__.py +316 -0
- spire/xls/lib/Spire.Xls.Base.dll +0 -0
- spire/xls/lib/__init__.py +0 -0
- spire/xls/lib/libSkiaSharp.dll +0 -0
- spire_xls-15.5.0.dist-info/METADATA +197 -0
- spire_xls-15.5.0.dist-info/RECORD +703 -0
- spire_xls-15.5.0.dist-info/WHEEL +5 -0
- spire_xls-15.5.0.dist-info/top_level.txt +1 -0
spire/xls/Worksheet.py
ADDED
|
@@ -0,0 +1,1319 @@
|
|
|
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 Worksheet ( XlsWorksheet) :
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
"""
|
|
13
|
+
@property
|
|
14
|
+
|
|
15
|
+
def AllocatedRange(self)->'CellRange':
|
|
16
|
+
"""
|
|
17
|
+
<summary>
|
|
18
|
+
Returns a Range object that represents the used range on the
|
|
19
|
+
specified worksheet. Read-only.
|
|
20
|
+
</summary>
|
|
21
|
+
"""
|
|
22
|
+
GetDllLibXls().Worksheet_get_AllocatedRange.argtypes=[c_void_p]
|
|
23
|
+
GetDllLibXls().Worksheet_get_AllocatedRange.restype=c_void_p
|
|
24
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_AllocatedRange, self.Ptr)
|
|
25
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
26
|
+
return ret
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@dispatch
|
|
30
|
+
|
|
31
|
+
def get_Item(self ,row:int,column:int,lastRow:int,lastColumn:int)->CellRange:
|
|
32
|
+
"""
|
|
33
|
+
<summary>
|
|
34
|
+
Get cell range.
|
|
35
|
+
</summary>
|
|
36
|
+
<param name="row"></param>
|
|
37
|
+
<param name="column"></param>
|
|
38
|
+
<param name="lastRow"></param>
|
|
39
|
+
<param name="lastColumn"></param>
|
|
40
|
+
<returns></returns>
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
GetDllLibXls().Worksheet_get_Item.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
|
|
44
|
+
GetDllLibXls().Worksheet_get_Item.restype=c_void_p
|
|
45
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_Item, self.Ptr, row,column,lastRow,lastColumn)
|
|
46
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
47
|
+
return ret
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@dispatch
|
|
51
|
+
|
|
52
|
+
def get_Item(self ,row:int,column:int)->CellRange:
|
|
53
|
+
"""
|
|
54
|
+
<summary>
|
|
55
|
+
Get cell range.
|
|
56
|
+
</summary>
|
|
57
|
+
<param name="row"></param>
|
|
58
|
+
<param name="column"></param>
|
|
59
|
+
<returns></returns>
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
GetDllLibXls().Worksheet_get_ItemRC.argtypes=[c_void_p ,c_int,c_int]
|
|
63
|
+
GetDllLibXls().Worksheet_get_ItemRC.restype=c_void_p
|
|
64
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_ItemRC, self.Ptr, row,column)
|
|
65
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
66
|
+
return ret
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
@dispatch
|
|
70
|
+
|
|
71
|
+
def get_Item(self ,name:str)->CellRange:
|
|
72
|
+
"""
|
|
73
|
+
<summary>
|
|
74
|
+
Get cell range.
|
|
75
|
+
</summary>
|
|
76
|
+
<param name="name"></param>
|
|
77
|
+
<returns></returns>
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
GetDllLibXls().Worksheet_get_ItemN.argtypes=[c_void_p ,c_void_p]
|
|
81
|
+
GetDllLibXls().Worksheet_get_ItemN.restype=c_void_p
|
|
82
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_ItemN, self.Ptr, name)
|
|
83
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
84
|
+
return ret
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
|
|
89
|
+
def MergedCells(self)->'ListCellRanges':
|
|
90
|
+
"""
|
|
91
|
+
<summary>
|
|
92
|
+
Returns all merged ranges. Read-only.
|
|
93
|
+
<example>The following code illustrates how to get the merged ranges:
|
|
94
|
+
<code>
|
|
95
|
+
//Create worksheet
|
|
96
|
+
Workbook workbook = new Workbook();
|
|
97
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
98
|
+
//Merge cells
|
|
99
|
+
worksheet["C2:D2"].Merge();
|
|
100
|
+
worksheet["F3:G3"].Merge();
|
|
101
|
+
//Get merged ranges
|
|
102
|
+
IXLSRange[] mergedRanges = worksheet.MergedCells;
|
|
103
|
+
//Get merged range count . Output will be 2
|
|
104
|
+
Console.Write(mergedRanges.Length);
|
|
105
|
+
//Save to file
|
|
106
|
+
workbook.SaveToFile("MergedCells.xlsx");
|
|
107
|
+
</code>
|
|
108
|
+
</example>
|
|
109
|
+
</summary>
|
|
110
|
+
"""
|
|
111
|
+
GetDllLibXls().Worksheet_get_MergedCells.argtypes=[c_void_p]
|
|
112
|
+
GetDllLibXls().Worksheet_get_MergedCells.restype=c_void_p
|
|
113
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_MergedCells, self.Ptr)
|
|
114
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
115
|
+
return ret
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def FindAll(self ,findValue:str,flags:'FindType',findOptions:'ExcelFindOptions')->'ListCellRanges':
|
|
120
|
+
"""
|
|
121
|
+
<summary>
|
|
122
|
+
Finds the all cells with specified string value.
|
|
123
|
+
</summary>
|
|
124
|
+
<param name="findValue">Value to search.</param>
|
|
125
|
+
<param name="flags">Type of value to search.</param>
|
|
126
|
+
<param name="findOptions">Way to search.</param>
|
|
127
|
+
<returns>All found cells, or Null if value was not found.</returns>
|
|
128
|
+
"""
|
|
129
|
+
enumflags:c_int = flags.value
|
|
130
|
+
enumfindOptions:c_int = findOptions.value
|
|
131
|
+
|
|
132
|
+
GetDllLibXls().Worksheet_FindAll.argtypes=[c_void_p ,c_void_p,c_int,c_int]
|
|
133
|
+
GetDllLibXls().Worksheet_FindAll.restype=c_void_p
|
|
134
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_FindAll, self.Ptr, findValue,enumflags,enumfindOptions)
|
|
135
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
136
|
+
return ret
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
def FindAllNumber(self ,doubleValue:float,formulaValue:bool)->'ListCellRanges':
|
|
141
|
+
"""
|
|
142
|
+
<summary>
|
|
143
|
+
Finds the cell with the input number.
|
|
144
|
+
</summary>
|
|
145
|
+
<param name="doubleValue">Double value to search for.</param>
|
|
146
|
+
<param name="formulaValue">Indicates if includes formula value.</param>
|
|
147
|
+
<returns>Found ranges.</returns>
|
|
148
|
+
"""
|
|
149
|
+
|
|
150
|
+
GetDllLibXls().Worksheet_FindAllNumber.argtypes=[c_void_p ,c_double,c_bool]
|
|
151
|
+
GetDllLibXls().Worksheet_FindAllNumber.restype=c_void_p
|
|
152
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_FindAllNumber, self.Ptr, doubleValue,formulaValue)
|
|
153
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
154
|
+
return ret
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
@dispatch
|
|
158
|
+
def FindAllString(self ,stringValue:str,formula:bool,formulaValue:bool)->ListCellRanges:
|
|
159
|
+
"""
|
|
160
|
+
<summary>
|
|
161
|
+
Finds the cell with the input string.
|
|
162
|
+
</summary>
|
|
163
|
+
<param name="stringValue">String value to search for.</param>
|
|
164
|
+
<param name="formula">Indicates if includes formula.</param>
|
|
165
|
+
<param name="formulaValue">Indicates if includes formula value.</param>
|
|
166
|
+
<returns>Found ranges.</returns>
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
GetDllLibXls().Worksheet_FindAllString.argtypes=[c_void_p ,c_void_p,c_bool,c_bool]
|
|
170
|
+
GetDllLibXls().Worksheet_FindAllString.restype=c_void_p
|
|
171
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_FindAllString, self.Ptr, stringValue,formula,formulaValue)
|
|
172
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
173
|
+
return ret
|
|
174
|
+
|
|
175
|
+
@dispatch
|
|
176
|
+
def FindAllString(self ,stringValue:str,formula:bool,formulaValue:bool,igRegex:bool)->ListCellRanges:
|
|
177
|
+
"""
|
|
178
|
+
<summary>
|
|
179
|
+
Finds the cell with the input string.
|
|
180
|
+
</summary>
|
|
181
|
+
<param name="stringValue">String value to search for.</param>
|
|
182
|
+
<param name="formula">Indicates if includes formula.</param>
|
|
183
|
+
<param name="formulaValue">Indicates if includes formula value.</param>
|
|
184
|
+
<param name="isRegex">Indicates if stringValue param is regex.</param>
|
|
185
|
+
<returns>Found ranges.</returns>
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
GetDllLibXls().Worksheet_FindAllStringSFFI.argtypes=[c_void_p ,c_void_p,c_bool,c_bool,c_bool]
|
|
189
|
+
GetDllLibXls().Worksheet_FindAllStringSFFI.restype=c_void_p
|
|
190
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_FindAllStringSFFI, self.Ptr, stringValue,formula,formulaValue,igRegex)
|
|
191
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
192
|
+
return ret
|
|
193
|
+
|
|
194
|
+
def FindAllDateTime(self ,dateTimeValue:'DateTime')->'ListCellRanges':
|
|
195
|
+
"""
|
|
196
|
+
<summary>
|
|
197
|
+
Finds the cell with the input date time.
|
|
198
|
+
</summary>
|
|
199
|
+
<param name="dateTimeValue">Datetime value to search for.</param>
|
|
200
|
+
<returns>Found ranges.</returns>
|
|
201
|
+
"""
|
|
202
|
+
intPtrdateTimeValue:c_void_p = dateTimeValue.Ptr
|
|
203
|
+
|
|
204
|
+
GetDllLibXls().Worksheet_FindAllDateTime.argtypes=[c_void_p ,c_void_p]
|
|
205
|
+
GetDllLibXls().Worksheet_FindAllDateTime.restype=c_void_p
|
|
206
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_FindAllDateTime, self.Ptr, intPtrdateTimeValue)
|
|
207
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
208
|
+
return ret
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
def FindAllTimeSpan(self ,timeSpanValue:'TimeSpan')->'ListCellRanges':
|
|
213
|
+
"""
|
|
214
|
+
<summary>
|
|
215
|
+
Finds the cell with the input time span.
|
|
216
|
+
</summary>
|
|
217
|
+
<param name="timeSpanValue">Time span value to search for.</param>
|
|
218
|
+
<returns>Found ranges.</returns>
|
|
219
|
+
"""
|
|
220
|
+
intPtrtimeSpanValue:c_void_p = timeSpanValue.Ptr
|
|
221
|
+
|
|
222
|
+
GetDllLibXls().Worksheet_FindAllTimeSpan.argtypes=[c_void_p ,c_void_p]
|
|
223
|
+
GetDllLibXls().Worksheet_FindAllTimeSpan.restype=c_void_p
|
|
224
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_FindAllTimeSpan, self.Ptr, intPtrtimeSpanValue)
|
|
225
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
226
|
+
return ret
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
def FindAllBool(self ,boolValue:bool)->'ListCellRanges':
|
|
231
|
+
"""
|
|
232
|
+
<summary>
|
|
233
|
+
Finds the cell with the input bool.
|
|
234
|
+
</summary>
|
|
235
|
+
<param name="boolValue">Bool value to search for.</param>
|
|
236
|
+
<returns>Found ranges.</returns>
|
|
237
|
+
"""
|
|
238
|
+
|
|
239
|
+
GetDllLibXls().Worksheet_FindAllBool.argtypes=[c_void_p ,c_bool]
|
|
240
|
+
GetDllLibXls().Worksheet_FindAllBool.restype=c_void_p
|
|
241
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_FindAllBool, self.Ptr, boolValue)
|
|
242
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
243
|
+
return ret
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
def FindBool(self ,boolValue:bool)->'CellRange':
|
|
248
|
+
"""
|
|
249
|
+
<summary>
|
|
250
|
+
Finds the cell with the input bool.
|
|
251
|
+
</summary>
|
|
252
|
+
<param name="boolValue">Bool value to search for.</param>
|
|
253
|
+
<returns>Found range.</returns>
|
|
254
|
+
"""
|
|
255
|
+
|
|
256
|
+
GetDllLibXls().Worksheet_FindBool.argtypes=[c_void_p ,c_bool]
|
|
257
|
+
GetDllLibXls().Worksheet_FindBool.restype=c_void_p
|
|
258
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_FindBool, self.Ptr, boolValue)
|
|
259
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
260
|
+
return ret
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
def FindNumber(self ,doubleValue:float,formulaValue:bool)->'CellRange':
|
|
265
|
+
"""
|
|
266
|
+
<summary>
|
|
267
|
+
Finds the cell with the input double.
|
|
268
|
+
</summary>
|
|
269
|
+
<param name="doubleValue">Double value to search for.</param>
|
|
270
|
+
<param name="formulaValue">Indicates if includes formula value.</param>
|
|
271
|
+
<returns>Found range.</returns>
|
|
272
|
+
"""
|
|
273
|
+
|
|
274
|
+
GetDllLibXls().Worksheet_FindNumber.argtypes=[c_void_p ,c_double,c_bool]
|
|
275
|
+
GetDllLibXls().Worksheet_FindNumber.restype=c_void_p
|
|
276
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_FindNumber, self.Ptr, doubleValue,formulaValue)
|
|
277
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
278
|
+
return ret
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def FindString(self ,stringValue:str,formula:bool,formulaValue:bool)->'CellRange':
|
|
283
|
+
"""
|
|
284
|
+
<summary>
|
|
285
|
+
Finds the cell with the input string.
|
|
286
|
+
</summary>
|
|
287
|
+
<param name="stringValue">String value to search for.</param>
|
|
288
|
+
<param name="formula">Indicates whether includes formula.</param>
|
|
289
|
+
<param name="formulaValue">Indicates whether includes formula value.</param>
|
|
290
|
+
<returns>Found range.</returns>
|
|
291
|
+
"""
|
|
292
|
+
|
|
293
|
+
GetDllLibXls().Worksheet_FindString.argtypes=[c_void_p ,c_void_p,c_bool,c_bool]
|
|
294
|
+
GetDllLibXls().Worksheet_FindString.restype=c_void_p
|
|
295
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_FindString, self.Ptr, stringValue,formula,formulaValue)
|
|
296
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
297
|
+
return ret
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
def FindDateTime(self ,dateTimeValue:'DateTime')->'CellRange':
|
|
302
|
+
"""
|
|
303
|
+
<summary>
|
|
304
|
+
Finds the cell with the input date time.
|
|
305
|
+
</summary>
|
|
306
|
+
<param name="dateTimeValue">DateTime value to search for.</param>
|
|
307
|
+
<returns>Found range.</returns>
|
|
308
|
+
"""
|
|
309
|
+
intPtrdateTimeValue:c_void_p = dateTimeValue.Ptr
|
|
310
|
+
|
|
311
|
+
GetDllLibXls().Worksheet_FindDateTime.argtypes=[c_void_p ,c_void_p]
|
|
312
|
+
GetDllLibXls().Worksheet_FindDateTime.restype=c_void_p
|
|
313
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_FindDateTime, self.Ptr, intPtrdateTimeValue)
|
|
314
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
315
|
+
return ret
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
def FindTimeSpan(self ,timeSpanValue:'TimeSpan')->'CellRange':
|
|
320
|
+
"""
|
|
321
|
+
<summary>
|
|
322
|
+
Finds the cell with the input time span.
|
|
323
|
+
</summary>
|
|
324
|
+
<param name="timeSpanValue">Time span value to search for.</param>
|
|
325
|
+
<returns>Found range.</returns>
|
|
326
|
+
"""
|
|
327
|
+
intPtrtimeSpanValue:c_void_p = timeSpanValue.Ptr
|
|
328
|
+
|
|
329
|
+
GetDllLibXls().Worksheet_FindTimeSpan.argtypes=[c_void_p ,c_void_p]
|
|
330
|
+
GetDllLibXls().Worksheet_FindTimeSpan.restype=c_void_p
|
|
331
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_FindTimeSpan, self.Ptr, intPtrtimeSpanValue)
|
|
332
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
333
|
+
return ret
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
def CopyFrom(self ,worksheet:'Worksheet'):
|
|
338
|
+
"""
|
|
339
|
+
<summary>
|
|
340
|
+
Copy data from specified worksheet.
|
|
341
|
+
</summary>
|
|
342
|
+
<param name="worksheet">worksheet object</param>
|
|
343
|
+
"""
|
|
344
|
+
intPtrworksheet:c_void_p = worksheet.Ptr
|
|
345
|
+
|
|
346
|
+
GetDllLibXls().Worksheet_CopyFrom.argtypes=[c_void_p ,c_void_p]
|
|
347
|
+
CallCFunction(GetDllLibXls().Worksheet_CopyFrom, self.Ptr, intPtrworksheet)
|
|
348
|
+
|
|
349
|
+
@dispatch
|
|
350
|
+
|
|
351
|
+
def Copy(self ,sourceRange:CellRange,destRange:CellRange):
|
|
352
|
+
"""
|
|
353
|
+
<summary>
|
|
354
|
+
Copys data from a source range to a destination range.
|
|
355
|
+
</summary>
|
|
356
|
+
<param name="sourceRange">Source range.</param>
|
|
357
|
+
<param name="destRange">Destination range.</param>
|
|
358
|
+
"""
|
|
359
|
+
intPtrsourceRange:c_void_p = sourceRange.Ptr
|
|
360
|
+
intPtrdestRange:c_void_p = destRange.Ptr
|
|
361
|
+
|
|
362
|
+
GetDllLibXls().Worksheet_Copy.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
363
|
+
CallCFunction(GetDllLibXls().Worksheet_Copy, self.Ptr, intPtrsourceRange,intPtrdestRange)
|
|
364
|
+
|
|
365
|
+
@dispatch
|
|
366
|
+
|
|
367
|
+
def Copy(self ,sourceRange:CellRange,destRange:CellRange,copyStyle:bool):
|
|
368
|
+
"""
|
|
369
|
+
<summary>
|
|
370
|
+
Copys data from a source range to a destination range.
|
|
371
|
+
</summary>
|
|
372
|
+
<param name="sourceRange">Source range.</param>
|
|
373
|
+
<param name="destRange">Destination range.</param>
|
|
374
|
+
<param name="copyStyle">Indicates whether copys styles.</param>
|
|
375
|
+
"""
|
|
376
|
+
intPtrsourceRange:c_void_p = sourceRange.Ptr
|
|
377
|
+
intPtrdestRange:c_void_p = destRange.Ptr
|
|
378
|
+
|
|
379
|
+
GetDllLibXls().Worksheet_CopySDC.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool]
|
|
380
|
+
CallCFunction(GetDllLibXls().Worksheet_CopySDC, self.Ptr, intPtrsourceRange,intPtrdestRange,copyStyle)
|
|
381
|
+
|
|
382
|
+
@dispatch
|
|
383
|
+
def Copy(self ,sourceRange:CellRange,destRange:CellRange,copyStyle:bool,updateReference:bool,ignoreSize:bool):
|
|
384
|
+
"""
|
|
385
|
+
<summary>
|
|
386
|
+
Copys data from a source range to a destination range.
|
|
387
|
+
</summary>
|
|
388
|
+
<param name="sourceRange">Source range.</param>
|
|
389
|
+
<param name="destRange">Destination range</param>
|
|
390
|
+
<param name="copyStyle">Indicates whether copy styles.</param>
|
|
391
|
+
<param name="updateReference">Indicates whether update reference ranges.</param>
|
|
392
|
+
<param name="ignoreSize">Indicates whether check range sizes.</param>
|
|
393
|
+
"""
|
|
394
|
+
intPtrsourceRange:c_void_p = sourceRange.Ptr
|
|
395
|
+
intPtrdestRange:c_void_p = destRange.Ptr
|
|
396
|
+
|
|
397
|
+
GetDllLibXls().Worksheet_CopySDCUI.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool,c_bool,c_bool]
|
|
398
|
+
CallCFunction(GetDllLibXls().Worksheet_CopySDCUI, self.Ptr, intPtrsourceRange,intPtrdestRange,copyStyle,updateReference,ignoreSize)
|
|
399
|
+
|
|
400
|
+
@dispatch
|
|
401
|
+
|
|
402
|
+
def Copy(self ,sourceRange:CellRange,worksheet:'Worksheet',destRow:int,destColumn:int):
|
|
403
|
+
"""
|
|
404
|
+
<summary>
|
|
405
|
+
Copy data from source range to destination worksheet.
|
|
406
|
+
</summary>
|
|
407
|
+
<param name="sourceRange">Source range.</param>
|
|
408
|
+
<param name="worksheet">Destination worksheet</param>
|
|
409
|
+
<param name="destRow">Row index of destination worksheet.</param>
|
|
410
|
+
<param name="destColumn">Column index of destination worksheet.</param>
|
|
411
|
+
"""
|
|
412
|
+
intPtrsourceRange:c_void_p = sourceRange.Ptr
|
|
413
|
+
intPtrworksheet:c_void_p = worksheet.Ptr
|
|
414
|
+
|
|
415
|
+
GetDllLibXls().Worksheet_CopySWDD.argtypes=[c_void_p ,c_void_p,c_void_p,c_int,c_int]
|
|
416
|
+
CallCFunction(GetDllLibXls().Worksheet_CopySWDD, self.Ptr, intPtrsourceRange,intPtrworksheet,destRow,destColumn)
|
|
417
|
+
|
|
418
|
+
@dispatch
|
|
419
|
+
|
|
420
|
+
def Copy(self ,sourceRange:CellRange,worksheet:'Worksheet',destRow:int,destColumn:int,copyStyle:bool):
|
|
421
|
+
"""
|
|
422
|
+
<summary>
|
|
423
|
+
Copy data from source range to destination worksheet.
|
|
424
|
+
</summary>
|
|
425
|
+
<param name="sourceRange">Source range</param>
|
|
426
|
+
<param name="worksheet">Destination worksheet.</param>
|
|
427
|
+
<param name="destRow">Row index of destination worksheet.</param>
|
|
428
|
+
<param name="destColumn">Column index of destination worksheet.</param>
|
|
429
|
+
<param name="copyStyle">Indicates whehter copy styles.</param>
|
|
430
|
+
"""
|
|
431
|
+
intPtrsourceRange:c_void_p = sourceRange.Ptr
|
|
432
|
+
intPtrworksheet:c_void_p = worksheet.Ptr
|
|
433
|
+
|
|
434
|
+
GetDllLibXls().Worksheet_CopySWDDC.argtypes=[c_void_p ,c_void_p,c_void_p,c_int,c_int,c_bool]
|
|
435
|
+
CallCFunction(GetDllLibXls().Worksheet_CopySWDDC, self.Ptr, intPtrsourceRange,intPtrworksheet,destRow,destColumn,copyStyle)
|
|
436
|
+
|
|
437
|
+
@dispatch
|
|
438
|
+
|
|
439
|
+
def Copy(self ,sourceRange:CellRange,worksheet:'Worksheet',destRow:int,destColumn:int,copyStyle:bool,updateRerence:bool):
|
|
440
|
+
"""
|
|
441
|
+
<summary>
|
|
442
|
+
Copy data from source range to destination worksheet.
|
|
443
|
+
</summary>
|
|
444
|
+
<param name="sourceRange">Source range</param>
|
|
445
|
+
<param name="worksheet">Destination worksheet.</param>
|
|
446
|
+
<param name="destRow">Row index of destination worksheet.</param>
|
|
447
|
+
<param name="destColumn">Column index of destination worksheet.</param>
|
|
448
|
+
<param name="copyStyle">Indicates whehter copy styles.</param>
|
|
449
|
+
<param name="updateRerence">Indicates whether update reference range.</param>
|
|
450
|
+
"""
|
|
451
|
+
intPtrsourceRange:c_void_p = sourceRange.Ptr
|
|
452
|
+
intPtrworksheet:c_void_p = worksheet.Ptr
|
|
453
|
+
|
|
454
|
+
GetDllLibXls().Worksheet_CopySWDDCU.argtypes=[c_void_p ,c_void_p,c_void_p,c_int,c_int,c_bool,c_bool]
|
|
455
|
+
CallCFunction(GetDllLibXls().Worksheet_CopySWDDCU, self.Ptr, intPtrsourceRange,intPtrworksheet,destRow,destColumn,copyStyle,updateRerence)
|
|
456
|
+
|
|
457
|
+
@dispatch
|
|
458
|
+
|
|
459
|
+
def Copy(self ,sourceRange:CellRange,destRange:CellRange,copyStyle:bool,updateReference:bool,ignoreSize:bool,copyShape:bool):
|
|
460
|
+
"""
|
|
461
|
+
<summary>
|
|
462
|
+
Copys data from a source range to a destination range.
|
|
463
|
+
</summary>
|
|
464
|
+
<param name="sourceRange">Source range.</param>
|
|
465
|
+
<param name="destRange">Destination range</param>
|
|
466
|
+
<param name="copyStyle">Indicates whether copy styles.</param>
|
|
467
|
+
<param name="updateReference">Indicates whether update reference ranges.</param>
|
|
468
|
+
<param name="ignoreSize">Indicates whether check range sizes.</param>
|
|
469
|
+
<param name="copyShape">Indicates whether copy shape.</param>
|
|
470
|
+
"""
|
|
471
|
+
intPtrsourceRange:c_void_p = sourceRange.Ptr
|
|
472
|
+
intPtrdestRange:c_void_p = destRange.Ptr
|
|
473
|
+
|
|
474
|
+
GetDllLibXls().Worksheet_CopySDCUIC.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool,c_bool,c_bool,c_bool]
|
|
475
|
+
CallCFunction(GetDllLibXls().Worksheet_CopySDCUIC, self.Ptr, intPtrsourceRange,intPtrdestRange,copyStyle,updateReference,ignoreSize,copyShape)
|
|
476
|
+
|
|
477
|
+
@dispatch
|
|
478
|
+
|
|
479
|
+
def Copy(self ,sourceRange:CellRange,destRange:CellRange,copyOptions:CopyRangeOptions):
|
|
480
|
+
"""
|
|
481
|
+
<summary>
|
|
482
|
+
Copys data from a source range to a destination range.
|
|
483
|
+
</summary>
|
|
484
|
+
<param name="sourceRange">Source range.</param>
|
|
485
|
+
<param name="destRange">Destination range</param>
|
|
486
|
+
<param name="copyOptions">Copy options.</param>
|
|
487
|
+
"""
|
|
488
|
+
intPtrsourceRange:c_void_p = sourceRange.Ptr
|
|
489
|
+
intPtrdestRange:c_void_p = destRange.Ptr
|
|
490
|
+
enumcopyOptions:c_int = copyOptions.value
|
|
491
|
+
|
|
492
|
+
GetDllLibXls().Worksheet_CopySDC1.argtypes=[c_void_p ,c_void_p,c_void_p,c_int]
|
|
493
|
+
CallCFunction(GetDllLibXls().Worksheet_CopySDC1, self.Ptr, intPtrsourceRange,intPtrdestRange,enumcopyOptions)
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
def CopyRow(self ,sourceRow:'CellRange',destSheet:'Worksheet',destRowIndex:int,copyOptions:'CopyRangeOptions'):
|
|
497
|
+
"""
|
|
498
|
+
<summary>
|
|
499
|
+
Copys data from a source row to a destination row.
|
|
500
|
+
</summary>
|
|
501
|
+
<param name="sourceRow">Source row.</param>
|
|
502
|
+
<param name="destSheet">Destination sheet</param>
|
|
503
|
+
<param name="destRowIndex">Destination row index</param>
|
|
504
|
+
<param name="copyOptions">Copy options.</param>
|
|
505
|
+
"""
|
|
506
|
+
intPtrsourceRow:c_void_p = sourceRow.Ptr
|
|
507
|
+
intPtrdestSheet:c_void_p = destSheet.Ptr
|
|
508
|
+
enumcopyOptions:c_int = copyOptions.value
|
|
509
|
+
|
|
510
|
+
GetDllLibXls().Worksheet_CopyRow.argtypes=[c_void_p ,c_void_p,c_void_p,c_int,c_int]
|
|
511
|
+
CallCFunction(GetDllLibXls().Worksheet_CopyRow, self.Ptr, intPtrsourceRow,intPtrdestSheet,destRowIndex,enumcopyOptions)
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
def CopyColumn(self ,sourceColumn:'CellRange',destSheet:'Worksheet',destColIndex:int,copyOptions:'CopyRangeOptions'):
|
|
515
|
+
"""
|
|
516
|
+
<summary>
|
|
517
|
+
Copys data from a source column to a destination column.
|
|
518
|
+
</summary>
|
|
519
|
+
<param name="sourceColumn">Source column.</param>
|
|
520
|
+
<param name="destSheet">Destination sheet</param>
|
|
521
|
+
<param name="destColIndex">Destination column index</param>
|
|
522
|
+
<param name="copyOptions">Copy options.</param>
|
|
523
|
+
"""
|
|
524
|
+
intPtrsourceColumn:c_void_p = sourceColumn.Ptr
|
|
525
|
+
intPtrdestSheet:c_void_p = destSheet.Ptr
|
|
526
|
+
enumcopyOptions:c_int = copyOptions.value
|
|
527
|
+
|
|
528
|
+
GetDllLibXls().Worksheet_CopyColumn.argtypes=[c_void_p ,c_void_p,c_void_p,c_int,c_int]
|
|
529
|
+
CallCFunction(GetDllLibXls().Worksheet_CopyColumn, self.Ptr, intPtrsourceColumn,intPtrdestSheet,destColIndex,enumcopyOptions)
|
|
530
|
+
|
|
531
|
+
@dispatch
|
|
532
|
+
|
|
533
|
+
def Move(self ,sourceRange:CellRange,destRange:CellRange):
|
|
534
|
+
"""
|
|
535
|
+
<summary>
|
|
536
|
+
Move data from source range to destination range.
|
|
537
|
+
</summary>
|
|
538
|
+
<param name="sourceRange">Source range.</param>
|
|
539
|
+
<param name="destRange">Destination range.</param>
|
|
540
|
+
"""
|
|
541
|
+
intPtrsourceRange:c_void_p = sourceRange.Ptr
|
|
542
|
+
intPtrdestRange:c_void_p = destRange.Ptr
|
|
543
|
+
|
|
544
|
+
GetDllLibXls().Worksheet_Move.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
545
|
+
CallCFunction(GetDllLibXls().Worksheet_Move, self.Ptr, intPtrsourceRange,intPtrdestRange)
|
|
546
|
+
|
|
547
|
+
@dispatch
|
|
548
|
+
|
|
549
|
+
def Move(self ,sourceRange:CellRange,destRange:CellRange,updateReference:bool,copyStyle:bool):
|
|
550
|
+
"""
|
|
551
|
+
|
|
552
|
+
"""
|
|
553
|
+
intPtrsourceRange:c_void_p = sourceRange.Ptr
|
|
554
|
+
intPtrdestRange:c_void_p = destRange.Ptr
|
|
555
|
+
|
|
556
|
+
GetDllLibXls().Worksheet_MoveSDUC.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool,c_bool]
|
|
557
|
+
CallCFunction(GetDllLibXls().Worksheet_MoveSDUC, self.Ptr, intPtrsourceRange,intPtrdestRange,updateReference,copyStyle)
|
|
558
|
+
|
|
559
|
+
# @dispatch
|
|
560
|
+
#
|
|
561
|
+
# def ExportDataTable(self ,range:CellRange,exportColumnNames:bool)->DataTable:
|
|
562
|
+
# """
|
|
563
|
+
# <summary>
|
|
564
|
+
# Exports worksheet data into a DataTable.
|
|
565
|
+
# </summary>
|
|
566
|
+
# <param name="range">Range to export.</param>
|
|
567
|
+
# <param name="exportColumnNames">Indicates if export column name.</param>
|
|
568
|
+
# <returns>exported datatable</returns>
|
|
569
|
+
# """
|
|
570
|
+
# intPtrrange:c_void_p = range.Ptr
|
|
571
|
+
#
|
|
572
|
+
# GetDllLibXls().Worksheet_ExportDataTable.argtypes=[c_void_p ,c_void_p,c_bool]
|
|
573
|
+
# GetDllLibXls().Worksheet_ExportDataTable.restype=c_void_p
|
|
574
|
+
# intPtr = CallCFunction(GetDllLibXls().Worksheet_ExportDataTable, self.Ptr, intPtrrange,exportColumnNames)
|
|
575
|
+
# ret = None if intPtr==None else DataTable(intPtr)
|
|
576
|
+
# return ret
|
|
577
|
+
#
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
# @dispatch
|
|
581
|
+
#
|
|
582
|
+
# def ExportDataTable(self ,range:CellRange,options:ExportTableOptions)->DataTable:
|
|
583
|
+
# """
|
|
584
|
+
#
|
|
585
|
+
# """
|
|
586
|
+
# intPtrrange:c_void_p = range.Ptr
|
|
587
|
+
# intPtroptions:c_void_p = options.Ptr
|
|
588
|
+
#
|
|
589
|
+
# GetDllLibXls().Worksheet_ExportDataTableRO.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
590
|
+
# GetDllLibXls().Worksheet_ExportDataTableRO.restype=c_void_p
|
|
591
|
+
# intPtr = CallCFunction(GetDllLibXls().Worksheet_ExportDataTableRO, self.Ptr, intPtrrange,intPtroptions)
|
|
592
|
+
# ret = None if intPtr==None else DataTable(intPtr)
|
|
593
|
+
# return ret
|
|
594
|
+
#
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
# @dispatch
|
|
598
|
+
#
|
|
599
|
+
# def ExportDataTable(self ,firstRow:int,firstColumn:int,maxRows:int,maxColumns:int,options:ExportTableOptions)->DataTable:
|
|
600
|
+
# """
|
|
601
|
+
#
|
|
602
|
+
# """
|
|
603
|
+
# intPtroptions:c_void_p = options.Ptr
|
|
604
|
+
#
|
|
605
|
+
# GetDllLibXls().Worksheet_ExportDataTableFFMMO.argtypes=[c_void_p ,c_int,c_int,c_int,c_int,c_void_p]
|
|
606
|
+
# GetDllLibXls().Worksheet_ExportDataTableFFMMO.restype=c_void_p
|
|
607
|
+
# intPtr = CallCFunction(GetDllLibXls().Worksheet_ExportDataTableFFMMO, self.Ptr, firstRow,firstColumn,maxRows,maxColumns,intPtroptions)
|
|
608
|
+
# ret = None if intPtr==None else DataTable(intPtr)
|
|
609
|
+
# return ret
|
|
610
|
+
#
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
# @dispatch
|
|
614
|
+
#
|
|
615
|
+
# def ExportDataTable(self ,range:CellRange,exportColumnNames:bool,computedFormulaValue:bool)->DataTable:
|
|
616
|
+
# """
|
|
617
|
+
# <summary>
|
|
618
|
+
# Exports worksheet data into a DataTable.
|
|
619
|
+
# </summary>
|
|
620
|
+
# <param name="range">Range to export.</param>
|
|
621
|
+
# <param name="exportColumnNames">Indicates if export column name.</param>
|
|
622
|
+
# <param name="computedFormulaValue">Indicates wheter compute formula value.</param>
|
|
623
|
+
# <returns>exported datatable</returns>
|
|
624
|
+
# """
|
|
625
|
+
# intPtrrange:c_void_p = range.Ptr
|
|
626
|
+
#
|
|
627
|
+
# GetDllLibXls().Worksheet_ExportDataTableREC.argtypes=[c_void_p ,c_void_p,c_bool,c_bool]
|
|
628
|
+
# GetDllLibXls().Worksheet_ExportDataTableREC.restype=c_void_p
|
|
629
|
+
# intPtr = CallCFunction(GetDllLibXls().Worksheet_ExportDataTableREC, self.Ptr, intPtrrange,exportColumnNames,computedFormulaValue)
|
|
630
|
+
# ret = None if intPtr==None else DataTable(intPtr)
|
|
631
|
+
# return ret
|
|
632
|
+
#
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
# @dispatch
|
|
636
|
+
#
|
|
637
|
+
# def ExportDataTable(self ,firstRow:int,firstColumn:int,maxRows:int,maxColumns:int,exportColumnNames:bool)->DataTable:
|
|
638
|
+
# """
|
|
639
|
+
# <summary>
|
|
640
|
+
# Exports worksheet data into a DataTable
|
|
641
|
+
# </summary>
|
|
642
|
+
# <param name="firstRow">Row of first cell.</param>
|
|
643
|
+
# <param name="firstColumn">Column of first cell.</param>
|
|
644
|
+
# <param name="maxRows">Maximun rows to export.</param>
|
|
645
|
+
# <param name="maxColumns">Maximun columns to export.</param>
|
|
646
|
+
# <param name="exportColumnNames">Indicates if export column name.</param>
|
|
647
|
+
# <returns>Exported datatable.</returns>
|
|
648
|
+
# """
|
|
649
|
+
#
|
|
650
|
+
# GetDllLibXls().Worksheet_ExportDataTableFFMME.argtypes=[c_void_p ,c_int,c_int,c_int,c_int,c_bool]
|
|
651
|
+
# GetDllLibXls().Worksheet_ExportDataTableFFMME.restype=c_void_p
|
|
652
|
+
# intPtr = CallCFunction(GetDllLibXls().Worksheet_ExportDataTableFFMME, self.Ptr, firstRow,firstColumn,maxRows,maxColumns,exportColumnNames)
|
|
653
|
+
# ret = None if intPtr==None else DataTable(intPtr)
|
|
654
|
+
# return ret
|
|
655
|
+
#
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
def GetIntersectRanges(self ,range1:'CellRange',range2:'CellRange')->'CellRange':
|
|
660
|
+
"""
|
|
661
|
+
<summary>
|
|
662
|
+
Intersects two ranges.
|
|
663
|
+
</summary>
|
|
664
|
+
<param name="range1">First range.</param>
|
|
665
|
+
<param name="range2">Second range.</param>
|
|
666
|
+
<returns>Intersection of two ranges</returns>
|
|
667
|
+
"""
|
|
668
|
+
intPtrrange1:c_void_p = range1.Ptr
|
|
669
|
+
intPtrrange2:c_void_p = range2.Ptr
|
|
670
|
+
|
|
671
|
+
GetDllLibXls().Worksheet_GetIntersectRanges.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
672
|
+
GetDllLibXls().Worksheet_GetIntersectRanges.restype=c_void_p
|
|
673
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_GetIntersectRanges, self.Ptr, intPtrrange1,intPtrrange2)
|
|
674
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
675
|
+
return ret
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
#@property
|
|
679
|
+
|
|
680
|
+
#def GroupShapeCollection(self)->'GroupShapeCollection':
|
|
681
|
+
# """
|
|
682
|
+
#<summary>
|
|
683
|
+
# Get group shapes in worksheet.
|
|
684
|
+
#</summary>
|
|
685
|
+
# """
|
|
686
|
+
# GetDllLibXls().Worksheet_get_GroupShapeCollection.argtypes=[c_void_p]
|
|
687
|
+
# GetDllLibXls().Worksheet_get_GroupShapeCollection.restype=c_void_p
|
|
688
|
+
# intPtr = CallCFunction(GetDllLibXls().Worksheet_get_GroupShapeCollection, self.Ptr)
|
|
689
|
+
# ret = None if intPtr==None else GroupShapeCollection(intPtr)
|
|
690
|
+
# return ret
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
def Merge(self ,range1:'CellRange',range2:'CellRange')->'CellRange':
|
|
695
|
+
"""
|
|
696
|
+
<summary>
|
|
697
|
+
Combines a range of cells into a single cell.
|
|
698
|
+
</summary>
|
|
699
|
+
<param name="range1">First range.</param>
|
|
700
|
+
<param name="range2">Second range.</param>
|
|
701
|
+
<returns>Merged ranges</returns>
|
|
702
|
+
"""
|
|
703
|
+
intPtrrange1:c_void_p = range1.Ptr
|
|
704
|
+
intPtrrange2:c_void_p = range2.Ptr
|
|
705
|
+
|
|
706
|
+
GetDllLibXls().Worksheet_Merge.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
707
|
+
GetDllLibXls().Worksheet_Merge.restype=c_void_p
|
|
708
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_Merge, self.Ptr, intPtrrange1,intPtrrange2)
|
|
709
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
710
|
+
return ret
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
@dispatch
|
|
714
|
+
|
|
715
|
+
def SetDefaultColumnStyle(self ,columnIndex:int,defaultStyle:CellStyle):
|
|
716
|
+
"""
|
|
717
|
+
<summary>
|
|
718
|
+
Sets default style for column.
|
|
719
|
+
<example>The following code illustrates how to set the default style for a column:
|
|
720
|
+
<code>
|
|
721
|
+
//Create worksheet
|
|
722
|
+
Workbook workbook = new Workbook();
|
|
723
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
724
|
+
//Create style
|
|
725
|
+
CellStyle style = workbook.Styles.Add("CustomStyle");
|
|
726
|
+
//Set Color
|
|
727
|
+
style.Color = Color.Red;
|
|
728
|
+
//Set default style
|
|
729
|
+
worksheet.SetDefaultColumnStyle(2, style);
|
|
730
|
+
//Save to file
|
|
731
|
+
workbook.SaveToFile("SetDefaultColumnStyle.xlsx");
|
|
732
|
+
</code>
|
|
733
|
+
</example>
|
|
734
|
+
</summary>
|
|
735
|
+
<param name="columnIndex">Column index.</param>
|
|
736
|
+
<param name="defaultStyle">Default style.</param>
|
|
737
|
+
"""
|
|
738
|
+
intPtrdefaultStyle:c_void_p = defaultStyle.Ptr
|
|
739
|
+
|
|
740
|
+
GetDllLibXls().Worksheet_SetDefaultColumnStyle.argtypes=[c_void_p ,c_int,c_void_p]
|
|
741
|
+
CallCFunction(GetDllLibXls().Worksheet_SetDefaultColumnStyle, self.Ptr, columnIndex,intPtrdefaultStyle)
|
|
742
|
+
|
|
743
|
+
@dispatch
|
|
744
|
+
|
|
745
|
+
def SetDefaultColumnStyle(self ,firstColumnIndex:int,lastColumnIndex:int,defaultStyle:CellStyle):
|
|
746
|
+
"""
|
|
747
|
+
<summary>
|
|
748
|
+
Sets default style for column.
|
|
749
|
+
<example>The following code illustrates how to set the default style for columns:
|
|
750
|
+
<code>
|
|
751
|
+
//Create worksheet
|
|
752
|
+
Workbook workbook = new Workbook();
|
|
753
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
754
|
+
//Create style
|
|
755
|
+
CellStyle style = workbook.Styles.Add("CustomStyle");
|
|
756
|
+
//Set Color
|
|
757
|
+
style.Color = Color.Red;
|
|
758
|
+
//Set default style
|
|
759
|
+
worksheet.SetDefaultColumnStyle(2, 5, style);
|
|
760
|
+
//Save to file
|
|
761
|
+
workbook.SaveToFile("SetDefaultColumnStyle.xlsx");
|
|
762
|
+
</code>
|
|
763
|
+
</example>
|
|
764
|
+
</summary>
|
|
765
|
+
<param name="firstColumnIndex">First column index.</param>
|
|
766
|
+
<param name="lastColumnIndex">Last column index.</param>
|
|
767
|
+
<param name="defaultStyle">Default style.</param>
|
|
768
|
+
"""
|
|
769
|
+
intPtrdefaultStyle:c_void_p = defaultStyle.Ptr
|
|
770
|
+
|
|
771
|
+
GetDllLibXls().Worksheet_SetDefaultColumnStyleFLD.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
772
|
+
CallCFunction(GetDllLibXls().Worksheet_SetDefaultColumnStyleFLD, self.Ptr, firstColumnIndex,lastColumnIndex,intPtrdefaultStyle)
|
|
773
|
+
|
|
774
|
+
@dispatch
|
|
775
|
+
|
|
776
|
+
def SetDefaultRowStyle(self ,rowIndex:int,defaultStyle:CellStyle):
|
|
777
|
+
"""
|
|
778
|
+
<summary>
|
|
779
|
+
Sets default style for row.
|
|
780
|
+
<example>The following code illustrates how to set the default style for a row:
|
|
781
|
+
<code>
|
|
782
|
+
//Create worksheet
|
|
783
|
+
Workbook workbook = new Workbook();
|
|
784
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
785
|
+
//Create style
|
|
786
|
+
CellStyle style = workbook.Styles.Add("CustomStyle");
|
|
787
|
+
//Set Color
|
|
788
|
+
style.Color = Color.Red;
|
|
789
|
+
//Set default style
|
|
790
|
+
worksheet.SetDefaultRowStyle(2, style);
|
|
791
|
+
//Save to file
|
|
792
|
+
workbook.SaveToFile("SetDefaultRowStyle.xlsx");
|
|
793
|
+
</code>
|
|
794
|
+
</example>
|
|
795
|
+
</summary>
|
|
796
|
+
<param name="rowIndex">Row index.</param>
|
|
797
|
+
<param name="defaultStyle">Default style.</param>
|
|
798
|
+
"""
|
|
799
|
+
intPtrdefaultStyle:c_void_p = defaultStyle.Ptr
|
|
800
|
+
|
|
801
|
+
GetDllLibXls().Worksheet_SetDefaultRowStyle.argtypes=[c_void_p ,c_int,c_void_p]
|
|
802
|
+
CallCFunction(GetDllLibXls().Worksheet_SetDefaultRowStyle, self.Ptr, rowIndex,intPtrdefaultStyle)
|
|
803
|
+
|
|
804
|
+
@dispatch
|
|
805
|
+
|
|
806
|
+
def SetDefaultRowStyle(self ,firstRowIndex:int,lastRowIndex:int,defaultStyle:CellStyle):
|
|
807
|
+
"""
|
|
808
|
+
<summary>
|
|
809
|
+
Sets default style for row.
|
|
810
|
+
<example>The following code illustrates how to set the default style for rows:
|
|
811
|
+
<code>
|
|
812
|
+
//Create worksheet
|
|
813
|
+
Workbook workbook = new Workbook();
|
|
814
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
815
|
+
//Create style
|
|
816
|
+
CellStyle style = workbook.Styles.Add("CustomStyle");
|
|
817
|
+
//Set Color
|
|
818
|
+
style.Color = Color.Red;
|
|
819
|
+
//Set default style
|
|
820
|
+
worksheet.SetDefaultRowStyle(2, 5, style);
|
|
821
|
+
//Save to file
|
|
822
|
+
workbook.SaveToFile("SetDefaultRowStyle.xlsx");
|
|
823
|
+
</code>
|
|
824
|
+
</example>
|
|
825
|
+
</summary>
|
|
826
|
+
<param name="firstRowIndex">First row index.</param>
|
|
827
|
+
<param name="lastRowIndex">Last row index.</param>
|
|
828
|
+
<param name="defaultStyle">Default style.</param>
|
|
829
|
+
"""
|
|
830
|
+
intPtrdefaultStyle:c_void_p = defaultStyle.Ptr
|
|
831
|
+
|
|
832
|
+
GetDllLibXls().Worksheet_SetDefaultRowStyleFLD.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
833
|
+
CallCFunction(GetDllLibXls().Worksheet_SetDefaultRowStyleFLD, self.Ptr, firstRowIndex,lastRowIndex,intPtrdefaultStyle)
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
def GetDefaultColumnStyle(self ,columnIndex:int)->'CellStyle':
|
|
837
|
+
"""
|
|
838
|
+
<summary>
|
|
839
|
+
Returns default column style.
|
|
840
|
+
<example>The following code illustrates how to get default column style:
|
|
841
|
+
<code>
|
|
842
|
+
//Create worksheet
|
|
843
|
+
Workbook workbook = new Workbook();
|
|
844
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
845
|
+
//Create style
|
|
846
|
+
CellStyle style = workbook.Styles.Add("CustomStyle");
|
|
847
|
+
//Set Color
|
|
848
|
+
style.Color = Color.Red;
|
|
849
|
+
//Set default style
|
|
850
|
+
worksheet.SetDefaultColumnStyle(2,style);
|
|
851
|
+
//Get default style
|
|
852
|
+
CellStyle defaultStyle = worksheet.GetDefaultColumnStyle(2);
|
|
853
|
+
//Set color
|
|
854
|
+
defaultStyle.Color = Color.Blue;
|
|
855
|
+
worksheet.SetDefaultColumnStyle(3, defaultStyle);
|
|
856
|
+
//Save to file
|
|
857
|
+
workbook.SaveToFile("GetDefaultColumnStyle.xlsx");
|
|
858
|
+
</code>
|
|
859
|
+
</example>
|
|
860
|
+
</summary>
|
|
861
|
+
<param name="columnIndex">Column index.</param>
|
|
862
|
+
<returns>Default column style or null if default style is not exists.</returns>
|
|
863
|
+
"""
|
|
864
|
+
|
|
865
|
+
GetDllLibXls().Worksheet_GetDefaultColumnStyle.argtypes=[c_void_p ,c_int]
|
|
866
|
+
GetDllLibXls().Worksheet_GetDefaultColumnStyle.restype=c_void_p
|
|
867
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_GetDefaultColumnStyle, self.Ptr, columnIndex)
|
|
868
|
+
ret = None if intPtr==None else CellStyle(intPtr)
|
|
869
|
+
return ret
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
def GetDefaultRowStyle(self ,rowIndex:int)->'CellStyle':
|
|
874
|
+
"""
|
|
875
|
+
<summary>
|
|
876
|
+
Returns default row style.
|
|
877
|
+
<example>The following code illustrates how to get default row style:
|
|
878
|
+
<code>
|
|
879
|
+
//Create worksheet
|
|
880
|
+
Workbook workbook = new Workbook();
|
|
881
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
882
|
+
//Create style
|
|
883
|
+
CellStyle style = workbook.Styles.Add("CustomStyle");
|
|
884
|
+
//Set Color
|
|
885
|
+
style.Color = Color.Red;
|
|
886
|
+
//Set default style
|
|
887
|
+
worksheet.SetDefaultRowStyle(2,style);
|
|
888
|
+
//Get default style
|
|
889
|
+
CellStyle defaultStyle = worksheet.GetDefaultRowStyle(2);
|
|
890
|
+
//Set color
|
|
891
|
+
defaultStyle.Color = Color.Blue;
|
|
892
|
+
worksheet.SetDefaultRowStyle(3, defaultStyle);
|
|
893
|
+
//Save to file
|
|
894
|
+
workbook.SaveToFile("GetDefaultColumnStyle.xlsx");
|
|
895
|
+
</code>
|
|
896
|
+
</example>
|
|
897
|
+
</summary>
|
|
898
|
+
<param name="rowIndex">Row index.</param>
|
|
899
|
+
<returns>Default row style or null if default style is not set.</returns>
|
|
900
|
+
"""
|
|
901
|
+
|
|
902
|
+
GetDllLibXls().Worksheet_GetDefaultRowStyle.argtypes=[c_void_p ,c_int]
|
|
903
|
+
GetDllLibXls().Worksheet_GetDefaultRowStyle.restype=c_void_p
|
|
904
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_GetDefaultRowStyle, self.Ptr, rowIndex)
|
|
905
|
+
ret = None if intPtr==None else CellStyle(intPtr)
|
|
906
|
+
return ret
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
def RemoveMergedCells(self ,range:'CellRange'):
|
|
911
|
+
"""
|
|
912
|
+
|
|
913
|
+
"""
|
|
914
|
+
intPtrrange:c_void_p = range.Ptr
|
|
915
|
+
|
|
916
|
+
GetDllLibXls().Worksheet_RemoveMergedCells.argtypes=[c_void_p ,c_void_p]
|
|
917
|
+
CallCFunction(GetDllLibXls().Worksheet_RemoveMergedCells, self.Ptr, intPtrrange)
|
|
918
|
+
|
|
919
|
+
@dispatch
|
|
920
|
+
|
|
921
|
+
def RemoveRange(self ,range:CellRange):
|
|
922
|
+
"""
|
|
923
|
+
<summary>
|
|
924
|
+
Removes range from list.
|
|
925
|
+
</summary>
|
|
926
|
+
<param name="range">Specified range.</param>
|
|
927
|
+
"""
|
|
928
|
+
intPtrrange:c_void_p = range.Ptr
|
|
929
|
+
|
|
930
|
+
GetDllLibXls().Worksheet_RemoveRange.argtypes=[c_void_p ,c_void_p]
|
|
931
|
+
CallCFunction(GetDllLibXls().Worksheet_RemoveRange, self.Ptr, intPtrrange)
|
|
932
|
+
|
|
933
|
+
@dispatch
|
|
934
|
+
|
|
935
|
+
def RemoveRange(self ,rowIndex:int,columnIndex:int):
|
|
936
|
+
"""
|
|
937
|
+
<summary>
|
|
938
|
+
Removes range from list.
|
|
939
|
+
</summary>
|
|
940
|
+
<param name="rowIndex">Row index.</param>
|
|
941
|
+
<param name="columnIndex">Column index.</param>
|
|
942
|
+
"""
|
|
943
|
+
|
|
944
|
+
GetDllLibXls().Worksheet_RemoveRangeRC.argtypes=[c_void_p ,c_int,c_int]
|
|
945
|
+
CallCFunction(GetDllLibXls().Worksheet_RemoveRangeRC, self.Ptr, rowIndex,columnIndex)
|
|
946
|
+
|
|
947
|
+
@dispatch
|
|
948
|
+
|
|
949
|
+
def RemovePicture(self ,index:int):
|
|
950
|
+
"""
|
|
951
|
+
<summary>
|
|
952
|
+
Remove picture from this worksheet.
|
|
953
|
+
</summary>
|
|
954
|
+
<param name="index">Picture ID</param>
|
|
955
|
+
"""
|
|
956
|
+
|
|
957
|
+
GetDllLibXls().Worksheet_RemovePicture.argtypes=[c_void_p ,c_int]
|
|
958
|
+
CallCFunction(GetDllLibXls().Worksheet_RemovePicture, self.Ptr, index)
|
|
959
|
+
|
|
960
|
+
@dispatch
|
|
961
|
+
|
|
962
|
+
def RemovePicture(self ,picturename:str):
|
|
963
|
+
"""
|
|
964
|
+
<summary>
|
|
965
|
+
Remove picture from this worksheet.
|
|
966
|
+
</summary>
|
|
967
|
+
<param name="picturename">Picture name</param>
|
|
968
|
+
"""
|
|
969
|
+
|
|
970
|
+
GetDllLibXls().Worksheet_RemovePictureP.argtypes=[c_void_p ,c_void_p]
|
|
971
|
+
CallCFunction(GetDllLibXls().Worksheet_RemovePictureP, self.Ptr, picturename)
|
|
972
|
+
|
|
973
|
+
@dispatch
|
|
974
|
+
|
|
975
|
+
def RemovePicture(self ,picture:IPictureShape):
|
|
976
|
+
"""
|
|
977
|
+
<summary>
|
|
978
|
+
Remove picture from this worksheet.
|
|
979
|
+
</summary>
|
|
980
|
+
<param name="picture">A pictureshape</param>
|
|
981
|
+
"""
|
|
982
|
+
intPtrpicture:c_void_p = picture.Ptr
|
|
983
|
+
|
|
984
|
+
GetDllLibXls().Worksheet_RemovePictureP.argtypes=[c_void_p ,c_void_p]
|
|
985
|
+
CallCFunction(GetDllLibXls().Worksheet_RemovePictureP, self.Ptr, intPtrpicture)
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
def ApplyStyle(self ,style:'CellStyle'):
|
|
989
|
+
"""
|
|
990
|
+
<summary>
|
|
991
|
+
Apply style to whole sheet.
|
|
992
|
+
</summary>
|
|
993
|
+
<param name="style">style to apply</param>
|
|
994
|
+
"""
|
|
995
|
+
intPtrstyle:c_void_p = style.Ptr
|
|
996
|
+
|
|
997
|
+
GetDllLibXls().Worksheet_ApplyStyle.argtypes=[c_void_p ,c_void_p]
|
|
998
|
+
CallCFunction(GetDllLibXls().Worksheet_ApplyStyle, self.Ptr, intPtrstyle)
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
def FreezePanes(self ,rowIndex:int,columnIndex:int):
|
|
1002
|
+
"""
|
|
1003
|
+
<summary>
|
|
1004
|
+
Freezes panes at the specified cell in the worksheet.
|
|
1005
|
+
</summary>
|
|
1006
|
+
<param name="rowIndex">Row index.</param>
|
|
1007
|
+
<param name="columnIndex">Column index.</param>
|
|
1008
|
+
"""
|
|
1009
|
+
|
|
1010
|
+
GetDllLibXls().Worksheet_FreezePanes.argtypes=[c_void_p ,c_int,c_int]
|
|
1011
|
+
CallCFunction(GetDllLibXls().Worksheet_FreezePanes, self.Ptr, rowIndex,columnIndex)
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
def GetFreezePanes(self )->List[int]:
|
|
1015
|
+
"""
|
|
1016
|
+
|
|
1017
|
+
"""
|
|
1018
|
+
GetDllLibXls().Worksheet_GetFreezePanes.argtypes=[c_void_p]
|
|
1019
|
+
GetDllLibXls().Worksheet_GetFreezePanes.restype=IntPtrArray
|
|
1020
|
+
intPtrArray = CallCFunction(GetDllLibXls().Worksheet_GetFreezePanes, self.Ptr)
|
|
1021
|
+
ret =[]
|
|
1022
|
+
ret.append(intPtrArray.data[0])
|
|
1023
|
+
ret.append(intPtrArray.data[2])
|
|
1024
|
+
return ret
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
def SetActiveCell(self ,range:'CellRange'):
|
|
1028
|
+
"""
|
|
1029
|
+
<summary>
|
|
1030
|
+
Sets active cell
|
|
1031
|
+
</summary>
|
|
1032
|
+
<param name="range">Cell to activate.</param>
|
|
1033
|
+
"""
|
|
1034
|
+
intPtrrange:c_void_p = range.Ptr
|
|
1035
|
+
|
|
1036
|
+
GetDllLibXls().Worksheet_SetActiveCell.argtypes=[c_void_p ,c_void_p]
|
|
1037
|
+
CallCFunction(GetDllLibXls().Worksheet_SetActiveCell, self.Ptr, intPtrrange)
|
|
1038
|
+
|
|
1039
|
+
@property
|
|
1040
|
+
|
|
1041
|
+
def Cells(self)->'ListCellRanges':
|
|
1042
|
+
"""
|
|
1043
|
+
<summary>
|
|
1044
|
+
Returns all used cells in the worksheet. Read-only.
|
|
1045
|
+
</summary>
|
|
1046
|
+
"""
|
|
1047
|
+
GetDllLibXls().Worksheet_get_Cells.argtypes=[c_void_p]
|
|
1048
|
+
GetDllLibXls().Worksheet_get_Cells.restype=c_void_p
|
|
1049
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_Cells, self.Ptr)
|
|
1050
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
1051
|
+
return ret
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
@property
|
|
1055
|
+
|
|
1056
|
+
def Columns(self)->'ListCellRanges':
|
|
1057
|
+
"""
|
|
1058
|
+
<summary>
|
|
1059
|
+
Rrepresents all used columns on the specified worksheet. Read-only Range object.
|
|
1060
|
+
</summary>
|
|
1061
|
+
"""
|
|
1062
|
+
GetDllLibXls().Worksheet_get_Columns.argtypes=[c_void_p]
|
|
1063
|
+
GetDllLibXls().Worksheet_get_Columns.restype=c_void_p
|
|
1064
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_Columns, self.Ptr)
|
|
1065
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
1066
|
+
return ret
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
@property
|
|
1070
|
+
|
|
1071
|
+
def PageSetup(self)->'PageSetup':
|
|
1072
|
+
"""
|
|
1073
|
+
<summary>
|
|
1074
|
+
Returns a PageSetup object that contains all the page setup settings
|
|
1075
|
+
for the specified object. Read-only.
|
|
1076
|
+
</summary>
|
|
1077
|
+
"""
|
|
1078
|
+
GetDllLibXls().Worksheet_get_PageSetup.argtypes=[c_void_p]
|
|
1079
|
+
GetDllLibXls().Worksheet_get_PageSetup.restype=c_void_p
|
|
1080
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_PageSetup, self.Ptr)
|
|
1081
|
+
ret = None if intPtr==None else PageSetup(intPtr)
|
|
1082
|
+
return ret
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
@property
|
|
1086
|
+
|
|
1087
|
+
def AutoFilters(self)->'AutoFiltersCollection':
|
|
1088
|
+
"""
|
|
1089
|
+
|
|
1090
|
+
"""
|
|
1091
|
+
GetDllLibXls().Worksheet_get_AutoFilters.argtypes=[c_void_p]
|
|
1092
|
+
GetDllLibXls().Worksheet_get_AutoFilters.restype=c_void_p
|
|
1093
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_AutoFilters, self.Ptr)
|
|
1094
|
+
ret = None if intPtr==None else AutoFiltersCollection(intPtr)
|
|
1095
|
+
return ret
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
@property
|
|
1099
|
+
|
|
1100
|
+
def Charts(self)->'WorksheetChartsCollection':
|
|
1101
|
+
"""
|
|
1102
|
+
<summary>
|
|
1103
|
+
Returns charts collection. Read-only.
|
|
1104
|
+
</summary>
|
|
1105
|
+
"""
|
|
1106
|
+
GetDllLibXls().Worksheet_get_Charts.argtypes=[c_void_p]
|
|
1107
|
+
GetDllLibXls().Worksheet_get_Charts.restype=c_void_p
|
|
1108
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_Charts, self.Ptr)
|
|
1109
|
+
ret = None if intPtr==None else WorksheetChartsCollection(intPtr)
|
|
1110
|
+
return ret
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
@property
|
|
1114
|
+
|
|
1115
|
+
def QueryTables(self)->'QueryTableCollection':
|
|
1116
|
+
"""
|
|
1117
|
+
|
|
1118
|
+
"""
|
|
1119
|
+
GetDllLibXls().Worksheet_get_QueryTables.argtypes=[c_void_p]
|
|
1120
|
+
GetDllLibXls().Worksheet_get_QueryTables.restype=c_void_p
|
|
1121
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_QueryTables, self.Ptr)
|
|
1122
|
+
ret = None if intPtr==None else QueryTableCollection(intPtr)
|
|
1123
|
+
return ret
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
@property
|
|
1127
|
+
|
|
1128
|
+
def Comments(self)->'CommentsCollection':
|
|
1129
|
+
"""
|
|
1130
|
+
<summary>
|
|
1131
|
+
Returns comments collection for this worksheet. Read-only.
|
|
1132
|
+
<example>The following code illustrates how to access the comments collection in the worksheet:
|
|
1133
|
+
<code>
|
|
1134
|
+
//Create worksheet
|
|
1135
|
+
Workbook workbook = new Workbook();
|
|
1136
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1137
|
+
//Adding comments to a cell.
|
|
1138
|
+
ICommentShape comment1 = worksheet.Range["A1"].AddComment();
|
|
1139
|
+
ICommentShape comment2 = worksheet.Range["B1"].AddComment();
|
|
1140
|
+
//Set comment text
|
|
1141
|
+
comment1.Text = "Comment1";
|
|
1142
|
+
comment2.Text = "Comment2";
|
|
1143
|
+
//Check count
|
|
1144
|
+
Console.Write(worksheet.Comments.Count);
|
|
1145
|
+
//Save to file
|
|
1146
|
+
workbook.SaveToFile("Comments.xlsx");
|
|
1147
|
+
</code>
|
|
1148
|
+
</example>
|
|
1149
|
+
</summary>
|
|
1150
|
+
"""
|
|
1151
|
+
GetDllLibXls().Worksheet_get_Comments.argtypes=[c_void_p]
|
|
1152
|
+
GetDllLibXls().Worksheet_get_Comments.restype=c_void_p
|
|
1153
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_Comments, self.Ptr)
|
|
1154
|
+
ret = None if intPtr==None else CommentsCollection(intPtr)
|
|
1155
|
+
return ret
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
@property
|
|
1159
|
+
|
|
1160
|
+
def HPageBreaks(self)->'HPageBreaksCollection':
|
|
1161
|
+
"""
|
|
1162
|
+
<summary>
|
|
1163
|
+
Returns an HPageBreaks collection that represents the horizontal
|
|
1164
|
+
page breaks on the sheet.
|
|
1165
|
+
</summary>
|
|
1166
|
+
"""
|
|
1167
|
+
GetDllLibXls().Worksheet_get_HPageBreaks.argtypes=[c_void_p]
|
|
1168
|
+
GetDllLibXls().Worksheet_get_HPageBreaks.restype=c_void_p
|
|
1169
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_HPageBreaks, self.Ptr)
|
|
1170
|
+
ret = None if intPtr==None else HPageBreaksCollection(intPtr)
|
|
1171
|
+
return ret
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
@property
|
|
1175
|
+
|
|
1176
|
+
def HyperLinks(self)->'HyperLinksCollection':
|
|
1177
|
+
"""
|
|
1178
|
+
<summary>
|
|
1179
|
+
Collection of all worksheet's hyperlinks.
|
|
1180
|
+
</summary>
|
|
1181
|
+
"""
|
|
1182
|
+
GetDllLibXls().Worksheet_get_HyperLinks.argtypes=[c_void_p]
|
|
1183
|
+
GetDllLibXls().Worksheet_get_HyperLinks.restype=c_void_p
|
|
1184
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_HyperLinks, self.Ptr)
|
|
1185
|
+
ret = None if intPtr==None else HyperLinksCollection(intPtr)
|
|
1186
|
+
return ret
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
@property
|
|
1190
|
+
|
|
1191
|
+
def Pictures(self)->'PicturesCollection':
|
|
1192
|
+
"""
|
|
1193
|
+
<summary>
|
|
1194
|
+
Pictures collection. Read-only.
|
|
1195
|
+
</summary>
|
|
1196
|
+
"""
|
|
1197
|
+
GetDllLibXls().Worksheet_get_Pictures.argtypes=[c_void_p]
|
|
1198
|
+
GetDllLibXls().Worksheet_get_Pictures.restype=c_void_p
|
|
1199
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_Pictures, self.Ptr)
|
|
1200
|
+
ret = None if intPtr==None else PicturesCollection(intPtr)
|
|
1201
|
+
return ret
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
@property
|
|
1205
|
+
|
|
1206
|
+
def PrintRange(self)->'CellRange':
|
|
1207
|
+
"""
|
|
1208
|
+
<summary>
|
|
1209
|
+
Print area of worksheet.
|
|
1210
|
+
</summary>
|
|
1211
|
+
"""
|
|
1212
|
+
GetDllLibXls().Worksheet_get_PrintRange.argtypes=[c_void_p]
|
|
1213
|
+
GetDllLibXls().Worksheet_get_PrintRange.restype=c_void_p
|
|
1214
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_PrintRange, self.Ptr)
|
|
1215
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
1216
|
+
return ret
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
@property
|
|
1220
|
+
|
|
1221
|
+
def VPageBreaks(self)->'VPageBreaksCollection':
|
|
1222
|
+
"""
|
|
1223
|
+
<summary>
|
|
1224
|
+
Returns a VPageBreaks collection that represents the vertical page
|
|
1225
|
+
breaks on the sheet. Read-only.
|
|
1226
|
+
</summary>
|
|
1227
|
+
"""
|
|
1228
|
+
GetDllLibXls().Worksheet_get_VPageBreaks.argtypes=[c_void_p]
|
|
1229
|
+
GetDllLibXls().Worksheet_get_VPageBreaks.restype=c_void_p
|
|
1230
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_VPageBreaks, self.Ptr)
|
|
1231
|
+
ret = None if intPtr==None else VPageBreaksCollection(intPtr)
|
|
1232
|
+
return ret
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
@property
|
|
1236
|
+
|
|
1237
|
+
def Range(self)->'CellRange':
|
|
1238
|
+
"""
|
|
1239
|
+
<summary>
|
|
1240
|
+
Returns a Range object that represents the used range on the
|
|
1241
|
+
specified worksheet. Read-only.
|
|
1242
|
+
<example>The following code illustrates how to get used range on the specified worksheet:
|
|
1243
|
+
<code>
|
|
1244
|
+
//Create worksheet
|
|
1245
|
+
Workbook workbook = new Workbook();
|
|
1246
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1247
|
+
//Set text
|
|
1248
|
+
worksheet["B2"].Text = "Text";
|
|
1249
|
+
//Set Color
|
|
1250
|
+
worksheet["J3"].Style.Color = Color.Red;
|
|
1251
|
+
//Get used range . Output will be B2:J3
|
|
1252
|
+
Console.Write(worksheet.Range.RangeAddressLocal);
|
|
1253
|
+
//Save to file
|
|
1254
|
+
workbook.SaveToFile("UsedRange.xlsx");
|
|
1255
|
+
</code>
|
|
1256
|
+
</example>
|
|
1257
|
+
</summary>
|
|
1258
|
+
"""
|
|
1259
|
+
GetDllLibXls().Worksheet_get_Range.argtypes=[c_void_p]
|
|
1260
|
+
GetDllLibXls().Worksheet_get_Range.restype=c_void_p
|
|
1261
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_Range, self.Ptr)
|
|
1262
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
1263
|
+
return ret
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
def CalculateAndGetRowHeight(self ,rowIndex:int)->float:
|
|
1268
|
+
"""
|
|
1269
|
+
|
|
1270
|
+
"""
|
|
1271
|
+
|
|
1272
|
+
GetDllLibXls().Worksheet_CalculateAndGetRowHeight.argtypes=[c_void_p ,c_int]
|
|
1273
|
+
GetDllLibXls().Worksheet_CalculateAndGetRowHeight.restype=c_double
|
|
1274
|
+
ret = CallCFunction(GetDllLibXls().Worksheet_CalculateAndGetRowHeight, self.Ptr, rowIndex)
|
|
1275
|
+
return ret
|
|
1276
|
+
|
|
1277
|
+
@property
|
|
1278
|
+
|
|
1279
|
+
def Rows(self)->'ListCellRanges':
|
|
1280
|
+
"""
|
|
1281
|
+
<summary>
|
|
1282
|
+
Represents all the rows on the specified worksheet. Read-only Range object.
|
|
1283
|
+
</summary>
|
|
1284
|
+
"""
|
|
1285
|
+
GetDllLibXls().Worksheet_get_Rows.argtypes=[c_void_p]
|
|
1286
|
+
GetDllLibXls().Worksheet_get_Rows.restype=c_void_p
|
|
1287
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_Rows, self.Ptr)
|
|
1288
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
1289
|
+
return ret
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
@property
|
|
1293
|
+
|
|
1294
|
+
def Workbook(self)->'Workbook':
|
|
1295
|
+
"""
|
|
1296
|
+
|
|
1297
|
+
"""
|
|
1298
|
+
GetDllLibXls().Worksheet_get_Workbook.argtypes=[c_void_p]
|
|
1299
|
+
GetDllLibXls().Worksheet_get_Workbook.restype=c_void_p
|
|
1300
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_Workbook, self.Ptr)
|
|
1301
|
+
from spire.xls.Workbook import Workbook
|
|
1302
|
+
ret = None if intPtr==None else Workbook(intPtr)
|
|
1303
|
+
return ret
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
@property
|
|
1307
|
+
|
|
1308
|
+
def ParentWorkbook(self)->'Workbook':
|
|
1309
|
+
"""
|
|
1310
|
+
|
|
1311
|
+
"""
|
|
1312
|
+
GetDllLibXls().Worksheet_get_ParentWorkbook.argtypes=[c_void_p]
|
|
1313
|
+
GetDllLibXls().Worksheet_get_ParentWorkbook.restype=c_void_p
|
|
1314
|
+
intPtr = CallCFunction(GetDllLibXls().Worksheet_get_ParentWorkbook, self.Ptr)
|
|
1315
|
+
from spire.xls.Workbook import Workbook
|
|
1316
|
+
ret = None if intPtr==None else Workbook(intPtr)
|
|
1317
|
+
return ret
|
|
1318
|
+
|
|
1319
|
+
|