spire-xls 15.5.0__py3-none-win_amd64.whl → 15.11.1__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/xls/AddtionalFormatWrapper.py +116 -132
- spire/xls/Average.py +18 -4
- spire/xls/CellBaseStyle.py +13 -6
- spire/xls/CellBorder.py +25 -20
- spire/xls/CellRange.py +315 -277
- spire/xls/CellStyle.py +26 -12
- spire/xls/CellStyleFlag.py +187 -57
- spire/xls/CellStyleObject.py +55 -79
- spire/xls/CellValueChangedEventArgs.py +3 -9
- spire/xls/ColorScale.py +31 -39
- spire/xls/CommentsRange.py +185 -95
- spire/xls/CommonWrapper.py +23 -8
- spire/xls/ConverterSetting.py +34 -36
- spire/xls/DBConnection.py +41 -8
- spire/xls/DVAspect.py +8 -2
- spire/xls/DataBar.py +29 -28
- spire/xls/DocumentProperty.py +87 -39
- spire/xls/Excel2016Charttype.py +14 -2
- spire/xls/ExcelComment.py +1 -2
- spire/xls/ExcelCommentObject.py +212 -122
- spire/xls/ExcelFont.py +94 -73
- spire/xls/ExcelGradient.py +70 -24
- spire/xls/ExcelInterior.py +43 -27
- spire/xls/ExportTableOptions.py +38 -9
- spire/xls/ExternalConnection.py +85 -20
- spire/xls/ExternalLink.py +26 -10
- spire/xls/FileFormat.py +32 -4
- spire/xls/Font.py +165 -112
- spire/xls/FontArrayWrapper.py +135 -36
- spire/xls/FontWrapper.py +207 -103
- spire/xls/Format3D.py +130 -30
- spire/xls/GeomertyAdjustValue.py +22 -10
- spire/xls/GetText.py +8 -2
- spire/xls/GoalSeek.py +44 -14
- spire/xls/GoalSeekResult.py +36 -3
- spire/xls/GradientArrayWrapper.py +92 -28
- spire/xls/GradientStops.py +75 -25
- spire/xls/GradientType.py +10 -2
- spire/xls/GroupShape.py +1 -2
- spire/xls/HPageBreak.py +2 -2
- spire/xls/HTMLOptions.py +7 -19
- spire/xls/HyperLink.py +2 -2
- spire/xls/LOGFONT.py +78 -30
- spire/xls/MsoTextFrame.py +102 -0
- spire/xls/OColor.py +62 -29
- spire/xls/OdsPageBackground.py +5 -10
- spire/xls/PageColRow.py +21 -10
- spire/xls/PageSetup.py +2 -3
- spire/xls/PaperSizeEntry.py +6 -0
- spire/xls/PicStretch.py +47 -14
- spire/xls/PicTile.py +35 -10
- spire/xls/QueryTableXls.py +19 -6
- spire/xls/RTFCommentArray.py +59 -22
- spire/xls/RTFStringArray.py +59 -22
- spire/xls/RangeRichTextString.py +22 -10
- spire/xls/ReferRangeArea.py +33 -18
- spire/xls/RichText.py +11 -9
- spire/xls/RichTextObject.py +63 -32
- spire/xls/RichTextShape.py +90 -33
- spire/xls/RichTextString.py +62 -24
- spire/xls/RtfTextWriter.py +68 -22
- spire/xls/SaveShapeTypeOption.py +19 -37
- spire/xls/ShapeGlow.py +35 -15
- spire/xls/ShapeReflection.py +55 -18
- spire/xls/StyleArrayWrapper.py +169 -78
- spire/xls/TextBoxShapeBase.py +63 -30
- spire/xls/TextSaveOptions.py +39 -17
- spire/xls/TopBottom.py +18 -6
- spire/xls/VPageBreak.py +4 -5
- spire/xls/Validation.py +12 -6
- spire/xls/WebQueryConnection.py +52 -20
- spire/xls/Workbook.py +884 -916
- spire/xls/Worksheet.py +507 -421
- spire/xls/WriteProtection.py +3 -6
- spire/xls/XlsAddInFunction.py +36 -22
- spire/xls/XlsArcShape.py +157 -41
- spire/xls/XlsBitmapShape.py +141 -43
- spire/xls/XlsBorder.py +73 -31
- spire/xls/XlsBorderArrayWrapper.py +50 -14
- spire/xls/XlsButtonShape.py +59 -17
- spire/xls/XlsCheckBoxShape.py +72 -18
- spire/xls/XlsComboBoxShape.py +53 -16
- spire/xls/XlsComment.py +109 -31
- spire/xls/XlsDataValidationTable.py +46 -17
- spire/xls/XlsDocumentProperty.py +163 -44
- spire/xls/XlsEventArgs.py +33 -24
- spire/xls/XlsEventHandler.py +10 -4
- spire/xls/XlsFill.py +64 -20
- spire/xls/XlsFont.py +202 -66
- spire/xls/XlsGradient.py +90 -26
- spire/xls/XlsGradientStop.py +57 -12
- spire/xls/XlsGroupBoxShape.py +36 -10
- spire/xls/XlsHPageBreak.py +47 -24
- spire/xls/XlsHyperLink.py +111 -42
- spire/xls/XlsLabelShape.py +27 -8
- spire/xls/XlsLineShape.py +188 -48
- spire/xls/XlsListBoxShape.py +63 -14
- spire/xls/XlsName.py +779 -331
- spire/xls/XlsObject.py +2 -4
- spire/xls/XlsOvalShape.py +79 -21
- spire/xls/XlsPageSetup.py +71 -32
- spire/xls/XlsPageSetupBase.py +29 -58
- spire/xls/XlsPrstGeomShape.py +29 -10
- spire/xls/XlsRadioButtonShape.py +84 -42
- spire/xls/XlsRange.py +907 -1087
- spire/xls/XlsRectangleShape.py +70 -23
- spire/xls/XlsScrollBarShape.py +78 -18
- spire/xls/XlsShape.py +396 -183
- spire/xls/XlsShapeFill.py +401 -92
- spire/xls/XlsShapeLineFormat.py +201 -44
- spire/xls/XlsSpinnerShape.py +57 -14
- spire/xls/XlsStyle.py +54 -23
- spire/xls/XlsTextBoxShape.py +263 -60
- spire/xls/XlsVPageBreak.py +9 -14
- spire/xls/XlsValidation.py +325 -72
- spire/xls/XlsValidationWrapper.py +217 -49
- spire/xls/XlsWorkbook.py +573 -88
- spire/xls/XlsWorksheet.py +1312 -1232
- spire/xls/XlsWorksheetBase.py +279 -185
- spire/xls/__init__.py +531 -529
- spire/xls/autofilter/AutoFitterOptions.py +91 -0
- spire/xls/autofilter/ColorFilter.py +61 -0
- spire/xls/autofilter/CustomFilter.py +207 -0
- spire/xls/autofilter/CustomFilterCollection.py +146 -0
- spire/xls/autofilter/DateTimeGroupItem.py +196 -0
- spire/xls/autofilter/DynamicFilter.py +89 -0
- spire/xls/autofilter/FilterColumn.py +289 -0
- spire/xls/autofilter/MultipleFilterCollection.py +218 -0
- spire/xls/autofilter/Top10Filter.py +109 -0
- spire/xls/autofilter/XlsAutoFiltersCollection.py +146 -0
- spire/xls/charts/Chart.py +369 -0
- spire/xls/charts/ChartArea.py +58 -0
- spire/xls/charts/ChartBackgroundMode.py +17 -0
- spire/xls/charts/ChartCategoryAxis.py +88 -0
- spire/xls/charts/ChartDataLabels.py +40 -0
- spire/xls/charts/ChartDataPoint.py +40 -0
- spire/xls/charts/ChartFormat.py +68 -0
- spire/xls/charts/ChartGridLine.py +26 -0
- spire/xls/charts/ChartLegend.py +40 -0
- spire/xls/charts/ChartLegendEntriesColl.py +165 -0
- spire/xls/charts/ChartLegendEntry.py +26 -0
- spire/xls/charts/ChartPlotArea.py +60 -0
- spire/xls/charts/ChartSerie.py +147 -0
- spire/xls/charts/ChartSerieDataFormat.py +54 -0
- spire/xls/charts/ChartSeriesAxis.py +68 -0
- spire/xls/charts/ChartShadow.py +288 -0
- spire/xls/charts/ChartSheet.py +269 -0
- spire/xls/charts/ChartTextArea.py +898 -0
- spire/xls/charts/ChartValueAxis.py +90 -0
- spire/xls/charts/HistogramAxisFormat.py +32 -0
- spire/xls/charts/XlsChart.py +1667 -0
- spire/xls/charts/XlsChartAxis.py +596 -0
- spire/xls/charts/XlsChartBorder.py +180 -0
- spire/xls/charts/XlsChartCategoryAxis.py +640 -0
- spire/xls/charts/XlsChartDataLabelArea.py +368 -0
- spire/xls/charts/XlsChartDataLabels.py +702 -0
- spire/xls/charts/XlsChartDataPoint.py +105 -0
- spire/xls/charts/XlsChartDataTable.py +373 -0
- spire/xls/charts/XlsChartDropBar.py +295 -0
- spire/xls/charts/XlsChartFill.py +659 -0
- spire/xls/charts/XlsChartFormat.py +1229 -0
- spire/xls/charts/XlsChartFrameFormat.py +613 -0
- spire/xls/charts/XlsChartGridLine.py +167 -0
- spire/xls/charts/XlsChartInterior.py +229 -0
- spire/xls/charts/XlsChartLegend.py +334 -0
- spire/xls/charts/XlsChartLegendArea.py +418 -0
- spire/xls/charts/XlsChartLegendEntry.py +152 -0
- spire/xls/charts/XlsChartSerie.py +607 -0
- spire/xls/charts/XlsChartSerieDataFormat.py +1070 -0
- spire/xls/charts/XlsChartSeriesAxis.py +306 -0
- spire/xls/charts/XlsChartShape.py +1256 -0
- spire/xls/charts/XlsChartTitleArea.py +399 -0
- spire/xls/charts/XlsChartValueAxis.py +344 -0
- spire/xls/charts/XlsChartWallOrFloor.py +349 -0
- spire/xls/charts/__init__.py +0 -0
- spire/xls/collection/AddInFunctionsCollection.py +31 -0
- spire/xls/collection/ArcShapeCollection.py +94 -0
- spire/xls/collection/AutoFiltersCollection.py +539 -0
- spire/xls/collection/BordersCollection.py +196 -0
- spire/xls/collection/BordersCollectionArrayWrapper.py +129 -0
- spire/xls/collection/BuiltInDocumentProperties.py +12 -0
- spire/xls/collection/ButtonShapeCollection.py +70 -0
- spire/xls/collection/ChartDataPointsCollection.py +72 -0
- spire/xls/collection/ChartFormatCollection.py +58 -0
- spire/xls/collection/ChartSeries.py +187 -0
- spire/xls/collection/ChartsCollection.py +119 -0
- spire/xls/collection/CollectionBase.py +201 -0
- spire/xls/collection/CollectionExtended.py +96 -0
- spire/xls/collection/ComboBoxCollection.py +89 -0
- spire/xls/collection/CommentsCollection.py +134 -0
- spire/xls/collection/DataConnections.py +25 -0
- spire/xls/collection/ExternalLinkCollection.py +26 -0
- spire/xls/collection/GroupBoxCollection.py +70 -0
- spire/xls/collection/GroupShapeCollection.py +45 -0
- spire/xls/collection/HPageBreaksCollection.py +116 -0
- spire/xls/collection/HyperLinksCollection.py +72 -0
- spire/xls/collection/ListObjectCollection.py +48 -0
- spire/xls/collection/OvalShapeCollection.py +89 -0
- spire/xls/collection/PicturesCollection.py +574 -0
- spire/xls/collection/PrstGeomShapeCollection.py +128 -0
- spire/xls/collection/QueryTableCollection.py +25 -0
- spire/xls/collection/RadioButtonCollection.py +139 -0
- spire/xls/collection/RangesCollection.py +556 -0
- spire/xls/collection/ShapeCollectionBase.py +87 -0
- spire/xls/collection/StylesCollection.py +140 -0
- spire/xls/collection/VPageBreaksCollection.py +95 -0
- spire/xls/collection/WorksheetsCollection.py +363 -0
- spire/xls/collection/XlsAddInFunctionsCollection.py +108 -0
- spire/xls/collection/XlsBordersCollection.py +98 -0
- spire/xls/collection/XlsBuiltInDocumentProperties.py +611 -0
- spire/xls/collection/XlsChartDataPointsCollection.py +119 -0
- spire/xls/collection/XlsChartFormatCollection.py +160 -0
- spire/xls/collection/XlsChartsCollection.py +91 -0
- spire/xls/collection/XlsCommentsCollection.py +116 -0
- spire/xls/collection/XlsDataValidationCollection.py +157 -0
- spire/xls/collection/XlsFontsCollection.py +52 -0
- spire/xls/collection/XlsHPageBreaksCollection.py +87 -0
- spire/xls/collection/XlsHyperLinksCollection.py +104 -0
- spire/xls/collection/XlsRangesCollection.py +1641 -0
- spire/xls/collection/XlsStylesCollection.py +74 -0
- spire/xls/collection/XlsVPageBreaksCollection.py +81 -0
- spire/xls/collection/XlsWorkbookObjectsCollection.py +95 -0
- spire/xls/collection/XlsWorksheetsCollection.py +423 -0
- spire/xls/collection/__init__.py +0 -0
- spire/xls/collection/pivot_table/PivotConditionalFormatCollection.py +38 -0
- spire/xls/collection/pivot_table/PivotTableFields.py +108 -0
- spire/xls/collection/pivot_table/XlsPivotCachesCollection.py +124 -0
- spire/xls/collection/pivot_table/XlsPivotTablesCollection.py +132 -0
- spire/xls/collection/pivot_table/__init__.py +0 -0
- spire/xls/conditional_formatting/ColorConditionValue.py +102 -0
- spire/xls/conditional_formatting/CondFormatCollectionWrapper.py +153 -0
- spire/xls/conditional_formatting/ConditionValue.py +83 -0
- spire/xls/conditional_formatting/ConditionValuePosition.py +16 -0
- spire/xls/conditional_formatting/ConditionalFormat.py +13 -0
- spire/xls/conditional_formatting/ConditionalFormatScope.py +16 -0
- spire/xls/conditional_formatting/ConditionalFormatWrapper.py +1271 -0
- spire/xls/conditional_formatting/ConditionalFormats.py +65 -0
- spire/xls/conditional_formatting/DataBarBorder.py +51 -0
- spire/xls/conditional_formatting/NegativeBarFormat.py +90 -0
- spire/xls/conditional_formatting/XlsConditionValue.py +134 -0
- spire/xls/conditional_formatting/XlsConditionalFormat.py +1163 -0
- spire/xls/conditional_formatting/XlsConditionalFormats.py +684 -0
- spire/xls/conditional_formatting/__init__.py +0 -0
- spire/xls/enums/AlertStyleType.py +17 -0
- spire/xls/enums/AutoFormatOptions.py +22 -0
- spire/xls/enums/AutoFormatType.py +31 -0
- spire/xls/enums/AverageType.py +24 -0
- spire/xls/enums/AxisLineIdentifierType.py +18 -0
- spire/xls/enums/AxisTextDirectionType.py +17 -0
- spire/xls/enums/AxisType.py +17 -0
- spire/xls/enums/BaseFormatType.py +16 -0
- spire/xls/enums/BordersLineType.py +22 -0
- spire/xls/enums/BubbleSizeType.py +16 -0
- spire/xls/enums/BuiltInPropertyType.py +49 -0
- spire/xls/enums/BuiltInStyles.py +65 -0
- spire/xls/enums/CategoryType.py +17 -0
- spire/xls/enums/CellDataType.py +22 -0
- spire/xls/enums/CellFormatType.py +20 -0
- spire/xls/enums/ChartBaseUnitType.py +17 -0
- spire/xls/enums/ChartDisplayUnitType.py +25 -0
- spire/xls/enums/ChartLinePatternType.py +23 -0
- spire/xls/enums/ChartLineWeightType.py +18 -0
- spire/xls/enums/ChartMarkerType.py +26 -0
- spire/xls/enums/ChartParagraphType.py +17 -0
- spire/xls/enums/ChartPieType.py +17 -0
- spire/xls/enums/ChartPlotEmptyType.py +17 -0
- spire/xls/enums/CheckState.py +17 -0
- spire/xls/enums/ColorType.py +17 -0
- spire/xls/enums/CommentHAlignType.py +20 -0
- spire/xls/enums/CommentVAlignType.py +19 -0
- spire/xls/enums/ComparisonOperatorType.py +23 -0
- spire/xls/enums/ConditionalFormatType.py +32 -0
- spire/xls/enums/DataLabelPositionType.py +25 -0
- spire/xls/enums/DataSourceType.py +18 -0
- spire/xls/enums/DropLineStyleType.py +17 -0
- spire/xls/enums/ErrorBarIncludeType.py +18 -0
- spire/xls/enums/ErrorBarType.py +19 -0
- spire/xls/enums/ExcelCalculationMode.py +17 -0
- spire/xls/enums/ExcelChartType.py +95 -0
- spire/xls/enums/ExcelColors.py +120 -0
- spire/xls/enums/ExcelComboType.py +21 -0
- spire/xls/enums/ExcelHorizontalAlignment.py +20 -0
- spire/xls/enums/ExcelPatternType.py +51 -0
- spire/xls/enums/ExcelQuartileCalculation.py +16 -0
- spire/xls/enums/ExcelShapeType.py +40 -0
- spire/xls/enums/ExcelSheetType.py +19 -0
- spire/xls/enums/ExcelTreeMapLabelOption.py +17 -0
- spire/xls/enums/ExcelVersion.py +23 -0
- spire/xls/enums/ExcelVerticalAlignment.py +20 -0
- spire/xls/enums/ExpandCollapseFlags.py +17 -0
- spire/xls/enums/FilterConditionType.py +20 -0
- spire/xls/enums/FilterDataType.py +21 -0
- spire/xls/enums/FontUnderlineType.py +19 -0
- spire/xls/enums/FontVertialAlignmentType.py +17 -0
- spire/xls/enums/GradientColorType.py +17 -0
- spire/xls/enums/GradientPatternType.py +63 -0
- spire/xls/enums/GradientPresetType.py +38 -0
- spire/xls/enums/GradientStyleType.py +20 -0
- spire/xls/enums/GradientTextureType.py +39 -0
- spire/xls/enums/GradientVariantsType.py +18 -0
- spire/xls/enums/HorizontalAlignType.py +22 -0
- spire/xls/enums/HyperLinkType.py +19 -0
- spire/xls/enums/IgnoreErrorType.py +23 -0
- spire/xls/enums/ImageFormatType.py +17 -0
- spire/xls/enums/ImageType.py +16 -0
- spire/xls/enums/LegendPositionType.py +20 -0
- spire/xls/enums/LegendSpacingType.py +17 -0
- spire/xls/enums/LineStyleType.py +28 -0
- spire/xls/enums/OleObjectType.py +50 -0
- spire/xls/enums/OrderBy.py +18 -0
- spire/xls/enums/OrderType.py +16 -0
- spire/xls/enums/PageBreakExtentType.py +16 -0
- spire/xls/enums/PageBreakType.py +17 -0
- spire/xls/enums/PageOrientationType.py +16 -0
- spire/xls/enums/PagesOrderType.py +16 -0
- spire/xls/enums/PaperSizeType.py +134 -0
- spire/xls/enums/PivotGroupByTypes.py +22 -0
- spire/xls/enums/PrintCommentType.py +17 -0
- spire/xls/enums/PrintErrorsType.py +18 -0
- spire/xls/enums/ReadingOrderType.py +17 -0
- spire/xls/enums/RectangleStyleType.py +16 -0
- spire/xls/enums/ResizeBehaveType.py +17 -0
- spire/xls/enums/ShapeArrowLengthType.py +17 -0
- spire/xls/enums/ShapeArrowStyleType.py +20 -0
- spire/xls/enums/ShapeArrowWidthType.py +17 -0
- spire/xls/enums/ShapeDashLineStyleType.py +22 -0
- spire/xls/enums/ShapeFillType.py +21 -0
- spire/xls/enums/ShapeLayerChangeType.py +18 -0
- spire/xls/enums/ShapeLineStyleType.py +19 -0
- spire/xls/enums/SheetProtectionType.py +32 -0
- spire/xls/enums/SortComparsionType.py +18 -0
- spire/xls/enums/SortOrientationType.py +16 -0
- spire/xls/enums/SortedWayType.py +17 -0
- spire/xls/enums/SparklineType.py +17 -0
- spire/xls/enums/SplitType.py +18 -0
- spire/xls/enums/TextDirection.py +19 -0
- spire/xls/enums/TextRotationType.py +18 -0
- spire/xls/enums/ThemeColorType.py +26 -0
- spire/xls/enums/TickLabelPositionType.py +18 -0
- spire/xls/enums/TickMarkType.py +18 -0
- spire/xls/enums/TopBottomType.py +18 -0
- spire/xls/enums/TopFormatType.py +17 -0
- spire/xls/enums/TrendLineType.py +20 -0
- spire/xls/enums/UnknownVariableAction.py +17 -0
- spire/xls/enums/ValidationComparisonOperator.py +22 -0
- spire/xls/enums/VariableTypeAction.py +17 -0
- spire/xls/enums/VerticalAlignType.py +19 -0
- spire/xls/enums/ViewMode.py +17 -0
- spire/xls/enums/WorksheetVisibility.py +17 -0
- spire/xls/enums/XLSXBorderJoinType.py +18 -0
- spire/xls/enums/XLSXChartMaterialType.py +31 -0
- spire/xls/enums/XLSXChartPrespectiveType.py +20 -0
- spire/xls/enums/XLSXChartShadowInnerType.py +24 -0
- spire/xls/enums/XLSXChartShadowOuterType.py +24 -0
- spire/xls/enums/__init__.py +1 -0
- spire/xls/interfaces/IArcShape.py +285 -0
- spire/xls/interfaces/IChart.py +1597 -0
- spire/xls/interfaces/IChartAxis.py +786 -0
- spire/xls/interfaces/IChartBorder.py +203 -0
- spire/xls/interfaces/IChartCategoryAxis.py +522 -0
- spire/xls/interfaces/IChartDataLabels.py +419 -0
- spire/xls/interfaces/IChartDataPoint.py +114 -0
- spire/xls/interfaces/IChartDataTable.py +184 -0
- spire/xls/interfaces/IChartErrorBars.py +340 -0
- spire/xls/interfaces/IChartFillBorder.py +268 -0
- spire/xls/interfaces/IChartFormat.py +521 -0
- spire/xls/interfaces/IChartFrameFormat.py +85 -0
- spire/xls/interfaces/IChartGridLine.py +100 -0
- spire/xls/interfaces/IChartInterior.py +259 -0
- spire/xls/interfaces/IChartLegend.py +453 -0
- spire/xls/interfaces/IChartLegendEntry.py +167 -0
- spire/xls/interfaces/IChartPageSetup.py +51 -0
- spire/xls/interfaces/IChartSerie.py +727 -0
- spire/xls/interfaces/IChartSerieDataFormat.py +519 -0
- spire/xls/interfaces/IChartSeriesAxis.py +118 -0
- spire/xls/interfaces/IChartShape.py +88 -0
- spire/xls/interfaces/IChartTextArea.py +181 -0
- spire/xls/interfaces/IChartTrendLine.py +502 -0
- spire/xls/interfaces/IChartValueAxis.py +586 -0
- spire/xls/interfaces/IChartWallOrFloor.py +40 -0
- spire/xls/interfaces/ICheckBox.py +120 -0
- spire/xls/interfaces/ICloneParent.py +29 -0
- spire/xls/interfaces/IColorConditionValue.py +44 -0
- spire/xls/interfaces/IColorScale.py +39 -0
- spire/xls/interfaces/ICombinedRange.py +109 -0
- spire/xls/interfaces/IComboBoxShape.py +120 -0
- spire/xls/interfaces/IComment.py +110 -0
- spire/xls/interfaces/ICommentShape.py +20 -0
- spire/xls/interfaces/IConditionValue.py +83 -0
- spire/xls/interfaces/IConditionalFormat.py +757 -0
- spire/xls/interfaces/IConditionalFormats.py +66 -0
- spire/xls/interfaces/ICustomDocumentProperties.py +168 -0
- spire/xls/interfaces/IDataBar.py +127 -0
- spire/xls/interfaces/IDataValidation.py +506 -0
- spire/xls/interfaces/IDataValidationTable.py +84 -0
- spire/xls/interfaces/IDigitalSignature.py +111 -0
- spire/xls/interfaces/IDigitalSignatures.py +33 -0
- spire/xls/interfaces/IDocumentProperty.py +276 -0
- spire/xls/interfaces/IErrorIndicator.py +38 -0
- spire/xls/interfaces/IExtendIndex.py +26 -0
- spire/xls/interfaces/IExtendedFormat.py +631 -0
- spire/xls/interfaces/IFont.py +313 -0
- spire/xls/interfaces/IFormat3D.py +307 -0
- spire/xls/interfaces/IGeomPath.py +27 -0
- spire/xls/interfaces/IGeomPathInfo.py +141 -0
- spire/xls/interfaces/IGeomPathShape.py +40 -0
- spire/xls/interfaces/IGlow.py +104 -0
- spire/xls/interfaces/IGradient.py +203 -0
- spire/xls/interfaces/IGroupBox.py +82 -0
- spire/xls/interfaces/IHPageBreak.py +26 -0
- spire/xls/interfaces/IHyperLink.py +137 -0
- spire/xls/interfaces/IIconSet.py +115 -0
- spire/xls/interfaces/IInterior.py +137 -0
- spire/xls/interfaces/IInternalAddtionalFormat.py +277 -0
- spire/xls/interfaces/IInternalFont.py +38 -0
- spire/xls/interfaces/ILabelShape.py +60 -0
- spire/xls/interfaces/ILineShape.py +334 -0
- spire/xls/interfaces/IListObject.py +443 -0
- spire/xls/interfaces/IListObjectColumn.py +196 -0
- spire/xls/interfaces/IMarkersDesigner.py +133 -0
- spire/xls/interfaces/IMigrantRange.py +28 -0
- spire/xls/interfaces/INamedObject.py +27 -0
- spire/xls/interfaces/INamedRange.py +246 -0
- spire/xls/interfaces/INumberFormat.py +90 -0
- spire/xls/interfaces/IOleObject.py +225 -0
- spire/xls/interfaces/IOptimizedUpdate.py +35 -0
- spire/xls/interfaces/IOvalShape.py +201 -0
- spire/xls/interfaces/IPageSetup.py +260 -0
- spire/xls/interfaces/IPageSetupBase.py +849 -0
- spire/xls/interfaces/IPictureShape.py +118 -0
- spire/xls/interfaces/IPropertyData.py +100 -0
- spire/xls/interfaces/IPrstGeomShape.py +103 -0
- spire/xls/interfaces/IRadioButton.py +159 -0
- spire/xls/interfaces/IRectangleShape.py +90 -0
- spire/xls/interfaces/IReflectionEffect.py +217 -0
- spire/xls/interfaces/IScrollBarShape.py +139 -0
- spire/xls/interfaces/IShadow.py +385 -0
- spire/xls/interfaces/IShape.py +620 -0
- spire/xls/interfaces/IShapeFill.py +767 -0
- spire/xls/interfaces/IShapeLineFormat.py +488 -0
- spire/xls/interfaces/ISortColumn.py +138 -0
- spire/xls/interfaces/ISortColumns.py +106 -0
- spire/xls/interfaces/ISortedRule.py +154 -0
- spire/xls/interfaces/ISpinnerShape.py +124 -0
- spire/xls/interfaces/IStyle.py +60 -0
- spire/xls/interfaces/ITabSheet.py +364 -0
- spire/xls/interfaces/ITextBox.py +140 -0
- spire/xls/interfaces/ITextBoxLinkShape.py +48 -0
- spire/xls/interfaces/ITextBoxShape.py +27 -0
- spire/xls/interfaces/ITextFrame.py +146 -0
- spire/xls/interfaces/IVPageBreak.py +26 -0
- spire/xls/interfaces/IWorkbook.py +1736 -0
- spire/xls/interfaces/IWorksheet.py +2638 -0
- spire/xls/interfaces/IXLSRange.py +2241 -0
- spire/xls/interfaces/IXLSRanges.py +40 -0
- spire/xls/interfaces/IconSet.py +125 -0
- spire/xls/interfaces/ImageLocationTypes.py +17 -0
- spire/xls/interfaces/ImportObjectOptions.py +143 -0
- spire/xls/interfaces/InsertMoveOption.py +17 -0
- spire/xls/interfaces/InteriorArrayWrapper.py +181 -0
- spire/xls/interfaces/__init__.py +0 -0
- spire/xls/interfaces/collections/IDataValidationCollection.py +128 -0
- spire/xls/interfaces/collections/IHPageBreaks.py +37 -0
- spire/xls/interfaces/collections/IListObjects.py +34 -0
- spire/xls/interfaces/collections/IOleObjects.py +44 -0
- spire/xls/interfaces/collections/IPrstGeomShapes.py +87 -0
- spire/xls/interfaces/collections/IShapes.py +273 -0
- spire/xls/interfaces/collections/ITextBoxes.py +67 -0
- spire/xls/interfaces/collections/IVPageBreaks.py +37 -0
- spire/xls/interfaces/collections/__init__.py +0 -0
- spire/xls/interfaces/pivot_table/IPivotCache.py +50 -0
- spire/xls/interfaces/pivot_table/IPivotCaches.py +52 -0
- spire/xls/interfaces/pivot_table/IPivotCalculatedFields.py +69 -0
- spire/xls/interfaces/pivot_table/IPivotField.py +372 -0
- spire/xls/interfaces/pivot_table/IPivotTable.py +509 -0
- spire/xls/interfaces/pivot_table/IPivotTableOptions.py +507 -0
- spire/xls/interfaces/pivot_table/__init__.py +0 -0
- spire/xls/interfaces/sorting/__init__.py +0 -0
- spire/xls/lib/Spire.Xls.Base.dll +0 -0
- spire/xls/lib/_init_.py +0 -0
- spire/xls/license/LicenseProvider.py +107 -0
- spire/xls/license/__init__.py +0 -0
- spire/xls/pivot_tables/AutoSortScope.py +29 -0
- spire/xls/pivot_tables/PivotConditionalFormat.py +71 -0
- spire/xls/pivot_tables/PivotDataField.py +163 -0
- spire/xls/pivot_tables/PivotItem.py +228 -0
- spire/xls/pivot_tables/PivotReportFilter.py +199 -0
- spire/xls/pivot_tables/PivotReportFilters.py +95 -0
- spire/xls/pivot_tables/PivotStyle.py +105 -0
- spire/xls/pivot_tables/PivotTableStyle.py +83 -0
- spire/xls/pivot_tables/XlsPivotCache.py +506 -0
- spire/xls/pivot_tables/XlsPivotCacheField.py +276 -0
- spire/xls/pivot_tables/XlsPivotField.py +975 -0
- spire/xls/pivot_tables/XlsPivotTable.py +1189 -0
- spire/xls/pivot_tables/__init__.py +0 -0
- spire/xls/security/__init__.py +0 -0
- spire/xls/sorting/DataSorter.py +152 -0
- spire/xls/sorting/SortColumn.py +115 -0
- spire/xls/sorting/SortColumns.py +194 -0
- spire/xls/sorting/__init__.py +0 -0
- spire/xls/sparkline/ISparklines.py +72 -0
- spire/xls/sparkline/Sparkline.py +89 -0
- spire/xls/sparkline/SparklineCollection.py +107 -0
- spire/xls/sparkline/SparklineGroup.py +592 -0
- spire/xls/sparkline/SparklineGroupCollection.py +67 -0
- spire/xls/sparkline/__init__.py +0 -0
- spire/xls/template_markers/MarkerDesigner.py +171 -0
- spire/xls/template_markers/__init__.py +0 -0
- spire_xls-15.11.1.dist-info/METADATA +197 -0
- spire_xls-15.11.1.dist-info/RECORD +721 -0
- spire/xls/AddInFunctionsCollection.py +0 -29
- spire/xls/AlertStyleType.py +0 -18
- spire/xls/ArcShapeCollection.py +0 -70
- spire/xls/AutoFiltersCollection.py +0 -527
- spire/xls/AutoFitterOptions.py +0 -66
- spire/xls/AutoFormatOptions.py +0 -23
- spire/xls/AutoFormatType.py +0 -32
- spire/xls/AutoSortScope.py +0 -25
- spire/xls/AverageType.py +0 -25
- spire/xls/AxisLineIdentifierType.py +0 -19
- spire/xls/AxisTextDirectionType.py +0 -18
- spire/xls/AxisType.py +0 -18
- spire/xls/BaseFormatType.py +0 -17
- spire/xls/BordersCollection.py +0 -158
- spire/xls/BordersCollectionArrayWrapper.py +0 -95
- spire/xls/BordersLineType.py +0 -23
- spire/xls/BubbleSizeType.py +0 -17
- spire/xls/BuiltInDocumentProperties.py +0 -12
- spire/xls/BuiltInPropertyType.py +0 -50
- spire/xls/BuiltInStyles.py +0 -66
- spire/xls/ButtonShapeCollection.py +0 -70
- spire/xls/CategoryType.py +0 -18
- spire/xls/CellDataType.py +0 -23
- spire/xls/CellFormatType.py +0 -21
- spire/xls/Chart.py +0 -404
- spire/xls/ChartArea.py +0 -61
- spire/xls/ChartBackgroundMode.py +0 -18
- spire/xls/ChartBaseUnitType.py +0 -18
- spire/xls/ChartCategoryAxis.py +0 -93
- spire/xls/ChartDataLabels.py +0 -42
- spire/xls/ChartDataPoint.py +0 -42
- spire/xls/ChartDataPointsCollection.py +0 -75
- spire/xls/ChartDisplayUnitType.py +0 -26
- spire/xls/ChartFormat.py +0 -72
- spire/xls/ChartFormatCollection.py +0 -59
- spire/xls/ChartGridLine.py +0 -27
- spire/xls/ChartLegend.py +0 -42
- spire/xls/ChartLegendEntriesColl.py +0 -128
- spire/xls/ChartLegendEntry.py +0 -27
- spire/xls/ChartLinePatternType.py +0 -24
- spire/xls/ChartLineWeightType.py +0 -19
- spire/xls/ChartMarkerType.py +0 -27
- spire/xls/ChartParagraphType.py +0 -18
- spire/xls/ChartPieType.py +0 -18
- spire/xls/ChartPlotArea.py +0 -53
- spire/xls/ChartPlotEmptyType.py +0 -18
- spire/xls/ChartSerie.py +0 -142
- spire/xls/ChartSerieDataFormat.py +0 -56
- spire/xls/ChartSeries.py +0 -154
- spire/xls/ChartSeriesAxis.py +0 -72
- spire/xls/ChartShadow.py +0 -235
- spire/xls/ChartSheet.py +0 -285
- spire/xls/ChartTextArea.py +0 -782
- spire/xls/ChartValueAxis.py +0 -92
- spire/xls/ChartsCollection.py +0 -113
- spire/xls/CheckState.py +0 -18
- spire/xls/CollectionBase.py +0 -184
- spire/xls/CollectionExtended.py +0 -92
- spire/xls/ColorConditionValue.py +0 -91
- spire/xls/ColorFilter.py +0 -45
- spire/xls/ColorType.py +0 -18
- spire/xls/ComboBoxCollection.py +0 -70
- spire/xls/CommentHAlignType.py +0 -21
- spire/xls/CommentVAlignType.py +0 -20
- spire/xls/CommentsCollection.py +0 -109
- spire/xls/ComparisonOperatorType.py +0 -24
- spire/xls/CondFormatCollectionWrapper.py +0 -125
- spire/xls/ConditionValue.py +0 -82
- spire/xls/ConditionValuePosition.py +0 -16
- spire/xls/ConditionalFormat.py +0 -14
- spire/xls/ConditionalFormatScope.py +0 -16
- spire/xls/ConditionalFormatType.py +0 -33
- spire/xls/ConditionalFormatWrapper.py +0 -986
- spire/xls/ConditionalFormats.py +0 -55
- spire/xls/CustomFilter.py +0 -147
- spire/xls/CustomFilterCollection.py +0 -113
- spire/xls/DataBarBorder.py +0 -47
- spire/xls/DataConnections.py +0 -25
- spire/xls/DataLabelPositionType.py +0 -26
- spire/xls/DataSorter.py +0 -154
- spire/xls/DataSourceType.py +0 -19
- spire/xls/DateTimeGroupItem.py +0 -132
- spire/xls/DropLineStyleType.py +0 -18
- spire/xls/DynamicFilter.py +0 -71
- spire/xls/ErrorBarIncludeType.py +0 -19
- spire/xls/ErrorBarType.py +0 -20
- spire/xls/ExcelCalculationMode.py +0 -18
- spire/xls/ExcelChartType.py +0 -96
- spire/xls/ExcelColors.py +0 -121
- spire/xls/ExcelComboType.py +0 -22
- spire/xls/ExcelHorizontalAlignment.py +0 -21
- spire/xls/ExcelPatternType.py +0 -52
- spire/xls/ExcelQuartileCalculation.py +0 -17
- spire/xls/ExcelShapeType.py +0 -41
- spire/xls/ExcelSheetType.py +0 -20
- spire/xls/ExcelTreeMapLabelOption.py +0 -18
- spire/xls/ExcelVersion.py +0 -24
- spire/xls/ExcelVerticalAlignment.py +0 -21
- spire/xls/ExpandCollapseFlags.py +0 -18
- spire/xls/ExternalLinkCollection.py +0 -25
- spire/xls/FilterColumn.py +0 -258
- spire/xls/FilterConditionType.py +0 -21
- spire/xls/FilterDataType.py +0 -22
- spire/xls/FontUnderlineType.py +0 -20
- spire/xls/FontVertialAlignmentType.py +0 -20
- spire/xls/GradientColorType.py +0 -18
- spire/xls/GradientPatternType.py +0 -64
- spire/xls/GradientPresetType.py +0 -39
- spire/xls/GradientStyleType.py +0 -21
- spire/xls/GradientTextureType.py +0 -40
- spire/xls/GradientVariantsType.py +0 -19
- spire/xls/GroupBoxCollection.py +0 -70
- spire/xls/GroupShapeCollection.py +0 -46
- spire/xls/HPageBreaksCollection.py +0 -108
- spire/xls/HistogramAxisFormat.py +0 -30
- spire/xls/HorizontalAlignType.py +0 -23
- spire/xls/HyperLinkType.py +0 -20
- spire/xls/HyperLinksCollection.py +0 -72
- spire/xls/IArcShape.py +0 -259
- spire/xls/IChart.py +0 -1368
- spire/xls/IChartAxis.py +0 -722
- spire/xls/IChartBorder.py +0 -220
- spire/xls/IChartCategoryAxis.py +0 -410
- spire/xls/IChartDataLabels.py +0 -457
- spire/xls/IChartDataPoint.py +0 -131
- spire/xls/IChartDataTable.py +0 -197
- spire/xls/IChartErrorBars.py +0 -373
- spire/xls/IChartFillBorder.py +0 -303
- spire/xls/IChartFormat.py +0 -571
- spire/xls/IChartFrameFormat.py +0 -93
- spire/xls/IChartGridLine.py +0 -107
- spire/xls/IChartInterior.py +0 -278
- spire/xls/IChartLegend.py +0 -499
- spire/xls/IChartLegendEntry.py +0 -178
- spire/xls/IChartPageSetup.py +0 -56
- spire/xls/IChartSerie.py +0 -779
- spire/xls/IChartSerieDataFormat.py +0 -566
- spire/xls/IChartSeriesAxis.py +0 -128
- spire/xls/IChartShape.py +0 -92
- spire/xls/IChartTextArea.py +0 -197
- spire/xls/IChartTrendLine.py +0 -548
- spire/xls/IChartValueAxis.py +0 -518
- spire/xls/IChartWallOrFloor.py +0 -32
- spire/xls/ICheckBox.py +0 -96
- spire/xls/ICloneParent.py +0 -28
- spire/xls/IColorConditionValue.py +0 -31
- spire/xls/IColorScale.py +0 -32
- spire/xls/ICombinedRange.py +0 -87
- spire/xls/IComboBoxShape.py +0 -95
- spire/xls/IComment.py +0 -85
- spire/xls/ICommentShape.py +0 -12
- spire/xls/IConditionValue.py +0 -68
- spire/xls/IConditionalFormat.py +0 -606
- spire/xls/IConditionalFormats.py +0 -48
- spire/xls/ICustomDocumentProperties.py +0 -128
- spire/xls/IDataBar.py +0 -105
- spire/xls/IDataValidation.py +0 -421
- spire/xls/IDataValidationCollection.py +0 -132
- spire/xls/IDataValidationTable.py +0 -68
- spire/xls/IDigitalSignature.py +0 -99
- spire/xls/IDigitalSignatures.py +0 -29
- spire/xls/IDocumentProperty.py +0 -226
- spire/xls/IErrorIndicator.py +0 -31
- spire/xls/IExtendIndex.py +0 -21
- spire/xls/IExtendedFormat.py +0 -530
- spire/xls/IFont.py +0 -271
- spire/xls/IFormat3D.py +0 -252
- spire/xls/IGeomPath.py +0 -23
- spire/xls/IGeomPathInfo.py +0 -112
- spire/xls/IGeomPathShape.py +0 -30
- spire/xls/IGlow.py +0 -85
- spire/xls/IGradient.py +0 -174
- spire/xls/IGroupBox.py +0 -67
- spire/xls/IHPageBreak.py +0 -22
- spire/xls/IHPageBreaks.py +0 -31
- spire/xls/IHyperLink.py +0 -118
- spire/xls/IIconSet.py +0 -96
- spire/xls/IInterior.py +0 -117
- spire/xls/IInternalAddtionalFormat.py +0 -238
- spire/xls/IInternalFont.py +0 -31
- spire/xls/ILabelShape.py +0 -49
- spire/xls/ILineShape.py +0 -305
- spire/xls/IListObject.py +0 -493
- spire/xls/IListObjectColumn.py +0 -222
- spire/xls/IListObjects.py +0 -31
- spire/xls/IMarkersDesigner.py +0 -113
- spire/xls/IMigrantRange.py +0 -21
- spire/xls/INamedObject.py +0 -22
- spire/xls/INamedRange.py +0 -162
- spire/xls/INumberFormat.py +0 -77
- spire/xls/IOleObject.py +0 -176
- spire/xls/IOleObjects.py +0 -32
- spire/xls/IOptimizedUpdate.py +0 -28
- spire/xls/IOvalShape.py +0 -154
- spire/xls/IPageSetup.py +0 -195
- spire/xls/IPageSetupBase.py +0 -642
- spire/xls/IPictureShape.py +0 -99
- spire/xls/IPivotCache.py +0 -41
- spire/xls/IPivotCaches.py +0 -39
- spire/xls/IPivotCalculatedFields.py +0 -50
- spire/xls/IPivotField.py +0 -291
- spire/xls/IPivotTable.py +0 -393
- spire/xls/IPivotTableOptions.py +0 -428
- spire/xls/IPropertyData.py +0 -70
- spire/xls/IPrstGeomShape.py +0 -71
- spire/xls/IPrstGeomShapes.py +0 -81
- spire/xls/IRadioButton.py +0 -105
- spire/xls/IRectangleShape.py +0 -60
- spire/xls/IReflectionEffect.py +0 -138
- spire/xls/IScrollBarShape.py +0 -140
- spire/xls/IShadow.py +0 -244
- spire/xls/IShape.py +0 -409
- spire/xls/IShapeFill.py +0 -522
- spire/xls/IShapeLineFormat.py +0 -331
- spire/xls/IShapes.py +0 -270
- spire/xls/ISortColumn.py +0 -96
- spire/xls/ISortColumns.py +0 -70
- spire/xls/ISortedRule.py +0 -112
- spire/xls/ISparklines.py +0 -72
- spire/xls/ISpinnerShape.py +0 -102
- spire/xls/IStyle.py +0 -50
- spire/xls/ITabSheet.py +0 -302
- spire/xls/ITextBox.py +0 -116
- spire/xls/ITextBoxLinkShape.py +0 -40
- spire/xls/ITextBoxShape.py +0 -22
- spire/xls/ITextBoxes.py +0 -61
- spire/xls/ITextFrame.py +0 -120
- spire/xls/IVPageBreak.py +0 -22
- spire/xls/IVPageBreaks.py +0 -31
- spire/xls/IWorkbook.py +0 -1806
- spire/xls/IWorksheet.py +0 -2694
- spire/xls/IXLSRange.py +0 -2479
- spire/xls/IXLSRanges.py +0 -35
- spire/xls/IconSet.py +0 -103
- spire/xls/IgnoreErrorType.py +0 -24
- spire/xls/ImageFormatType.py +0 -18
- spire/xls/ImageLocationTypes.py +0 -15
- spire/xls/ImageType.py +0 -17
- spire/xls/ImportObjectOptions.py +0 -89
- spire/xls/InsertMoveOption.py +0 -15
- spire/xls/InteriorArrayWrapper.py +0 -126
- spire/xls/LegendPositionType.py +0 -21
- spire/xls/LegendSpacingType.py +0 -18
- spire/xls/LineStyleType.py +0 -29
- spire/xls/ListObjectCollection.py +0 -45
- spire/xls/MarkerDesigner.py +0 -172
- spire/xls/MultipleFilterCollection.py +0 -166
- spire/xls/NegativeBarFormat.py +0 -82
- spire/xls/OleObjectType.py +0 -51
- spire/xls/OrderBy.py +0 -19
- spire/xls/OrderType.py +0 -17
- spire/xls/OvalShapeCollection.py +0 -70
- spire/xls/PageBreakExtentType.py +0 -17
- spire/xls/PageBreakType.py +0 -18
- spire/xls/PageOrientationType.py +0 -17
- spire/xls/PagesOrderType.py +0 -17
- spire/xls/PaperSizeType.py +0 -135
- spire/xls/PicturesCollection.py +0 -532
- spire/xls/PivotConditionalFormat.py +0 -54
- spire/xls/PivotConditionalFormatCollection.py +0 -38
- spire/xls/PivotDataField.py +0 -118
- spire/xls/PivotGroupByTypes.py +0 -23
- spire/xls/PivotItem.py +0 -161
- spire/xls/PivotReportFilter.py +0 -92
- spire/xls/PivotReportFilters.py +0 -63
- spire/xls/PivotStyle.py +0 -79
- spire/xls/PivotTableFields.py +0 -85
- spire/xls/PivotTableStyle.py +0 -63
- spire/xls/PrintCommentType.py +0 -18
- spire/xls/PrintErrorsType.py +0 -19
- spire/xls/PrstGeomShapeCollection.py +0 -126
- spire/xls/QueryTableCollection.py +0 -25
- spire/xls/RadioButtonCollection.py +0 -137
- spire/xls/RangesCollection.py +0 -537
- spire/xls/ReadingOrderType.py +0 -18
- spire/xls/RectangleStyleType.py +0 -17
- spire/xls/ResizeBehaveType.py +0 -18
- spire/xls/ShapeArrowLengthType.py +0 -18
- spire/xls/ShapeArrowStyleType.py +0 -21
- spire/xls/ShapeArrowWidthType.py +0 -18
- spire/xls/ShapeCollectionBase.py +0 -87
- spire/xls/ShapeDashLineStyleType.py +0 -23
- spire/xls/ShapeFillType.py +0 -22
- spire/xls/ShapeLayerChangeType.py +0 -19
- spire/xls/ShapeLineStyleType.py +0 -20
- spire/xls/SheetProtectionType.py +0 -33
- spire/xls/SortColumn.py +0 -120
- spire/xls/SortColumns.py +0 -185
- spire/xls/SortComparsionType.py +0 -19
- spire/xls/SortOrientationType.py +0 -17
- spire/xls/SortedWayType.py +0 -18
- spire/xls/Sparkline.py +0 -70
- spire/xls/SparklineCollection.py +0 -112
- spire/xls/SparklineGroup.py +0 -523
- spire/xls/SparklineGroupCollection.py +0 -71
- spire/xls/SparklineType.py +0 -18
- spire/xls/SplitType.py +0 -19
- spire/xls/StylesCollection.py +0 -141
- spire/xls/TextDirection.py +0 -20
- spire/xls/TextRotationType.py +0 -19
- spire/xls/ThemeColorType.py +0 -27
- spire/xls/TickLabelPositionType.py +0 -19
- spire/xls/TickMarkType.py +0 -19
- spire/xls/Top10Filter.py +0 -75
- spire/xls/TopBottomType.py +0 -19
- spire/xls/TopFormatType.py +0 -18
- spire/xls/TrendLineType.py +0 -21
- spire/xls/UnknownVariableAction.py +0 -18
- spire/xls/VPageBreaksCollection.py +0 -96
- spire/xls/ValidationComparisonOperator.py +0 -23
- spire/xls/VariableTypeAction.py +0 -19
- spire/xls/VerticalAlignType.py +0 -20
- spire/xls/ViewMode.py +0 -18
- spire/xls/WorksheetVisibility.py +0 -18
- spire/xls/WorksheetsCollection.py +0 -341
- spire/xls/XLSXBorderJoinType.py +0 -19
- spire/xls/XLSXChartMaterialType.py +0 -32
- spire/xls/XLSXChartPrespectiveType.py +0 -21
- spire/xls/XLSXChartShadowInnerType.py +0 -25
- spire/xls/XLSXChartShadowOuterType.py +0 -25
- spire/xls/XlsAddInFunctionsCollection.py +0 -101
- spire/xls/XlsAutoFiltersCollection.py +0 -119
- spire/xls/XlsBordersCollection.py +0 -101
- spire/xls/XlsBuiltInDocumentProperties.py +0 -639
- spire/xls/XlsChart.py +0 -1510
- spire/xls/XlsChartAxis.py +0 -564
- spire/xls/XlsChartBorder.py +0 -165
- spire/xls/XlsChartCategoryAxis.py +0 -656
- spire/xls/XlsChartDataLabelArea.py +0 -387
- spire/xls/XlsChartDataLabels.py +0 -811
- spire/xls/XlsChartDataPoint.py +0 -108
- spire/xls/XlsChartDataPointsCollection.py +0 -120
- spire/xls/XlsChartDataTable.py +0 -393
- spire/xls/XlsChartDropBar.py +0 -301
- spire/xls/XlsChartFill.py +0 -571
- spire/xls/XlsChartFormat.py +0 -1069
- spire/xls/XlsChartFormatCollection.py +0 -162
- spire/xls/XlsChartFrameFormat.py +0 -614
- spire/xls/XlsChartGridLine.py +0 -171
- spire/xls/XlsChartInterior.py +0 -240
- spire/xls/XlsChartLegend.py +0 -355
- spire/xls/XlsChartLegendArea.py +0 -419
- spire/xls/XlsChartLegendEntry.py +0 -156
- spire/xls/XlsChartSerie.py +0 -589
- spire/xls/XlsChartSerieDataFormat.py +0 -1008
- spire/xls/XlsChartSeriesAxis.py +0 -212
- spire/xls/XlsChartShape.py +0 -1142
- spire/xls/XlsChartTitleArea.py +0 -392
- spire/xls/XlsChartValueAxis.py +0 -317
- spire/xls/XlsChartWallOrFloor.py +0 -319
- spire/xls/XlsChartsCollection.py +0 -89
- spire/xls/XlsCommentsCollection.py +0 -87
- spire/xls/XlsConditionValue.py +0 -111
- spire/xls/XlsConditionalFormat.py +0 -1119
- spire/xls/XlsConditionalFormats.py +0 -590
- spire/xls/XlsDataValidationCollection.py +0 -159
- spire/xls/XlsFontsCollection.py +0 -51
- spire/xls/XlsHPageBreaksCollection.py +0 -85
- spire/xls/XlsHyperLinksCollection.py +0 -102
- spire/xls/XlsPivotCache.py +0 -401
- spire/xls/XlsPivotCacheField.py +0 -209
- spire/xls/XlsPivotCachesCollection.py +0 -124
- spire/xls/XlsPivotField.py +0 -885
- spire/xls/XlsPivotTable.py +0 -905
- spire/xls/XlsPivotTablesCollection.py +0 -131
- spire/xls/XlsRangesCollection.py +0 -1566
- spire/xls/XlsStylesCollection.py +0 -73
- spire/xls/XlsVPageBreaksCollection.py +0 -84
- spire/xls/XlsWorkbookObjectsCollection.py +0 -94
- spire/xls/XlsWorksheetsCollection.py +0 -416
- spire_xls-15.5.0.dist-info/METADATA +0 -197
- spire_xls-15.5.0.dist-info/RECORD +0 -703
- /spire/xls/{lib → autofilter}/__init__.py +0 -0
- /spire/xls/{ChartBorder.py → charts/ChartBorder.py} +0 -0
- /spire/xls/{ChartDataTable.py → charts/ChartDataTable.py} +0 -0
- /spire/xls/{ChartDropBar.py → charts/ChartDropBar.py} +0 -0
- /spire/xls/{ChartInterior.py → charts/ChartInterior.py} +0 -0
- /spire/xls/{ChartPageSetup.py → charts/ChartPageSetup.py} +0 -0
- /spire/xls/{ChartTitle.py → charts/ChartTitle.py} +0 -0
- /spire/xls/{ChartWallOrFloor.py → charts/ChartWallOrFloor.py} +0 -0
- /spire/xls/{XlsChartPageSetup.py → charts/XlsChartPageSetup.py} +0 -0
- /spire/xls/{XlsChartPlotArea.py → charts/XlsChartPlotArea.py} +0 -0
- /spire/xls/{CheckBoxCollection.py → collection/CheckBoxCollection.py} +0 -0
- /spire/xls/{CollectionChangeEventArgs.py → collection/CollectionChangeEventArgs.py} +0 -0
- /spire/xls/{FontsCollection.py → collection/FontsCollection.py} +0 -0
- /spire/xls/{GeomertyAdjustValuesCollection.py → collection/GeomertyAdjustValuesCollection.py} +0 -0
- /spire/xls/{LabelShapeCollection.py → collection/LabelShapeCollection.py} +0 -0
- /spire/xls/{LineCollection.py → collection/LineCollection.py} +0 -0
- /spire/xls/{ListBoxCollection.py → collection/ListBoxCollection.py} +0 -0
- /spire/xls/{RectangleCollection.py → collection/RectangleCollection.py} +0 -0
- /spire/xls/{ScrollBarCollection.py → collection/ScrollBarCollection.py} +0 -0
- /spire/xls/{SpinnerShapeCollection.py → collection/SpinnerShapeCollection.py} +0 -0
- /spire/xls/{TextBoxCollection.py → collection/TextBoxCollection.py} +0 -0
- /spire/xls/{WorkbookObjectsCollection.py → collection/WorkbookObjectsCollection.py} +0 -0
- /spire/xls/{WorksheetChartsCollection.py → collection/WorksheetChartsCollection.py} +0 -0
- /spire/xls/{WorksheetConditionalFormats.py → collection/WorksheetConditionalFormats.py} +0 -0
- /spire/xls/{XlsChartSeries.py → collection/XlsChartSeries.py} +0 -0
- /spire/xls/{XlsHeaderFooterShapeCollection.py → collection/XlsHeaderFooterShapeCollection.py} +0 -0
- /spire/xls/{XlsPicturesCollection.py → collection/XlsPicturesCollection.py} +0 -0
- /spire/xls/{XlsWorksheetChartsCollection.py → collection/XlsWorksheetChartsCollection.py} +0 -0
- /spire/xls/{XlsWorksheetConditionalFormats.py → collection/XlsWorksheetConditionalFormats.py} +0 -0
- /spire/xls/{PivotCachesCollection.py → collection/pivot_table/PivotCachesCollection.py} +0 -0
- /spire/xls/{PivotCalculatedFieldsCollection.py → collection/pivot_table/PivotCalculatedFieldsCollection.py} +0 -0
- /spire/xls/{PivotDataFields.py → collection/pivot_table/PivotDataFields.py} +0 -0
- /spire/xls/{PivotTablesCollection.py → collection/pivot_table/PivotTablesCollection.py} +0 -0
- /spire/xls/{AxisTypes.py → enums/AxisTypes.py} +0 -0
- /spire/xls/{CompoundLineType.py → enums/CompoundLineType.py} +0 -0
- /spire/xls/{ConditionValueType.py → enums/ConditionValueType.py} +0 -0
- /spire/xls/{ConditionalTopNType.py → enums/ConditionalTopNType.py} +0 -0
- /spire/xls/{ConnectionDataSourceType.py → enums/ConnectionDataSourceType.py} +0 -0
- /spire/xls/{CopyRangeOptions.py → enums/CopyRangeOptions.py} +0 -0
- /spire/xls/{DataBarAxisPosition.py → enums/DataBarAxisPosition.py} +0 -0
- /spire/xls/{DataBarBorderType.py → enums/DataBarBorderType.py} +0 -0
- /spire/xls/{DataBarFillType.py → enums/DataBarFillType.py} +0 -0
- /spire/xls/{DataBarNegativeColorType.py → enums/DataBarNegativeColorType.py} +0 -0
- /spire/xls/{DataMarkerDirection.py → enums/DataMarkerDirection.py} +0 -0
- /spire/xls/{DateTimeGroupingType.py → enums/DateTimeGroupingType.py} +0 -0
- /spire/xls/{DeleteOption.py → enums/DeleteOption.py} +0 -0
- /spire/xls/{DynamicFilterType.py → enums/DynamicFilterType.py} +0 -0
- /spire/xls/{ExcelClearOptions.py → enums/ExcelClearOptions.py} +0 -0
- /spire/xls/{ExcelFindOptions.py → enums/ExcelFindOptions.py} +0 -0
- /spire/xls/{ExcelSaveType.py → enums/ExcelSaveType.py} +0 -0
- /spire/xls/{ExcelTotalsCalculation.py → enums/ExcelTotalsCalculation.py} +0 -0
- /spire/xls/{FillPictureType.py → enums/FillPictureType.py} +0 -0
- /spire/xls/{FilterOperatorType.py → enums/FilterOperatorType.py} +0 -0
- /spire/xls/{FilterType.py → enums/FilterType.py} +0 -0
- /spire/xls/{FindType.py → enums/FindType.py} +0 -0
- /spire/xls/{GeomertyAdjustValueFormulaType.py → enums/GeomertyAdjustValueFormulaType.py} +0 -0
- /spire/xls/{GroupByType.py → enums/GroupByType.py} +0 -0
- /spire/xls/{HttpContentType.py → enums/HttpContentType.py} +0 -0
- /spire/xls/{IconSetType.py → enums/IconSetType.py} +0 -0
- /spire/xls/{InsertOptionsType.py → enums/InsertOptionsType.py} +0 -0
- /spire/xls/{LineShapeType.py → enums/LineShapeType.py} +0 -0
- /spire/xls/{MeasureUnits.py → enums/MeasureUnits.py} +0 -0
- /spire/xls/{MsoPathType.py → enums/MsoPathType.py} +0 -0
- /spire/xls/{OLEDBCommandType.py → enums/OLEDBCommandType.py} +0 -0
- /spire/xls/{OdsPageBackgroundImagePositionType.py → enums/OdsPageBackgroundImagePositionType.py} +0 -0
- /spire/xls/{OdsPageBackgroundImageType.py → enums/OdsPageBackgroundImageType.py} +0 -0
- /spire/xls/{OdsPageBackgroundType.py → enums/OdsPageBackgroundType.py} +0 -0
- /spire/xls/{OleLinkType.py → enums/OleLinkType.py} +0 -0
- /spire/xls/{PathFillMode.py → enums/PathFillMode.py} +0 -0
- /spire/xls/{PdfConformanceLevel.py → enums/PdfConformanceLevel.py} +0 -0
- /spire/xls/{PivotAutoFomatTypes.py → enums/PivotAutoFomatTypes.py} +0 -0
- /spire/xls/{PivotBuiltInStyles.py → enums/PivotBuiltInStyles.py} +0 -0
- /spire/xls/{PivotDataType.py → enums/PivotDataType.py} +0 -0
- /spire/xls/{PivotFieldFormatType.py → enums/PivotFieldFormatType.py} +0 -0
- /spire/xls/{PivotFieldSortType.py → enums/PivotFieldSortType.py} +0 -0
- /spire/xls/{PivotItemType.py → enums/PivotItemType.py} +0 -0
- /spire/xls/{PivotLabelFilterType.py → enums/PivotLabelFilterType.py} +0 -0
- /spire/xls/{PivotPageAreaFieldsOrderType.py → enums/PivotPageAreaFieldsOrderType.py} +0 -0
- /spire/xls/{PivotTableElement.py → enums/PivotTableElement.py} +0 -0
- /spire/xls/{PivotTableLayoutType.py → enums/PivotTableLayoutType.py} +0 -0
- /spire/xls/{PivotValueFilterType.py → enums/PivotValueFilterType.py} +0 -0
- /spire/xls/{PresetTextEffect.py → enums/PresetTextEffect.py} +0 -0
- /spire/xls/{PrintingPageType.py → enums/PrintingPageType.py} +0 -0
- /spire/xls/{PropertyType.py → enums/PropertyType.py} +0 -0
- /spire/xls/{PrstGeomShapeType.py → enums/PrstGeomShapeType.py} +0 -0
- /spire/xls/{RectangleShapeType.py → enums/RectangleShapeType.py} +0 -0
- /spire/xls/{RelationShip.py → enums/RelationShip.py} +0 -0
- /spire/xls/{RenameStrategy.py → enums/RenameStrategy.py} +0 -0
- /spire/xls/{RtfTags.py → enums/RtfTags.py} +0 -0
- /spire/xls/{SelectionType.py → enums/SelectionType.py} +0 -0
- /spire/xls/{SparklineEmptyCells.py → enums/SparklineEmptyCells.py} +0 -0
- /spire/xls/{SpartlineVerticalAxisType.py → enums/SpartlineVerticalAxisType.py} +0 -0
- /spire/xls/{StrikeThroughStyle.py → enums/StrikeThroughStyle.py} +0 -0
- /spire/xls/{StyleDefineType.py → enums/StyleDefineType.py} +0 -0
- /spire/xls/{SubtotalTypes.py → enums/SubtotalTypes.py} +0 -0
- /spire/xls/{TRangeValueType.py → enums/TRangeValueType.py} +0 -0
- /spire/xls/{TableBuiltInStyles.py → enums/TableBuiltInStyles.py} +0 -0
- /spire/xls/{TextDirectionType.py → enums/TextDirectionType.py} +0 -0
- /spire/xls/{TextVerticalValue.py → enums/TextVerticalValue.py} +0 -0
- /spire/xls/{TimePeriodType.py → enums/TimePeriodType.py} +0 -0
- /spire/xls/{UnderlineStyle.py → enums/UnderlineStyle.py} +0 -0
- /spire/xls/{WorksheetCopyType.py → enums/WorksheetCopyType.py} +0 -0
- /spire/xls/{XLSXChartBevelType.py → enums/XLSXChartBevelType.py} +0 -0
- /spire/xls/{XLSXChartLightingType.py → enums/XLSXChartLightingType.py} +0 -0
- /spire/xls/{XLSXPivotItemType.py → enums/XLSXPivotItemType.py} +0 -0
- /spire/xls/{XmlOpenType.py → enums/XmlOpenType.py} +0 -0
- /spire/xls/{IAddInFunction.py → interfaces/IAddInFunction.py} +0 -0
- /spire/xls/{IAutoFilter.py → interfaces/IAutoFilter.py} +0 -0
- /spire/xls/{IAutoFilterCondition.py → interfaces/IAutoFilterCondition.py} +0 -0
- /spire/xls/{IAutoFilters.py → interfaces/IAutoFilters.py} +0 -0
- /spire/xls/{IBorder.py → interfaces/IBorder.py} +0 -0
- /spire/xls/{IBuiltInDocumentProperties.py → interfaces/IBuiltInDocumentProperties.py} +0 -0
- /spire/xls/{IButtonShape.py → interfaces/IButtonShape.py} +0 -0
- /spire/xls/{IChartDropBar.py → interfaces/IChartDropBar.py} +0 -0
- /spire/xls/{IExcelApplication.py → interfaces/IExcelApplication.py} +0 -0
- /spire/xls/{IInternalWorksheet.py → interfaces/IInternalWorksheet.py} +0 -0
- /spire/xls/{IListBox.py → interfaces/IListBox.py} +0 -0
- /spire/xls/{IRichTextString.py → interfaces/IRichTextString.py} +0 -0
- /spire/xls/{IAddInFunctions.py → interfaces/collections/IAddInFunctions.py} +0 -0
- /spire/xls/{IArcShapes.py → interfaces/collections/IArcShapes.py} +0 -0
- /spire/xls/{IBorders.py → interfaces/collections/IBorders.py} +0 -0
- /spire/xls/{IButtonShapes.py → interfaces/collections/IButtonShapes.py} +0 -0
- /spire/xls/{IChartDataPoints.py → interfaces/collections/IChartDataPoints.py} +0 -0
- /spire/xls/{IChartLegendEntries.py → interfaces/collections/IChartLegendEntries.py} +0 -0
- /spire/xls/{IChartSeries.py → interfaces/collections/IChartSeries.py} +0 -0
- /spire/xls/{IChartShapes.py → interfaces/collections/IChartShapes.py} +0 -0
- /spire/xls/{IChartTrendLines.py → interfaces/collections/IChartTrendLines.py} +0 -0
- /spire/xls/{ICharts.py → interfaces/collections/ICharts.py} +0 -0
- /spire/xls/{ICheckBoxes.py → interfaces/collections/ICheckBoxes.py} +0 -0
- /spire/xls/{IComboBoxes.py → interfaces/collections/IComboBoxes.py} +0 -0
- /spire/xls/{IComments.py → interfaces/collections/IComments.py} +0 -0
- /spire/xls/{IConditionalFormatsCollection.py → interfaces/collections/IConditionalFormatsCollection.py} +0 -0
- /spire/xls/{IGroupBoxes.py → interfaces/collections/IGroupBoxes.py} +0 -0
- /spire/xls/{IHyperLinks.py → interfaces/collections/IHyperLinks.py} +0 -0
- /spire/xls/{ILabelShapes.py → interfaces/collections/ILabelShapes.py} +0 -0
- /spire/xls/{ILines.py → interfaces/collections/ILines.py} +0 -0
- /spire/xls/{IListBoxes.py → interfaces/collections/IListBoxes.py} +0 -0
- /spire/xls/{INameRanges.py → interfaces/collections/INameRanges.py} +0 -0
- /spire/xls/{IOvalShapes.py → interfaces/collections/IOvalShapes.py} +0 -0
- /spire/xls/{IPictures.py → interfaces/collections/IPictures.py} +0 -0
- /spire/xls/{IRadioButtons.py → interfaces/collections/IRadioButtons.py} +0 -0
- /spire/xls/{IRectangleShapes.py → interfaces/collections/IRectangleShapes.py} +0 -0
- /spire/xls/{IScrollBarShapes.py → interfaces/collections/IScrollBarShapes.py} +0 -0
- /spire/xls/{ISpinnerShapes.py → interfaces/collections/ISpinnerShapes.py} +0 -0
- /spire/xls/{IStyles.py → interfaces/collections/IStyles.py} +0 -0
- /spire/xls/{ITabSheets.py → interfaces/collections/ITabSheets.py} +0 -0
- /spire/xls/{IWorksheetGroup.py → interfaces/collections/IWorksheetGroup.py} +0 -0
- /spire/xls/{IWorksheets.py → interfaces/collections/IWorksheets.py} +0 -0
- /spire/xls/{IPivotDataField.py → interfaces/pivot_table/IPivotDataField.py} +0 -0
- /spire/xls/{IPivotDataFields.py → interfaces/pivot_table/IPivotDataFields.py} +0 -0
- /spire/xls/{IPivotFields.py → interfaces/pivot_table/IPivotFields.py} +0 -0
- /spire/xls/{IPivotTables.py → interfaces/pivot_table/IPivotTables.py} +0 -0
- /spire/xls/{IDataSort.py → interfaces/sorting/IDataSort.py} +0 -0
- /spire/xls/{PivotCache.py → pivot_tables/PivotCache.py} +0 -0
- /spire/xls/{PivotField.py → pivot_tables/PivotField.py} +0 -0
- /spire/xls/{PivotTable.py → pivot_tables/PivotTable.py} +0 -0
- /spire/xls/{EncryptedKeyInfo.py → security/EncryptedKeyInfo.py} +0 -0
- /spire/xls/{ISparkline.py → sparkline/ISparkline.py} +0 -0
- /spire/xls/{ISparklineGroup.py → sparkline/ISparklineGroup.py} +0 -0
- {spire_xls-15.5.0.dist-info → spire_xls-15.11.1.dist-info}/WHEEL +0 -0
- {spire_xls-15.5.0.dist-info → spire_xls-15.11.1.dist-info}/top_level.txt +0 -0
spire/xls/XlsWorksheet.py
CHANGED
|
@@ -7,15 +7,17 @@ from ctypes import *
|
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
9
|
class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
10
|
-
"""
|
|
11
|
-
|
|
10
|
+
"""Represents a worksheet in an Excel workbook.
|
|
11
|
+
|
|
12
|
+
This class provides properties and methods for manipulating worksheets in Excel,
|
|
13
|
+
including cell operations, formatting, ranges, rows, columns, and other worksheet-specific
|
|
14
|
+
functionality. It extends XlsWorksheetBase and implements the IInternalWorksheet interface.
|
|
12
15
|
"""
|
|
13
16
|
def GetActiveSelectionRange(self)->List['CellRange']:
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<returns></returns>
|
|
17
|
+
"""Gets the currently selected ranges in the worksheet.
|
|
18
|
+
|
|
19
|
+
Returns:
|
|
20
|
+
List[CellRange]: A list of CellRange objects representing the selected ranges.
|
|
19
21
|
"""
|
|
20
22
|
GetDllLibXls().XlsWorksheet_get_ActiveSelectionRange.argtypes=[c_void_p]
|
|
21
23
|
GetDllLibXls().XlsWorksheet_get_ActiveSelectionRange.restype=IntPtrArray
|
|
@@ -25,14 +27,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
25
27
|
|
|
26
28
|
|
|
27
29
|
def GroupByColumns(self ,firstColumn:int,lastColumn:int,isCollapsed:bool)->'CellRange':
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
"""Groups a range of columns in the worksheet.
|
|
31
|
+
|
|
32
|
+
Args:
|
|
33
|
+
firstColumn (int): The index of the first column to be grouped.
|
|
34
|
+
lastColumn (int): The index of the last column to be grouped.
|
|
35
|
+
isCollapsed (bool): Indicates whether the group should be collapsed initially.
|
|
36
|
+
|
|
37
|
+
Returns:
|
|
38
|
+
CellRange: A CellRange object representing the grouped columns.
|
|
36
39
|
"""
|
|
37
40
|
|
|
38
41
|
GetDllLibXls().XlsWorksheet_GroupByColumns.argtypes=[c_void_p ,c_int,c_int,c_bool]
|
|
@@ -44,14 +47,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
44
47
|
|
|
45
48
|
|
|
46
49
|
def GroupByRows(self ,firstRow:int,lastRow:int,isCollapsed:bool)->'CellRange':
|
|
47
|
-
"""
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
"""Groups a range of rows in the worksheet.
|
|
51
|
+
|
|
52
|
+
Args:
|
|
53
|
+
firstRow (int): The index of the first row to be grouped.
|
|
54
|
+
lastRow (int): The index of the last row to be grouped.
|
|
55
|
+
isCollapsed (bool): Indicates whether the group should be collapsed initially.
|
|
56
|
+
|
|
57
|
+
Returns:
|
|
58
|
+
CellRange: A CellRange object representing the grouped rows.
|
|
55
59
|
"""
|
|
56
60
|
|
|
57
61
|
GetDllLibXls().XlsWorksheet_GroupByRows.argtypes=[c_void_p ,c_int,c_int,c_bool]
|
|
@@ -63,13 +67,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
63
67
|
|
|
64
68
|
|
|
65
69
|
def UngroupByColumns(self ,firstColumn:int,lastColumn:int)->'CellRange':
|
|
66
|
-
"""
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
"""Ungroups a range of previously grouped columns in the worksheet.
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
firstColumn (int): The index of the first column to be ungrouped.
|
|
74
|
+
lastColumn (int): The index of the last column to be ungrouped.
|
|
75
|
+
|
|
76
|
+
Returns:
|
|
77
|
+
CellRange: A CellRange object representing the ungrouped columns.
|
|
73
78
|
"""
|
|
74
79
|
|
|
75
80
|
GetDllLibXls().XlsWorksheet_UngroupByColumns.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -81,13 +86,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
81
86
|
|
|
82
87
|
|
|
83
88
|
def UngroupByRows(self ,firstRow:int,lastRow:int)->'CellRange':
|
|
84
|
-
"""
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
"""Ungroups a range of previously grouped rows in the worksheet.
|
|
90
|
+
|
|
91
|
+
Args:
|
|
92
|
+
firstRow (int): The index of the first row to be ungrouped.
|
|
93
|
+
lastRow (int): The index of the last row to be ungrouped.
|
|
94
|
+
|
|
95
|
+
Returns:
|
|
96
|
+
CellRange: A CellRange object representing the ungrouped rows.
|
|
91
97
|
"""
|
|
92
98
|
|
|
93
99
|
GetDllLibXls().XlsWorksheet_UngroupByRows.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -99,8 +105,17 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
99
105
|
|
|
100
106
|
|
|
101
107
|
def SaveShapesToImage(self ,option:'SaveShapeTypeOption')->List['Stream']:
|
|
102
|
-
"""
|
|
103
|
-
|
|
108
|
+
"""Saves all shapes in the worksheet to images.
|
|
109
|
+
|
|
110
|
+
This method converts all shapes in the worksheet to images according to the
|
|
111
|
+
specified options.
|
|
112
|
+
|
|
113
|
+
Args:
|
|
114
|
+
option (SaveShapeTypeOption): The options for saving shapes as images, including
|
|
115
|
+
format settings and other parameters.
|
|
116
|
+
|
|
117
|
+
Returns:
|
|
118
|
+
List[Stream]: A list of Stream objects containing the image data for each shape.
|
|
104
119
|
"""
|
|
105
120
|
GetDllLibXls().XlsWorksheet_SaveShapesToImage.argtypes=[c_void_p ,c_void_p]
|
|
106
121
|
GetDllLibXls().XlsWorksheet_SaveShapesToImage.restype=IntPtrArray
|
|
@@ -111,26 +126,30 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
111
126
|
|
|
112
127
|
|
|
113
128
|
@dispatch
|
|
114
|
-
|
|
115
129
|
def ApplyStyle(self ,style:CellStyle):
|
|
116
|
-
"""
|
|
117
|
-
|
|
130
|
+
"""Applies a cell style to the entire worksheet.
|
|
131
|
+
|
|
132
|
+
This method applies the specified cell style to all cells in the worksheet.
|
|
133
|
+
|
|
134
|
+
Args:
|
|
135
|
+
style (CellStyle): The cell style to apply to the entire worksheet.
|
|
118
136
|
"""
|
|
119
137
|
intPtrstyle:c_void_p = style.Ptr
|
|
120
|
-
|
|
121
138
|
GetDllLibXls().XlsWorksheet_ApplyStyle.argtypes=[c_void_p ,c_void_p]
|
|
122
139
|
CallCFunction(GetDllLibXls().XlsWorksheet_ApplyStyle, self.Ptr, intPtrstyle)
|
|
123
140
|
|
|
124
141
|
@dispatch
|
|
125
142
|
|
|
126
143
|
def ApplyStyle(self ,style:CellStyle,applyRowStyle:bool,applyColumnStyle:bool):
|
|
127
|
-
"""
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
144
|
+
"""Applies a cell style to the worksheet with options for rows and columns.
|
|
145
|
+
|
|
146
|
+
This method applies the specified cell style to the worksheet with options to
|
|
147
|
+
control whether the style is applied to rows, columns, or both.
|
|
148
|
+
|
|
149
|
+
Args:
|
|
150
|
+
style (CellStyle): The cell style to apply.
|
|
151
|
+
applyRowStyle (bool): True to apply the style to all rows; otherwise, False.
|
|
152
|
+
applyColumnStyle (bool): True to apply the style to all columns; otherwise, False.
|
|
134
153
|
"""
|
|
135
154
|
intPtrstyle:c_void_p = style.Ptr
|
|
136
155
|
|
|
@@ -139,17 +158,20 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
139
158
|
|
|
140
159
|
@dispatch
|
|
141
160
|
|
|
142
|
-
def Subtotal(self ,
|
|
143
|
-
"""
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
161
|
+
def Subtotal(self ,cellRange:IXLSRange,groupByIndex:int,totalFields:List[int],subtotalType:SubtotalTypes):
|
|
162
|
+
"""Creates subtotals for the specified range.
|
|
163
|
+
|
|
164
|
+
This method creates subtotals for the specified range using the given grouping field,
|
|
165
|
+
total fields, and subtotal type.
|
|
166
|
+
|
|
167
|
+
Args:
|
|
168
|
+
range (IXLSRange): The range to create subtotals for.
|
|
169
|
+
groupByIndex (int): The zero-based index of the field to group by.
|
|
170
|
+
totalFields (List[int]): A list of zero-based field indices indicating the fields
|
|
171
|
+
to which the subtotals are added.
|
|
172
|
+
subtotalType (SubtotalTypes): The type of subtotal to calculate (e.g., sum, average, count).
|
|
173
|
+
"""
|
|
174
|
+
intPtrrange:c_void_p = cellRange.Ptr
|
|
153
175
|
#arraytotalFields:ArrayTypetotalFields = ""
|
|
154
176
|
counttotalFields = len(totalFields)
|
|
155
177
|
ArrayTypetotalFields = c_int * counttotalFields
|
|
@@ -165,17 +187,21 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
165
187
|
@dispatch
|
|
166
188
|
|
|
167
189
|
def Subtotal(self ,r:IXLSRange,groupByIndex:int,totalFields:List[int],subtotalType:SubtotalTypes,replace:bool,addPageBreak:bool,addsummaryBelowData:bool):
|
|
168
|
-
"""
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
190
|
+
"""Creates subtotals for the specified range with additional options.
|
|
191
|
+
|
|
192
|
+
This method creates subtotals for the specified range using the given grouping field,
|
|
193
|
+
total fields, subtotal type, and additional formatting options.
|
|
194
|
+
|
|
195
|
+
Args:
|
|
196
|
+
r (IXLSRange): The range to create subtotals for.
|
|
197
|
+
groupByIndex (int): The zero-based index of the field to group by.
|
|
198
|
+
totalFields (List[int]): A list of zero-based field indices indicating the fields
|
|
199
|
+
to which the subtotals are added.
|
|
200
|
+
subtotalType (SubtotalTypes): The type of subtotal to calculate (e.g., sum, average, count).
|
|
201
|
+
replace (bool): True to replace existing subtotals; otherwise, False.
|
|
202
|
+
addPageBreak (bool): True to add page breaks between groups; otherwise, False.
|
|
203
|
+
addsummaryBelowData (bool): True to add summary rows below the data; otherwise, False
|
|
204
|
+
to add summary rows above the data.
|
|
179
205
|
"""
|
|
180
206
|
intPtrrange:c_void_p = r.Ptr
|
|
181
207
|
#arraytotalFields:ArrayTypetotalFields = ""
|
|
@@ -193,11 +219,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
193
219
|
|
|
194
220
|
def GetRowIsAutoFit(self ,rowIndex:int)->bool:
|
|
195
221
|
"""
|
|
196
|
-
<summary>
|
|
197
222
|
Get GetRowIsAutoFit By rowIndex
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
223
|
+
|
|
224
|
+
Args:
|
|
225
|
+
rowIndex:
|
|
226
|
+
|
|
227
|
+
Returns:
|
|
228
|
+
If the row is null Return false,else if the row height is Autofit Return true, the row height is CustomHeight Return false
|
|
229
|
+
|
|
201
230
|
"""
|
|
202
231
|
|
|
203
232
|
GetDllLibXls().XlsWorksheet_GetRowIsAutoFit.argtypes=[c_void_p ,c_int]
|
|
@@ -208,11 +237,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
208
237
|
|
|
209
238
|
def GetColumnIsAutoFit(self ,columnIndex:int)->bool:
|
|
210
239
|
"""
|
|
211
|
-
<summary>
|
|
212
240
|
Get ColumnIsAutofit By columnIndex
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
241
|
+
|
|
242
|
+
Args:
|
|
243
|
+
columnIndex:
|
|
244
|
+
|
|
245
|
+
Returns:
|
|
246
|
+
If the column is null Return false,else if the column width is Autofit Return true, the column width is CustomWidth Return false
|
|
247
|
+
|
|
216
248
|
"""
|
|
217
249
|
|
|
218
250
|
GetDllLibXls().XlsWorksheet_GetColumnIsAutoFit.argtypes=[c_void_p ,c_int]
|
|
@@ -223,25 +255,33 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
223
255
|
|
|
224
256
|
def GetDefaultRowStyle(self ,rowIndex:int)->'IStyle':
|
|
225
257
|
"""
|
|
258
|
+
Get the default row style for a given row index.
|
|
226
259
|
|
|
260
|
+
Args:
|
|
261
|
+
rowIndex (int): The row index.
|
|
262
|
+
|
|
263
|
+
Returns:
|
|
264
|
+
IStyle: The default style of the row.
|
|
227
265
|
"""
|
|
228
|
-
|
|
229
266
|
GetDllLibXls().XlsWorksheet_GetDefaultRowStyle.argtypes=[c_void_p ,c_int]
|
|
230
267
|
GetDllLibXls().XlsWorksheet_GetDefaultRowStyle.restype=c_void_p
|
|
231
268
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GetDefaultRowStyle, self.Ptr, rowIndex)
|
|
232
|
-
ret = None if intPtr==None else
|
|
269
|
+
ret = None if intPtr==None else AddtionalFormatWrapper(intPtr)
|
|
233
270
|
return ret
|
|
234
271
|
|
|
235
272
|
|
|
236
273
|
|
|
237
274
|
def GetError(self ,row:int,column:int)->str:
|
|
238
275
|
"""
|
|
239
|
-
<summary>
|
|
240
276
|
Gets error value from cell.
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
277
|
+
|
|
278
|
+
Args:
|
|
279
|
+
row: Row index.
|
|
280
|
+
column: Column index.
|
|
281
|
+
|
|
282
|
+
Returns:
|
|
283
|
+
Returns error value or null.
|
|
284
|
+
|
|
245
285
|
"""
|
|
246
286
|
|
|
247
287
|
GetDllLibXls().XlsWorksheet_GetError.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -253,12 +293,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
253
293
|
|
|
254
294
|
def GetFormulaErrorValue(self ,row:int,column:int)->str:
|
|
255
295
|
"""
|
|
256
|
-
<summary>
|
|
257
296
|
Gets formula error value from cell.
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
297
|
+
|
|
298
|
+
Args:
|
|
299
|
+
row: Row index.
|
|
300
|
+
column: Column index.
|
|
301
|
+
|
|
302
|
+
Returns:
|
|
303
|
+
Returns error value or null.
|
|
304
|
+
|
|
262
305
|
"""
|
|
263
306
|
|
|
264
307
|
GetDllLibXls().XlsWorksheet_GetFormulaErrorValue.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -270,12 +313,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
270
313
|
|
|
271
314
|
def GetFormulaNumberValue(self ,row:int,column:int)->float:
|
|
272
315
|
"""
|
|
273
|
-
<summary>
|
|
274
316
|
Returns formula number value corresponding to the cell.
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
317
|
+
|
|
318
|
+
Args:
|
|
319
|
+
row: One-based row index of the cell to get value from.
|
|
320
|
+
column: One-based column index of the cell to get value from.
|
|
321
|
+
|
|
322
|
+
Returns:
|
|
323
|
+
Number contained by the cell.
|
|
324
|
+
|
|
279
325
|
"""
|
|
280
326
|
|
|
281
327
|
GetDllLibXls().XlsWorksheet_GetFormulaNumberValue.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -286,12 +332,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
286
332
|
|
|
287
333
|
def GetFormulaStringValue(self ,row:int,column:int)->str:
|
|
288
334
|
"""
|
|
289
|
-
<summary>
|
|
290
335
|
Returns formula string value corresponding to the cell.
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
336
|
+
|
|
337
|
+
Args:
|
|
338
|
+
row: One-based row index of the cell to get value from.
|
|
339
|
+
column: One-based column index of the cell to get value from.
|
|
340
|
+
|
|
341
|
+
Returns:
|
|
342
|
+
String contained by the cell.
|
|
343
|
+
|
|
295
344
|
"""
|
|
296
345
|
|
|
297
346
|
GetDllLibXls().XlsWorksheet_GetFormulaStringValue.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -304,9 +353,16 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
304
353
|
|
|
305
354
|
def GetFormula(self ,row:int,column:int,bR1C1:bool)->str:
|
|
306
355
|
"""
|
|
356
|
+
Get the formula from a cell.
|
|
357
|
+
|
|
358
|
+
Args:
|
|
359
|
+
row (int): Row index.
|
|
360
|
+
column (int): Column index.
|
|
361
|
+
bR1C1 (bool): Whether to use R1C1 notation.
|
|
307
362
|
|
|
363
|
+
Returns:
|
|
364
|
+
str: The formula string.
|
|
308
365
|
"""
|
|
309
|
-
|
|
310
366
|
GetDllLibXls().XlsWorksheet_GetFormula.argtypes=[c_void_p ,c_int,c_int,c_bool]
|
|
311
367
|
GetDllLibXls().XlsWorksheet_GetFormula.restype=c_void_p
|
|
312
368
|
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetFormula, self.Ptr, row,column,bR1C1))
|
|
@@ -317,9 +373,17 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
317
373
|
|
|
318
374
|
def GetFormula(self ,row:int,column:int,bR1C1:bool,isForSerialization:bool)->str:
|
|
319
375
|
"""
|
|
376
|
+
Get the formula from a cell, with serialization option.
|
|
377
|
+
|
|
378
|
+
Args:
|
|
379
|
+
row (int): Row index.
|
|
380
|
+
column (int): Column index.
|
|
381
|
+
bR1C1 (bool): Whether to use R1C1 notation.
|
|
382
|
+
isForSerialization (bool): Whether for serialization.
|
|
320
383
|
|
|
384
|
+
Returns:
|
|
385
|
+
str: The formula string.
|
|
321
386
|
"""
|
|
322
|
-
|
|
323
387
|
GetDllLibXls().XlsWorksheet_GetFormulaRCBI.argtypes=[c_void_p ,c_int,c_int,c_bool,c_bool]
|
|
324
388
|
GetDllLibXls().XlsWorksheet_GetFormulaRCBI.restype=c_void_p
|
|
325
389
|
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetFormulaRCBI, self.Ptr, row,column,bR1C1,isForSerialization))
|
|
@@ -329,12 +393,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
329
393
|
|
|
330
394
|
def GetFormulaBoolValue(self ,row:int,column:int)->bool:
|
|
331
395
|
"""
|
|
332
|
-
<summary>
|
|
333
396
|
Gets formula bool value from cell.
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
397
|
+
|
|
398
|
+
Args:
|
|
399
|
+
row: Represents row index.
|
|
400
|
+
column: Represents column index.
|
|
401
|
+
|
|
402
|
+
Returns:
|
|
403
|
+
Returns found bool value. If cannot found returns false.
|
|
404
|
+
|
|
338
405
|
"""
|
|
339
406
|
|
|
340
407
|
GetDllLibXls().XlsWorksheet_GetFormulaBoolValue.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -345,12 +412,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
345
412
|
|
|
346
413
|
def GetNumber(self ,row:int,column:int)->float:
|
|
347
414
|
"""
|
|
348
|
-
<summary>
|
|
349
415
|
Returns number value corresponding to the cell.
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
416
|
+
|
|
417
|
+
Args:
|
|
418
|
+
row: One-based row index of the cell to get value from.
|
|
419
|
+
column: One-based column index of the cell to get value from.
|
|
420
|
+
|
|
421
|
+
Returns:
|
|
422
|
+
Number contained by the cell.
|
|
423
|
+
|
|
354
424
|
"""
|
|
355
425
|
|
|
356
426
|
GetDllLibXls().XlsWorksheet_GetNumber.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -361,11 +431,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
361
431
|
|
|
362
432
|
def GetRowHeight(self ,row:int)->float:
|
|
363
433
|
"""
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
434
|
+
Gets the height of a specified row.
|
|
435
|
+
|
|
436
|
+
Args:
|
|
437
|
+
row: Row index.
|
|
438
|
+
|
|
439
|
+
Returns:
|
|
440
|
+
Height of row
|
|
441
|
+
|
|
369
442
|
"""
|
|
370
443
|
|
|
371
444
|
GetDllLibXls().XlsWorksheet_GetRowHeight.argtypes=[c_void_p ,c_int]
|
|
@@ -376,11 +449,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
376
449
|
|
|
377
450
|
def GetColumnIsHide(self ,columnIndex:int)->bool:
|
|
378
451
|
"""
|
|
379
|
-
<summary>
|
|
380
452
|
Indicates whether the column is hidden.
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
453
|
+
|
|
454
|
+
Args:
|
|
455
|
+
columnIndex: Column index.
|
|
456
|
+
|
|
384
457
|
"""
|
|
385
458
|
|
|
386
459
|
GetDllLibXls().XlsWorksheet_GetColumnIsHide.argtypes=[c_void_p ,c_int]
|
|
@@ -391,11 +464,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
391
464
|
|
|
392
465
|
def GetRowIsHide(self ,rowIndex:int)->bool:
|
|
393
466
|
"""
|
|
394
|
-
<summary>
|
|
395
467
|
Indicates whether the row is hidden.
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
468
|
+
|
|
469
|
+
Args:
|
|
470
|
+
rowIndex: Row index.
|
|
471
|
+
|
|
399
472
|
"""
|
|
400
473
|
|
|
401
474
|
GetDllLibXls().XlsWorksheet_GetRowIsHide.argtypes=[c_void_p ,c_int]
|
|
@@ -406,10 +479,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
406
479
|
|
|
407
480
|
def HideColumn(self ,columnIndex:int):
|
|
408
481
|
"""
|
|
409
|
-
<summary>
|
|
410
482
|
Hides a column.
|
|
411
|
-
|
|
412
|
-
|
|
483
|
+
|
|
484
|
+
Args:
|
|
485
|
+
columnIndex: Column index.
|
|
486
|
+
|
|
413
487
|
"""
|
|
414
488
|
|
|
415
489
|
GetDllLibXls().XlsWorksheet_HideColumn.argtypes=[c_void_p ,c_int]
|
|
@@ -418,11 +492,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
418
492
|
|
|
419
493
|
def HideColumns(self ,columnIndex:int,columnCount:int):
|
|
420
494
|
"""
|
|
421
|
-
<summary>
|
|
422
495
|
Hides columns.
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
496
|
+
|
|
497
|
+
Args:
|
|
498
|
+
columnIndex: Column index.
|
|
499
|
+
columnCount: Column count.
|
|
500
|
+
|
|
426
501
|
"""
|
|
427
502
|
|
|
428
503
|
GetDllLibXls().XlsWorksheet_HideColumns.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -431,10 +506,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
431
506
|
|
|
432
507
|
def HideRow(self ,rowIndex:int):
|
|
433
508
|
"""
|
|
434
|
-
<summary>
|
|
435
509
|
Hides a row.
|
|
436
|
-
|
|
437
|
-
|
|
510
|
+
|
|
511
|
+
Args:
|
|
512
|
+
rowIndex: Row index.
|
|
513
|
+
|
|
438
514
|
"""
|
|
439
515
|
|
|
440
516
|
GetDllLibXls().XlsWorksheet_HideRow.argtypes=[c_void_p ,c_int]
|
|
@@ -443,11 +519,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
443
519
|
|
|
444
520
|
def HideRows(self ,rowIndex:int,rowCount:int):
|
|
445
521
|
"""
|
|
446
|
-
<summary>
|
|
447
522
|
Hides a row.
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
523
|
+
|
|
524
|
+
Args:
|
|
525
|
+
rowIndex: Row index.
|
|
526
|
+
rowCount: Row count.
|
|
527
|
+
|
|
451
528
|
"""
|
|
452
529
|
|
|
453
530
|
GetDllLibXls().XlsWorksheet_HideRows.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -456,27 +533,27 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
456
533
|
|
|
457
534
|
def GetRowHeightPixels(self ,rowIndex:int)->int:
|
|
458
535
|
"""
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
536
|
+
Gets the height of a specified row in unit of pixel.
|
|
537
|
+
|
|
538
|
+
Args:
|
|
539
|
+
rowIndex: Row index.
|
|
540
|
+
|
|
541
|
+
Returns:
|
|
542
|
+
Height of row
|
|
543
|
+
Example::
|
|
544
|
+
|
|
545
|
+
#Create worksheet
|
|
546
|
+
workbook = Workbook()
|
|
547
|
+
worksheet = workbook.Worksheets[0]
|
|
548
|
+
#Set text
|
|
549
|
+
worksheet["C2"].Text = "Sample text"
|
|
550
|
+
#Set auto fit
|
|
551
|
+
worksheet.AutoFitRow(2)
|
|
552
|
+
#Get row height
|
|
553
|
+
print(worksheet.GetRowHeightPixels(2))
|
|
554
|
+
#Save to file
|
|
555
|
+
workbook.SaveToFile("UsedRange.xlsx")
|
|
556
|
+
|
|
480
557
|
"""
|
|
481
558
|
|
|
482
559
|
GetDllLibXls().XlsWorksheet_GetRowHeightPixels.argtypes=[c_void_p ,c_int]
|
|
@@ -487,12 +564,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
487
564
|
|
|
488
565
|
def GetText(self ,row:int,column:int)->str:
|
|
489
566
|
"""
|
|
490
|
-
<summary>
|
|
491
567
|
Returns string value corresponding to the cell.
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
568
|
+
|
|
569
|
+
Args:
|
|
570
|
+
row: One-based row index of the cell to get value from.
|
|
571
|
+
column: One-based column index of the cell to get value from.
|
|
572
|
+
|
|
573
|
+
Returns:
|
|
574
|
+
String contained by the cell.
|
|
575
|
+
|
|
496
576
|
"""
|
|
497
577
|
|
|
498
578
|
GetDllLibXls().XlsWorksheet_GetText.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -504,11 +584,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
504
584
|
|
|
505
585
|
def DeleteRange(self ,range:'CellRange',deleteOption:'DeleteOption'):
|
|
506
586
|
"""
|
|
507
|
-
<summary>
|
|
508
587
|
delete a range in worksheet
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
588
|
+
|
|
589
|
+
Args:
|
|
590
|
+
range: the range to be deleted
|
|
591
|
+
deleteOption: Choose to move the right range to left or move the below range to above
|
|
592
|
+
|
|
512
593
|
"""
|
|
513
594
|
intPtrrange:c_void_p = range.Ptr
|
|
514
595
|
enumdeleteOption:c_int = deleteOption.value
|
|
@@ -519,10 +600,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
519
600
|
|
|
520
601
|
def MoveWorksheet(self ,destIndex:int):
|
|
521
602
|
"""
|
|
522
|
-
<summary>
|
|
523
603
|
Moves worksheet into new position.
|
|
524
|
-
|
|
525
|
-
|
|
604
|
+
|
|
605
|
+
Args:
|
|
606
|
+
destIndex: Destination index.
|
|
607
|
+
|
|
526
608
|
"""
|
|
527
609
|
|
|
528
610
|
GetDllLibXls().XlsWorksheet_MoveWorksheet.argtypes=[c_void_p ,c_int]
|
|
@@ -533,7 +615,7 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
533
615
|
"""
|
|
534
616
|
|
|
535
617
|
"""
|
|
536
|
-
|
|
618
|
+
|
|
537
619
|
GetDllLibXls().XlsWorksheet_PixelsToColumnWidth.argtypes=[c_void_p ,c_double]
|
|
538
620
|
GetDllLibXls().XlsWorksheet_PixelsToColumnWidth.restype=c_double
|
|
539
621
|
ret = CallCFunction(GetDllLibXls().XlsWorksheet_PixelsToColumnWidth, self.Ptr, pixels)
|
|
@@ -541,9 +623,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
541
623
|
|
|
542
624
|
def Remove(self):
|
|
543
625
|
"""
|
|
544
|
-
<summary>
|
|
545
626
|
Removes worksheet from parernt worksheets collection.
|
|
546
|
-
|
|
627
|
+
|
|
547
628
|
"""
|
|
548
629
|
GetDllLibXls().XlsWorksheet_Remove.argtypes=[c_void_p]
|
|
549
630
|
CallCFunction(GetDllLibXls().XlsWorksheet_Remove, self.Ptr)
|
|
@@ -560,9 +641,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
560
641
|
|
|
561
642
|
def RemovePanes(self):
|
|
562
643
|
"""
|
|
563
|
-
<summary>
|
|
564
644
|
Removes panes from a worksheet.
|
|
565
|
-
|
|
645
|
+
|
|
566
646
|
"""
|
|
567
647
|
GetDllLibXls().XlsWorksheet_RemovePanes.argtypes=[c_void_p]
|
|
568
648
|
CallCFunction(GetDllLibXls().XlsWorksheet_RemovePanes, self.Ptr)
|
|
@@ -648,30 +728,24 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
648
728
|
|
|
649
729
|
def Replace(self ,oldValue:str,newValue:DateTime):
|
|
650
730
|
"""
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
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>
|
|
731
|
+
Replaces cells' values with new data.
|
|
732
|
+
|
|
733
|
+
Args:
|
|
734
|
+
oldValue: String value to replace.
|
|
735
|
+
newValue: New value for the range with specified string.
|
|
736
|
+
Example::
|
|
737
|
+
|
|
738
|
+
#Create worksheet
|
|
739
|
+
workbook = Workbook()
|
|
740
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
741
|
+
worksheet = workbook.Worksheets[0]
|
|
742
|
+
#Replace the oldValue by dateTime
|
|
743
|
+
oldValue = "Find"
|
|
744
|
+
dateTime = DateTime.Now
|
|
745
|
+
worksheet.Replace(oldValue, dateTime)
|
|
746
|
+
#Save to file
|
|
747
|
+
workbook.SaveToFile("Replace.xlsx")
|
|
748
|
+
|
|
675
749
|
"""
|
|
676
750
|
intPtrnewValue:c_void_p = newValue.Ptr
|
|
677
751
|
|
|
@@ -682,24 +756,23 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
682
756
|
|
|
683
757
|
def Replace(self ,oldValue:str,newValue:float):
|
|
684
758
|
"""
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
<param name="newValue">New value for the range with specified string.</param>
|
|
759
|
+
Replaces cells' values with new data.
|
|
760
|
+
|
|
761
|
+
Args:
|
|
762
|
+
oldValue: String value to replace.
|
|
763
|
+
newValue: New value for the range with specified string.
|
|
764
|
+
Example::
|
|
765
|
+
|
|
766
|
+
#Create worksheet
|
|
767
|
+
workbook = Workbook()
|
|
768
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
769
|
+
worksheet = workbook.Worksheets[0]
|
|
770
|
+
#Replace the oldValue by double
|
|
771
|
+
oldValue = "Ten"
|
|
772
|
+
worksheet.Replace(oldValue, 10.0)
|
|
773
|
+
#Save to file
|
|
774
|
+
workbook.SaveToFile("Replace.xlsx")
|
|
775
|
+
|
|
703
776
|
"""
|
|
704
777
|
|
|
705
778
|
GetDllLibXls().XlsWorksheet_ReplaceON1.argtypes=[c_void_p ,c_void_p,c_double]
|
|
@@ -709,31 +782,25 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
709
782
|
|
|
710
783
|
def Replace(self ,oldValue:str,newValues:List[float],isVertical:bool):
|
|
711
784
|
"""
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
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>
|
|
785
|
+
Replaces cells' values with new data.
|
|
786
|
+
|
|
787
|
+
Args:
|
|
788
|
+
oldValue: String value to replace.
|
|
789
|
+
newValues: Array of new values.
|
|
790
|
+
isVertical: Indicates whether array should be inserted vertically.
|
|
791
|
+
Example::
|
|
792
|
+
|
|
793
|
+
#Create worksheet
|
|
794
|
+
workbook = Workbook()
|
|
795
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
796
|
+
worksheet = workbook.Worksheets[0]
|
|
797
|
+
#Replace the oldValue by array of double values
|
|
798
|
+
oldValue = "Find"
|
|
799
|
+
double[] newValues = { 1.0, 2.0 }
|
|
800
|
+
worksheet.Replace(oldValue, newValues, true)
|
|
801
|
+
#Save to file
|
|
802
|
+
workbook.SaveToFile("Replace.xlsx")
|
|
803
|
+
|
|
737
804
|
"""
|
|
738
805
|
#arraynewValues:ArrayTypenewValues = ""
|
|
739
806
|
countnewValues = len(newValues)
|
|
@@ -750,31 +817,25 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
750
817
|
|
|
751
818
|
def Replace(self ,oldValue:str,newValues:List[int],isVertical:bool):
|
|
752
819
|
"""
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
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>
|
|
820
|
+
Replaces cells' values with new data.
|
|
821
|
+
|
|
822
|
+
Args:
|
|
823
|
+
oldValue: String value to replace.
|
|
824
|
+
newValues: Array of new values.
|
|
825
|
+
isVertical: Indicates whether array should be inserted vertically.
|
|
826
|
+
Example::
|
|
827
|
+
|
|
828
|
+
#Create worksheet
|
|
829
|
+
workbook = Workbook()
|
|
830
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
831
|
+
worksheet = workbook.Worksheets[0]
|
|
832
|
+
#Replace the oldValue by array of int values
|
|
833
|
+
oldValue = "Find"
|
|
834
|
+
int[] newValues = { 1, 2 }
|
|
835
|
+
worksheet.Replace(oldValue, newValues, true)
|
|
836
|
+
#Save to file
|
|
837
|
+
workbook.SaveToFile("Replace.xlsx")
|
|
838
|
+
|
|
778
839
|
"""
|
|
779
840
|
#arraynewValues:ArrayTypenewValues = ""
|
|
780
841
|
countnewValues = len(newValues)
|
|
@@ -791,30 +852,24 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
791
852
|
|
|
792
853
|
def Replace(self ,oldValue:str,newValue:str):
|
|
793
854
|
"""
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
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>
|
|
855
|
+
Replaces cells' values with new data.
|
|
856
|
+
|
|
857
|
+
Args:
|
|
858
|
+
oldValue: String value to replace.
|
|
859
|
+
newValue: New value for the range with specified string.
|
|
860
|
+
Example::
|
|
861
|
+
|
|
862
|
+
#Create worksheet
|
|
863
|
+
workbook = Workbook()
|
|
864
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
865
|
+
worksheet = workbook.Worksheets[0]
|
|
866
|
+
#Replace the oldValue by newValue
|
|
867
|
+
oldValue = "Find"
|
|
868
|
+
newValue = "NewValue"
|
|
869
|
+
worksheet.Replace(oldValue, newValue)
|
|
870
|
+
#Save to file
|
|
871
|
+
workbook.SaveToFile("Replace.xlsx")
|
|
872
|
+
|
|
818
873
|
"""
|
|
819
874
|
|
|
820
875
|
GetDllLibXls().XlsWorksheet_ReplaceON11.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
@@ -847,31 +902,25 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
847
902
|
|
|
848
903
|
def Replace(self ,oldValue:str,newValues:List[str],isVertical:bool):
|
|
849
904
|
"""
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
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>
|
|
905
|
+
Replaces cells' values with new data.
|
|
906
|
+
|
|
907
|
+
Args:
|
|
908
|
+
oldValue: String value to replace.
|
|
909
|
+
newValues: Array of new values.
|
|
910
|
+
isVertical: Indicates whether array should be inserted vertically.
|
|
911
|
+
Example::
|
|
912
|
+
|
|
913
|
+
#Create worksheet
|
|
914
|
+
workbook = Workbook()
|
|
915
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
916
|
+
worksheet = workbook.Worksheets[0]
|
|
917
|
+
#Replace the oldValue by array of string values
|
|
918
|
+
oldValue = "Find"
|
|
919
|
+
string[] newValues = { "X values", "Y values" }
|
|
920
|
+
worksheet.Replace(oldValue, newValues , true)
|
|
921
|
+
#Save to file
|
|
922
|
+
workbook.SaveToFile("Replace.xlsx")
|
|
923
|
+
|
|
875
924
|
"""
|
|
876
925
|
#arraynewValues:ArrayTypenewValues = ""
|
|
877
926
|
countnewValues = len(newValues)
|
|
@@ -884,51 +933,51 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
884
933
|
GetDllLibXls().XlsWorksheet_ReplaceONI11.argtypes=[c_void_p ,c_void_p,ArrayTypenewValues,c_int,c_bool]
|
|
885
934
|
CallCFunction(GetDllLibXls().XlsWorksheet_ReplaceONI11, self.Ptr, oldValue,arraynewValues,countnewValues,isVertical)
|
|
886
935
|
|
|
887
|
-
@dispatch
|
|
936
|
+
# @dispatch
|
|
888
937
|
|
|
889
|
-
def SaveToImage(self ,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int)->Stream:
|
|
890
|
-
|
|
938
|
+
# def SaveToImage(self ,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int)->Stream:
|
|
939
|
+
# """
|
|
891
940
|
|
|
892
|
-
|
|
941
|
+
# """
|
|
893
942
|
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
943
|
+
# GetDllLibXls().XlsWorksheet_SaveToImage.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
|
|
944
|
+
# GetDllLibXls().XlsWorksheet_SaveToImage.restype=c_void_p
|
|
945
|
+
# intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_SaveToImage, self.Ptr, firstRow,firstColumn,lastRow,lastColumn)
|
|
946
|
+
# ret = None if intPtr==None else Stream(intPtr)
|
|
947
|
+
# return ret
|
|
899
948
|
|
|
900
949
|
|
|
901
|
-
@dispatch
|
|
950
|
+
# @dispatch
|
|
902
951
|
|
|
903
|
-
def SaveToImage(self ,fileName:str,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int):
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
952
|
+
# def SaveToImage(self ,fileName:str,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int):
|
|
953
|
+
# """
|
|
954
|
+
# Save worksheet to image.
|
|
955
|
+
|
|
956
|
+
# Args:
|
|
957
|
+
# fileName: file Name
|
|
958
|
+
# firstRow:
|
|
959
|
+
# firstColumn:
|
|
960
|
+
# lastRow:
|
|
961
|
+
# lastColumn:
|
|
962
|
+
|
|
963
|
+
# """
|
|
915
964
|
|
|
916
|
-
|
|
917
|
-
|
|
965
|
+
# GetDllLibXls().XlsWorksheet_SaveToImageFFFLL.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int,c_int]
|
|
966
|
+
# CallCFunction(GetDllLibXls().XlsWorksheet_SaveToImageFFFLL, self.Ptr, fileName,firstRow,firstColumn,lastRow,lastColumn)
|
|
918
967
|
|
|
919
|
-
@dispatch
|
|
968
|
+
# @dispatch
|
|
920
969
|
|
|
921
|
-
def SaveToImage(self ,fileName:str):
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
970
|
+
# def SaveToImage(self ,fileName:str):
|
|
971
|
+
# """
|
|
972
|
+
# Save worksheet to image.
|
|
973
|
+
|
|
974
|
+
# Args:
|
|
975
|
+
# fileName: file Name
|
|
976
|
+
|
|
977
|
+
# """
|
|
929
978
|
|
|
930
|
-
|
|
931
|
-
|
|
979
|
+
# GetDllLibXls().XlsWorksheet_SaveToImageF.argtypes=[c_void_p ,c_void_p]
|
|
980
|
+
# CallCFunction(GetDllLibXls().XlsWorksheet_SaveToImageF, self.Ptr, fileName)
|
|
932
981
|
|
|
933
982
|
# @dispatch
|
|
934
983
|
|
|
@@ -946,11 +995,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
946
995
|
|
|
947
996
|
def ToImage(self ,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int)->'Stream':
|
|
948
997
|
"""
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
998
|
+
Args:
|
|
999
|
+
firstRow: One-based index of the first row to convert.
|
|
1000
|
+
firstColumn: One-based index of the first column to convert.
|
|
1001
|
+
lastRow: One-based index of the last row to convert.
|
|
1002
|
+
lastColumn: One-based index of the last column to convert.
|
|
1003
|
+
|
|
954
1004
|
"""
|
|
955
1005
|
|
|
956
1006
|
GetDllLibXls().XlsWorksheet_ToImage.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
|
|
@@ -964,29 +1014,30 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
964
1014
|
|
|
965
1015
|
def SaveToImage(self ,stream:Stream,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int,imageType:ImageType)->Stream:
|
|
966
1016
|
"""
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1017
|
+
Save worksheet into image.
|
|
1018
|
+
|
|
1019
|
+
Args:
|
|
1020
|
+
stream: Output stream. It is ignored if null.
|
|
1021
|
+
firstRow: One-based index of the first row to convert.
|
|
1022
|
+
firstColumn: One-based index of the first column to convert.
|
|
1023
|
+
lastRow: One-based index of the last row to convert.
|
|
1024
|
+
lastColumn: One-based index of the last column to convert.
|
|
1025
|
+
imageType: Type of the image to create.
|
|
1026
|
+
|
|
1027
|
+
Returns:
|
|
1028
|
+
Created image.
|
|
1029
|
+
Example::
|
|
1030
|
+
|
|
1031
|
+
#Create worksheet
|
|
1032
|
+
workbook = Workbook()
|
|
1033
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1034
|
+
worksheet = workbook.Worksheets[0]
|
|
1035
|
+
#Creat stream
|
|
1036
|
+
stream = MemoryStream()
|
|
1037
|
+
#Save to image
|
|
1038
|
+
System.Drawing.image = worksheet.SaveToImage(stream,1, 1, 10, 20, Spire.Xls.ImageType.Bitmap)
|
|
1039
|
+
image.Save("Sample.png", System.Drawing.Imaging.ImageFormat.Png)
|
|
1040
|
+
|
|
990
1041
|
"""
|
|
991
1042
|
intPtrstream:c_void_p = stream.Ptr
|
|
992
1043
|
enumimageType:c_int = imageType.value
|
|
@@ -1002,16 +1053,19 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1002
1053
|
|
|
1003
1054
|
def SaveToImage(self ,stream:Stream,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int,emfType:EmfType)->Stream:
|
|
1004
1055
|
"""
|
|
1005
|
-
<summary>
|
|
1006
1056
|
Converts range into image.
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1057
|
+
|
|
1058
|
+
Args:
|
|
1059
|
+
outputStream: Output stream. It is ignored if null.
|
|
1060
|
+
firstRow: One-based index of the first row to convert.
|
|
1061
|
+
firstColumn: One-based index of the first column to convert.
|
|
1062
|
+
lastRow: One-based index of the last row to convert.
|
|
1063
|
+
lastColumn: One-based index of the last column to convert.
|
|
1064
|
+
emfType: Metafile EmfType.
|
|
1065
|
+
|
|
1066
|
+
Returns:
|
|
1067
|
+
Created image.
|
|
1068
|
+
|
|
1015
1069
|
"""
|
|
1016
1070
|
intPtrstream:c_void_p = stream.Ptr
|
|
1017
1071
|
enumemfType:c_int = emfType.value
|
|
@@ -1027,17 +1081,20 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1027
1081
|
|
|
1028
1082
|
def SaveToImage(self ,stream:Stream,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int,imageType:ImageType,emfType:EmfType)->Stream:
|
|
1029
1083
|
"""
|
|
1030
|
-
<summary>
|
|
1031
1084
|
Converts range into image.
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1085
|
+
|
|
1086
|
+
Args:
|
|
1087
|
+
firstRow: One-based index of the first row to convert.
|
|
1088
|
+
firstColumn: One-based index of the first column to convert.
|
|
1089
|
+
lastRow: One-based index of the last row to convert.
|
|
1090
|
+
lastColumn: One-based index of the last column to convert.
|
|
1091
|
+
imageType: Type of the image to create.
|
|
1092
|
+
outputStream: Output stream. It is ignored if null.
|
|
1093
|
+
emfType: Metafile EmfType.
|
|
1094
|
+
|
|
1095
|
+
Returns:
|
|
1096
|
+
Created image.
|
|
1097
|
+
|
|
1041
1098
|
"""
|
|
1042
1099
|
intPtrstream:c_void_p = stream.Ptr
|
|
1043
1100
|
enumimageType:c_int = imageType.value
|
|
@@ -1051,35 +1108,34 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1051
1108
|
|
|
1052
1109
|
|
|
1053
1110
|
|
|
1054
|
-
def SaveToEMFImage(self ,FilePath:str,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int,emfType:'EmfType'):
|
|
1055
|
-
|
|
1111
|
+
# def SaveToEMFImage(self ,FilePath:str,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int,emfType:'EmfType'):
|
|
1112
|
+
# """
|
|
1056
1113
|
|
|
1057
|
-
|
|
1058
|
-
|
|
1114
|
+
# """
|
|
1115
|
+
# enumemfType:c_int = emfType.value
|
|
1059
1116
|
|
|
1060
|
-
|
|
1061
|
-
|
|
1117
|
+
# GetDllLibXls().XlsWorksheet_SaveToEMFImage.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int,c_int,c_int]
|
|
1118
|
+
# CallCFunction(GetDllLibXls().XlsWorksheet_SaveToEMFImage, self.Ptr, FilePath,firstRow,firstColumn,lastRow,lastColumn,enumemfType)
|
|
1062
1119
|
|
|
1063
1120
|
@dispatch
|
|
1064
1121
|
|
|
1065
1122
|
def SaveToHtml(self ,stream:Stream):
|
|
1066
1123
|
"""
|
|
1067
|
-
<summary>
|
|
1068
1124
|
Save to HTML stream.
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1125
|
+
|
|
1126
|
+
Args:
|
|
1127
|
+
stream: Stream object
|
|
1128
|
+
Example::
|
|
1129
|
+
|
|
1130
|
+
#Create worksheet
|
|
1131
|
+
workbook = Workbook()
|
|
1132
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1133
|
+
worksheet = workbook.Worksheets[0]
|
|
1134
|
+
#Creat stream
|
|
1135
|
+
stream = MemoryStream()
|
|
1136
|
+
#Save to HTML stream
|
|
1137
|
+
worksheet.SaveToHtml(stream)
|
|
1138
|
+
|
|
1083
1139
|
"""
|
|
1084
1140
|
intPtrstream:c_void_p = stream.Ptr
|
|
1085
1141
|
|
|
@@ -1090,23 +1146,22 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1090
1146
|
|
|
1091
1147
|
def SaveToHtml(self ,stream:Stream,saveOption:HTMLOptions):
|
|
1092
1148
|
"""
|
|
1093
|
-
<summary>
|
|
1094
1149
|
Saves work sheet to HTML.
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1150
|
+
|
|
1151
|
+
Args:
|
|
1152
|
+
stream: The stream
|
|
1153
|
+
saveOption: The option
|
|
1154
|
+
Example::
|
|
1155
|
+
|
|
1156
|
+
#Create worksheet
|
|
1157
|
+
workbook = Workbook()
|
|
1158
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1159
|
+
worksheet = workbook.Worksheets[0]
|
|
1160
|
+
#Creat stream
|
|
1161
|
+
stream = MemoryStream()
|
|
1162
|
+
#Save to HTML stream
|
|
1163
|
+
worksheet.SaveToHtml(stream, Spire.Xls.Core.Spreadsheet.HTMLOptions.Default)
|
|
1164
|
+
|
|
1110
1165
|
"""
|
|
1111
1166
|
intPtrstream:c_void_p = stream.Ptr
|
|
1112
1167
|
intPtrsaveOption:c_void_p = saveOption.Ptr
|
|
@@ -1118,20 +1173,19 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1118
1173
|
|
|
1119
1174
|
def SaveToHtml(self ,filename:str):
|
|
1120
1175
|
"""
|
|
1121
|
-
<summary>
|
|
1122
1176
|
Save to HTML file.
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1177
|
+
|
|
1178
|
+
Args:
|
|
1179
|
+
filename: File name
|
|
1180
|
+
Example::
|
|
1181
|
+
|
|
1182
|
+
#Create worksheet
|
|
1183
|
+
workbook = Workbook()
|
|
1184
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1185
|
+
worksheet = workbook.Worksheets[0]
|
|
1186
|
+
#Save to HTML file
|
|
1187
|
+
worksheet.SaveToHtml("Output.html")
|
|
1188
|
+
|
|
1135
1189
|
"""
|
|
1136
1190
|
|
|
1137
1191
|
GetDllLibXls().XlsWorksheet_SaveToHtmlF.argtypes=[c_void_p ,c_void_p]
|
|
@@ -1141,21 +1195,20 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1141
1195
|
|
|
1142
1196
|
def SaveToHtml(self ,fileName:str,saveOption:HTMLOptions):
|
|
1143
1197
|
"""
|
|
1144
|
-
<summary>
|
|
1145
1198
|
Saves as HTML.
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1199
|
+
|
|
1200
|
+
Args:
|
|
1201
|
+
fileName: The filename
|
|
1202
|
+
saveOption: The option
|
|
1203
|
+
Example::
|
|
1204
|
+
|
|
1205
|
+
#Create worksheet
|
|
1206
|
+
workbook = Workbook()
|
|
1207
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1208
|
+
worksheet = workbook.Worksheets[0]
|
|
1209
|
+
#Save to HTML file
|
|
1210
|
+
worksheet.SaveToHtml("Sample.html" , Spire.Xls.Core.Spreadsheet.HTMLOptions.Default)
|
|
1211
|
+
|
|
1159
1212
|
"""
|
|
1160
1213
|
intPtrsaveOption:c_void_p = saveOption.Ptr
|
|
1161
1214
|
|
|
@@ -1166,21 +1219,20 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1166
1219
|
|
|
1167
1220
|
def SaveToFile(self ,fileName:str,separator:str):
|
|
1168
1221
|
"""
|
|
1169
|
-
<summary>
|
|
1170
1222
|
Save worksheet to file.
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1223
|
+
|
|
1224
|
+
Args:
|
|
1225
|
+
fileName: File name.
|
|
1226
|
+
separator: Seperator.
|
|
1227
|
+
Example::
|
|
1228
|
+
|
|
1229
|
+
#Create worksheet
|
|
1230
|
+
workbook = Workbook()
|
|
1231
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1232
|
+
worksheet = workbook.Worksheets[0]
|
|
1233
|
+
#Save to file
|
|
1234
|
+
worksheet.SaveToFile("SaveToFile.csv" , ",")
|
|
1235
|
+
|
|
1184
1236
|
"""
|
|
1185
1237
|
|
|
1186
1238
|
GetDllLibXls().XlsWorksheet_SaveToFile.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
@@ -1190,12 +1242,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1190
1242
|
|
|
1191
1243
|
def SaveToFile(self ,fileName:str,separator:str,retainHiddenData:bool):
|
|
1192
1244
|
"""
|
|
1193
|
-
<summary>
|
|
1194
1245
|
Save worksheet to file.
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1246
|
+
|
|
1247
|
+
Args:
|
|
1248
|
+
fileName: File name.
|
|
1249
|
+
separator: Seperator.
|
|
1250
|
+
retainHiddenData: retain hidden data
|
|
1251
|
+
|
|
1199
1252
|
"""
|
|
1200
1253
|
|
|
1201
1254
|
GetDllLibXls().XlsWorksheet_SaveToFileFSR.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool]
|
|
@@ -1205,12 +1258,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1205
1258
|
|
|
1206
1259
|
def SaveToFile(self ,fileName:str,separator:str,encoding:Encoding):
|
|
1207
1260
|
"""
|
|
1208
|
-
<summary>
|
|
1209
1261
|
Save worksheet to file..
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1262
|
+
|
|
1263
|
+
Args:
|
|
1264
|
+
fileName: File name.
|
|
1265
|
+
separator: Seperator.
|
|
1266
|
+
encoding: Encoding to use.
|
|
1267
|
+
|
|
1214
1268
|
"""
|
|
1215
1269
|
intPtrencoding:c_void_p = encoding.Ptr
|
|
1216
1270
|
|
|
@@ -1221,23 +1275,22 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1221
1275
|
|
|
1222
1276
|
def SaveToStream(self ,stream:Stream,separator:str):
|
|
1223
1277
|
"""
|
|
1224
|
-
<summary>
|
|
1225
1278
|
Save worksheet to stream.
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1279
|
+
|
|
1280
|
+
Args:
|
|
1281
|
+
stream: Stream object.
|
|
1282
|
+
separator: Seperator.
|
|
1283
|
+
Example::
|
|
1284
|
+
|
|
1285
|
+
#Create worksheet
|
|
1286
|
+
workbook = Workbook()
|
|
1287
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1288
|
+
worksheet = workbook.Worksheets[0]
|
|
1289
|
+
#Create stream
|
|
1290
|
+
stream = MemoryStream()
|
|
1291
|
+
#Save to stream
|
|
1292
|
+
worksheet.SaveToStream(stream , ",")
|
|
1293
|
+
|
|
1241
1294
|
"""
|
|
1242
1295
|
intPtrstream:c_void_p = stream.Ptr
|
|
1243
1296
|
|
|
@@ -1248,12 +1301,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1248
1301
|
|
|
1249
1302
|
def SaveToStream(self ,stream:Stream,separator:str,retainHiddenData:bool):
|
|
1250
1303
|
"""
|
|
1251
|
-
<summary>
|
|
1252
1304
|
Save worksheet to stream.
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1305
|
+
|
|
1306
|
+
Args:
|
|
1307
|
+
stream: Stream object.
|
|
1308
|
+
separator: Seperator.
|
|
1309
|
+
retainHiddenData: retain hidden data
|
|
1310
|
+
|
|
1257
1311
|
"""
|
|
1258
1312
|
intPtrstream:c_void_p = stream.Ptr
|
|
1259
1313
|
|
|
@@ -1264,12 +1318,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1264
1318
|
|
|
1265
1319
|
def SaveToStream(self ,stream:Stream,separator:str,encoding:Encoding):
|
|
1266
1320
|
"""
|
|
1267
|
-
<summary>
|
|
1268
1321
|
Save worksheet to stream.
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1322
|
+
|
|
1323
|
+
Args:
|
|
1324
|
+
stream: Stream to save.
|
|
1325
|
+
separator: Current seperator.
|
|
1326
|
+
encoding: Encoding to use.
|
|
1327
|
+
|
|
1273
1328
|
"""
|
|
1274
1329
|
intPtrstream:c_void_p = stream.Ptr
|
|
1275
1330
|
intPtrencoding:c_void_p = encoding.Ptr
|
|
@@ -1280,10 +1335,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1280
1335
|
|
|
1281
1336
|
def SaveToXps(self ,fileName:str):
|
|
1282
1337
|
"""
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1338
|
+
Saves specific worksheet to xps.
|
|
1339
|
+
|
|
1340
|
+
Args:
|
|
1341
|
+
fileName: File name.
|
|
1342
|
+
|
|
1287
1343
|
"""
|
|
1288
1344
|
|
|
1289
1345
|
GetDllLibXls().XlsWorksheet_SaveToXps.argtypes=[c_void_p ,c_void_p]
|
|
@@ -1293,10 +1349,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1293
1349
|
|
|
1294
1350
|
def SaveToPdf(self ,fileName:str,fileFormat:FileFormat):
|
|
1295
1351
|
"""
|
|
1296
|
-
<summary>
|
|
1297
1352
|
Save worksheet to pdf.
|
|
1298
|
-
|
|
1299
|
-
|
|
1353
|
+
|
|
1354
|
+
Args:
|
|
1355
|
+
fileName: File name.
|
|
1356
|
+
|
|
1300
1357
|
"""
|
|
1301
1358
|
enumfileFormat:c_int = fileFormat.value
|
|
1302
1359
|
|
|
@@ -1307,10 +1364,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1307
1364
|
|
|
1308
1365
|
def SaveToPdf(self ,fileName:str):
|
|
1309
1366
|
"""
|
|
1310
|
-
<summary>
|
|
1311
1367
|
Save worksheet to pdf.
|
|
1312
|
-
|
|
1313
|
-
|
|
1368
|
+
|
|
1369
|
+
Args:
|
|
1370
|
+
fileName: File name.
|
|
1371
|
+
|
|
1314
1372
|
"""
|
|
1315
1373
|
|
|
1316
1374
|
GetDllLibXls().XlsWorksheet_SaveToPdfF.argtypes=[c_void_p ,c_void_p]
|
|
@@ -1332,10 +1390,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1332
1390
|
|
|
1333
1391
|
def SaveToPdfStream(self ,stream:Stream):
|
|
1334
1392
|
"""
|
|
1335
|
-
<summary>
|
|
1336
1393
|
Save worksheet to pdf Stream.
|
|
1337
|
-
|
|
1338
|
-
|
|
1394
|
+
|
|
1395
|
+
Args:
|
|
1396
|
+
stream: Stream.
|
|
1397
|
+
|
|
1339
1398
|
"""
|
|
1340
1399
|
intPtrstream:c_void_p = stream.Ptr
|
|
1341
1400
|
|
|
@@ -1345,14 +1404,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1345
1404
|
|
|
1346
1405
|
def ToSVGStream(self ,stream:'Stream',firstRow:int,firstColumn:int,lastRow:int,lastColumn:int):
|
|
1347
1406
|
"""
|
|
1348
|
-
<summary>
|
|
1349
1407
|
Convert CellRange to Svg stream
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1408
|
+
|
|
1409
|
+
Args:
|
|
1410
|
+
stream: stream.
|
|
1411
|
+
firstRow: One-based index of the first row to convert.
|
|
1412
|
+
firstColumn: One-based index of the first column to convert.
|
|
1413
|
+
lastRow: One-based index of the last row to convert.
|
|
1414
|
+
lastColumn: One-based index of the last column to convert.
|
|
1415
|
+
|
|
1356
1416
|
"""
|
|
1357
1417
|
intPtrstream:c_void_p = stream.Ptr
|
|
1358
1418
|
|
|
@@ -1362,11 +1422,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1362
1422
|
|
|
1363
1423
|
def SetBlank(self ,iRow:int,iColumn:int):
|
|
1364
1424
|
"""
|
|
1365
|
-
<summary>
|
|
1366
1425
|
Sets blank in specified cell.
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1426
|
+
|
|
1427
|
+
Args:
|
|
1428
|
+
iRow: One-based row index of the cell to set value.
|
|
1429
|
+
iColumn: One-based column index of the cell to set value.
|
|
1430
|
+
|
|
1370
1431
|
"""
|
|
1371
1432
|
|
|
1372
1433
|
GetDllLibXls().XlsWorksheet_SetBlank.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -1375,12 +1436,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1375
1436
|
|
|
1376
1437
|
def SetBoolean(self ,iRow:int,iColumn:int,value:bool):
|
|
1377
1438
|
"""
|
|
1378
|
-
<summary>
|
|
1379
1439
|
Sets value in the specified cell.
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1440
|
+
|
|
1441
|
+
Args:
|
|
1442
|
+
iRow: One-based row index of the cell to set value.
|
|
1443
|
+
iColumn: One-based column index of the cell to set value.
|
|
1444
|
+
value: Value to set.
|
|
1445
|
+
|
|
1384
1446
|
"""
|
|
1385
1447
|
|
|
1386
1448
|
GetDllLibXls().XlsWorksheet_SetBoolean.argtypes=[c_void_p ,c_int,c_int,c_bool]
|
|
@@ -1390,22 +1452,21 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1390
1452
|
|
|
1391
1453
|
def SetColumnWidthInPixels(self ,iColumn:int,value:int):
|
|
1392
1454
|
"""
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
<param name="value">Width in pixels to set.</param>
|
|
1455
|
+
Sets column width in pixels.
|
|
1456
|
+
|
|
1457
|
+
Args:
|
|
1458
|
+
iColumn: One-based column index.
|
|
1459
|
+
value: Width in pixels to set.
|
|
1460
|
+
Example::
|
|
1461
|
+
|
|
1462
|
+
#Create worksheet
|
|
1463
|
+
workbook = Workbook()
|
|
1464
|
+
worksheet = workbook.Worksheets[0]
|
|
1465
|
+
#Set column width
|
|
1466
|
+
worksheet.SetColumnWidthInPixels(2, 160)
|
|
1467
|
+
#Save to file
|
|
1468
|
+
workbook.SaveToFile("SetColumnWidthInPixels.xlsx")
|
|
1469
|
+
|
|
1409
1470
|
"""
|
|
1410
1471
|
|
|
1411
1472
|
GetDllLibXls().XlsWorksheet_SetColumnWidthInPixels.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -1414,11 +1475,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1414
1475
|
|
|
1415
1476
|
def SetColumnWidth(self ,columnIndex:int,width:float):
|
|
1416
1477
|
"""
|
|
1417
|
-
<summary>
|
|
1418
1478
|
Set solumn width
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1479
|
+
|
|
1480
|
+
Args:
|
|
1481
|
+
columnIndex: Column index.
|
|
1482
|
+
width: Width to set.
|
|
1483
|
+
|
|
1422
1484
|
"""
|
|
1423
1485
|
|
|
1424
1486
|
GetDllLibXls().XlsWorksheet_SetColumnWidth.argtypes=[c_void_p ,c_int,c_double]
|
|
@@ -1428,12 +1490,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1428
1490
|
|
|
1429
1491
|
def SetColumnWidthInPixels(self ,columnIndex:int,count:int,value:int):
|
|
1430
1492
|
"""
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1493
|
+
Sets the width of the specified columns.
|
|
1494
|
+
|
|
1495
|
+
Args:
|
|
1496
|
+
columnIndex: Column index
|
|
1497
|
+
count: count
|
|
1498
|
+
value: Value
|
|
1499
|
+
|
|
1437
1500
|
"""
|
|
1438
1501
|
|
|
1439
1502
|
GetDllLibXls().XlsWorksheet_SetColumnWidthInPixelsCCV.argtypes=[c_void_p ,c_int,c_int,c_int]
|
|
@@ -1443,11 +1506,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1443
1506
|
|
|
1444
1507
|
def SetDefaultColumnStyle(self ,columnIndex:int,defaultStyle:IStyle):
|
|
1445
1508
|
"""
|
|
1446
|
-
<summary>
|
|
1447
1509
|
Sets default style for column.
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1510
|
+
|
|
1511
|
+
Args:
|
|
1512
|
+
columnIndex: Column index.
|
|
1513
|
+
defaultStyle: Default style.
|
|
1514
|
+
|
|
1451
1515
|
"""
|
|
1452
1516
|
intPtrdefaultStyle:c_void_p = defaultStyle.Ptr
|
|
1453
1517
|
|
|
@@ -1491,12 +1555,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1491
1555
|
|
|
1492
1556
|
def SetError(self ,iRow:int,iColumn:int,value:str):
|
|
1493
1557
|
"""
|
|
1494
|
-
<summary>
|
|
1495
1558
|
Sets error in the specified cell.
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1559
|
+
|
|
1560
|
+
Args:
|
|
1561
|
+
iRow: One-based row index of the cell to set value.
|
|
1562
|
+
iColumn: One-based column index of the cell to set value.
|
|
1563
|
+
value: Error to set.
|
|
1564
|
+
|
|
1500
1565
|
"""
|
|
1501
1566
|
|
|
1502
1567
|
GetDllLibXls().XlsWorksheet_SetError.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
@@ -1506,11 +1571,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1506
1571
|
|
|
1507
1572
|
def SetError(self ,iRow:int,iColumn:int,value:str,isSetText:bool):
|
|
1508
1573
|
"""
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1574
|
+
Args:
|
|
1575
|
+
iRow:
|
|
1576
|
+
iColumn:
|
|
1577
|
+
value:
|
|
1578
|
+
isSetText:
|
|
1579
|
+
|
|
1514
1580
|
"""
|
|
1515
1581
|
|
|
1516
1582
|
GetDllLibXls().XlsWorksheet_SetErrorIIVI.argtypes=[c_void_p ,c_int,c_int,c_void_p,c_bool]
|
|
@@ -1520,12 +1586,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1520
1586
|
|
|
1521
1587
|
def SetFormula(self ,iRow:int,iColumn:int,value:str):
|
|
1522
1588
|
"""
|
|
1523
|
-
<summary>
|
|
1524
1589
|
Sets formula in the specified cell.
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1590
|
+
|
|
1591
|
+
Args:
|
|
1592
|
+
iRow: One-based row index of the cell to set value.
|
|
1593
|
+
iColumn: One-based column index of the cell to set value.
|
|
1594
|
+
value: Formula to set.
|
|
1595
|
+
|
|
1529
1596
|
"""
|
|
1530
1597
|
|
|
1531
1598
|
GetDllLibXls().XlsWorksheet_SetFormula.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
@@ -1535,13 +1602,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1535
1602
|
|
|
1536
1603
|
def SetFormula(self ,iRow:int,iColumn:int,value:str,bIsR1C1:bool):
|
|
1537
1604
|
"""
|
|
1538
|
-
<summary>
|
|
1539
1605
|
Sets formula in the specified cell.
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1606
|
+
|
|
1607
|
+
Args:
|
|
1608
|
+
iRow: One-based row index of the cell to set value.
|
|
1609
|
+
iColumn: One-based column index of the cell to set value.
|
|
1610
|
+
value: Formula to set.
|
|
1611
|
+
bIsR1C1: Indicates is formula in R1C1 notation.
|
|
1612
|
+
|
|
1545
1613
|
"""
|
|
1546
1614
|
|
|
1547
1615
|
GetDllLibXls().XlsWorksheet_SetFormulaIIVB.argtypes=[c_void_p ,c_int,c_int,c_void_p,c_bool]
|
|
@@ -1550,12 +1618,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1550
1618
|
|
|
1551
1619
|
def SetFormulaBoolValue(self ,iRow:int,iColumn:int,value:bool):
|
|
1552
1620
|
"""
|
|
1553
|
-
<summary>
|
|
1554
1621
|
Sets formula bool value.
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1622
|
+
|
|
1623
|
+
Args:
|
|
1624
|
+
iRow: One based row index.
|
|
1625
|
+
iColumn: One based column index.
|
|
1626
|
+
value: Represents formula bool value for set.
|
|
1627
|
+
|
|
1559
1628
|
"""
|
|
1560
1629
|
|
|
1561
1630
|
GetDllLibXls().XlsWorksheet_SetFormulaBoolValue.argtypes=[c_void_p ,c_int,c_int,c_bool]
|
|
@@ -1564,12 +1633,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1564
1633
|
|
|
1565
1634
|
def SetFormulaErrorValue(self ,iRow:int,iColumn:int,value:str):
|
|
1566
1635
|
"""
|
|
1567
|
-
<summary>
|
|
1568
1636
|
Sets formula error value.
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1637
|
+
|
|
1638
|
+
Args:
|
|
1639
|
+
iRow: One based row index.
|
|
1640
|
+
iColumn: One based column index.
|
|
1641
|
+
value: Represents formula error value for set.
|
|
1642
|
+
|
|
1573
1643
|
"""
|
|
1574
1644
|
|
|
1575
1645
|
GetDllLibXls().XlsWorksheet_SetFormulaErrorValue.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
@@ -1578,12 +1648,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1578
1648
|
|
|
1579
1649
|
def SetFormulaNumberValue(self ,iRow:int,iColumn:int,value:float):
|
|
1580
1650
|
"""
|
|
1581
|
-
<summary>
|
|
1582
1651
|
Sets formula number value.
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1652
|
+
|
|
1653
|
+
Args:
|
|
1654
|
+
iRow: One based row index.
|
|
1655
|
+
iColumn: One based column index.
|
|
1656
|
+
value: Represents formula number value for set.
|
|
1657
|
+
|
|
1587
1658
|
"""
|
|
1588
1659
|
|
|
1589
1660
|
GetDllLibXls().XlsWorksheet_SetFormulaNumberValue.argtypes=[c_void_p ,c_int,c_int,c_double]
|
|
@@ -1592,12 +1663,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1592
1663
|
|
|
1593
1664
|
def SetFormulaStringValue(self ,iRow:int,iColumn:int,value:str):
|
|
1594
1665
|
"""
|
|
1595
|
-
<summary>
|
|
1596
1666
|
Sets formula string value.
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1667
|
+
|
|
1668
|
+
Args:
|
|
1669
|
+
iRow: One based row index.
|
|
1670
|
+
iColumn: One based column index.
|
|
1671
|
+
value: Represents formula string value for set.
|
|
1672
|
+
|
|
1601
1673
|
"""
|
|
1602
1674
|
|
|
1603
1675
|
GetDllLibXls().XlsWorksheet_SetFormulaStringValue.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
@@ -1606,12 +1678,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1606
1678
|
|
|
1607
1679
|
def SetNumber(self ,iRow:int,iColumn:int,value:float):
|
|
1608
1680
|
"""
|
|
1609
|
-
<summary>
|
|
1610
1681
|
Sets value in the specified cell.
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1682
|
+
|
|
1683
|
+
Args:
|
|
1684
|
+
iRow: One-based row index of the cell to set value.
|
|
1685
|
+
iColumn: One-based column index of the cell to set value.
|
|
1686
|
+
value: Value to set.
|
|
1687
|
+
|
|
1615
1688
|
"""
|
|
1616
1689
|
|
|
1617
1690
|
GetDllLibXls().XlsWorksheet_SetNumber.argtypes=[c_void_p ,c_int,c_int,c_double]
|
|
@@ -1620,12 +1693,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1620
1693
|
|
|
1621
1694
|
def SetRowHeightInPixels(self ,rowIndex:int,count:int,value:float):
|
|
1622
1695
|
"""
|
|
1623
|
-
<summary>
|
|
1624
1696
|
Set Row height from Start Row index
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1697
|
+
|
|
1698
|
+
Args:
|
|
1699
|
+
rowIndex: Row index
|
|
1700
|
+
Count: count
|
|
1701
|
+
value: Value
|
|
1702
|
+
|
|
1629
1703
|
"""
|
|
1630
1704
|
|
|
1631
1705
|
GetDllLibXls().XlsWorksheet_SetRowHeightInPixels.argtypes=[c_void_p ,c_int,c_int,c_double]
|
|
@@ -1634,11 +1708,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1634
1708
|
|
|
1635
1709
|
def SetRowHeight(self ,rowIndex:int,height:float):
|
|
1636
1710
|
"""
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1711
|
+
Sets the height of the specified row.
|
|
1712
|
+
|
|
1713
|
+
Args:
|
|
1714
|
+
rowIndex: Row index.
|
|
1715
|
+
height: Height.
|
|
1716
|
+
|
|
1642
1717
|
"""
|
|
1643
1718
|
|
|
1644
1719
|
GetDllLibXls().XlsWorksheet_SetRowHeight.argtypes=[c_void_p ,c_int,c_double]
|
|
@@ -1647,22 +1722,21 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1647
1722
|
|
|
1648
1723
|
def SetRowHeightPixels(self ,rowIndex:int,height:float):
|
|
1649
1724
|
"""
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
<param name="height">Height.</param>
|
|
1725
|
+
Sets the height of the specified row.
|
|
1726
|
+
|
|
1727
|
+
Args:
|
|
1728
|
+
rowIndex: Row index.
|
|
1729
|
+
height: Height.
|
|
1730
|
+
Example::
|
|
1731
|
+
|
|
1732
|
+
#Create worksheet
|
|
1733
|
+
workbook = Workbook()
|
|
1734
|
+
worksheet = workbook.Worksheets[0]
|
|
1735
|
+
#Set row height
|
|
1736
|
+
worksheet.SetRowHeightPixels(3, 150)
|
|
1737
|
+
#Save to file
|
|
1738
|
+
workbook.SaveToFile("SetRowHeightPixels.xlsx")
|
|
1739
|
+
|
|
1666
1740
|
"""
|
|
1667
1741
|
|
|
1668
1742
|
GetDllLibXls().XlsWorksheet_SetRowHeightPixels.argtypes=[c_void_p ,c_int,c_double]
|
|
@@ -1671,12 +1745,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1671
1745
|
|
|
1672
1746
|
def SetText(self ,iRow:int,iColumn:int,value:str):
|
|
1673
1747
|
"""
|
|
1674
|
-
<summary>
|
|
1675
1748
|
Sets text in the specified cell.
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1749
|
+
|
|
1750
|
+
Args:
|
|
1751
|
+
iRow: One-based row index of the cell to set value.
|
|
1752
|
+
iColumn: One-based column index of the cell to set value.
|
|
1753
|
+
value: Text to set.
|
|
1754
|
+
|
|
1680
1755
|
"""
|
|
1681
1756
|
|
|
1682
1757
|
GetDllLibXls().XlsWorksheet_SetText.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
@@ -1695,12 +1770,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1695
1770
|
|
|
1696
1771
|
def SetCellValue(self ,rowIndex:int,columnIndex:int,boolValue:bool):
|
|
1697
1772
|
"""
|
|
1698
|
-
<summary>
|
|
1699
1773
|
Sets value in the specified cell.
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1774
|
+
|
|
1775
|
+
Args:
|
|
1776
|
+
rowIndex: Row index.
|
|
1777
|
+
columnIndex: Column index.
|
|
1778
|
+
boolValue: Value to set.
|
|
1779
|
+
|
|
1704
1780
|
"""
|
|
1705
1781
|
|
|
1706
1782
|
GetDllLibXls().XlsWorksheet_SetCellValue.argtypes=[c_void_p ,c_int,c_int,c_bool]
|
|
@@ -1710,12 +1786,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1710
1786
|
|
|
1711
1787
|
def SetCellValue(self ,rowIndex:int,columnIndex:int,stringValue:str):
|
|
1712
1788
|
"""
|
|
1713
|
-
<summary>
|
|
1714
1789
|
Sets value in the specified cell.
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1790
|
+
|
|
1791
|
+
Args:
|
|
1792
|
+
rowIndex: Row index
|
|
1793
|
+
columnIndex: Column index.
|
|
1794
|
+
stringValue: Value to set.
|
|
1795
|
+
|
|
1719
1796
|
"""
|
|
1720
1797
|
|
|
1721
1798
|
GetDllLibXls().XlsWorksheet_SetCellValueRCS.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
@@ -1724,9 +1801,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1724
1801
|
@property
|
|
1725
1802
|
def HasMergedCells(self)->bool:
|
|
1726
1803
|
"""
|
|
1727
|
-
<summary>
|
|
1728
1804
|
Indicates whether worksheet has merged cells.
|
|
1729
|
-
|
|
1805
|
+
|
|
1730
1806
|
"""
|
|
1731
1807
|
GetDllLibXls().XlsWorksheet_get_HasMergedCells.argtypes=[c_void_p]
|
|
1732
1808
|
GetDllLibXls().XlsWorksheet_get_HasMergedCells.restype=c_bool
|
|
@@ -1736,28 +1812,22 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1736
1812
|
@property
|
|
1737
1813
|
def HasOleObjects(self)->bool:
|
|
1738
1814
|
"""
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
</code>
|
|
1756
|
-
</example>
|
|
1757
|
-
</summary>
|
|
1758
|
-
<value>
|
|
1759
|
-
<c>true</c> if this instance is OLE object; otherwise, <c>false</c>.
|
|
1760
|
-
</value>
|
|
1815
|
+
Indicats whether there is OLE object.
|
|
1816
|
+
Example::
|
|
1817
|
+
|
|
1818
|
+
#Create worksheet
|
|
1819
|
+
workbook = Workbook()
|
|
1820
|
+
worksheet = workbook.Worksheets[0]
|
|
1821
|
+
#Create image stream
|
|
1822
|
+
System.Drawing.image = System.Drawing.Image.FromFile("image.png")
|
|
1823
|
+
#Add ole object
|
|
1824
|
+
oleObject = worksheet.OleObjects.Add("Shapes.xlsx", image, OleLinkType.Embed)
|
|
1825
|
+
#Check HasOleObject.Output will be true.</para>
|
|
1826
|
+
Console.Write(worksheet.HasOleObjects)
|
|
1827
|
+
|
|
1828
|
+
<para>#Save to file
|
|
1829
|
+
workbook.SaveToFile("HasOleObjects.xlsx");
|
|
1830
|
+
|
|
1761
1831
|
"""
|
|
1762
1832
|
GetDllLibXls().XlsWorksheet_get_HasOleObjects.argtypes=[c_void_p]
|
|
1763
1833
|
GetDllLibXls().XlsWorksheet_get_HasOleObjects.restype=c_bool
|
|
@@ -1788,7 +1858,7 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1788
1858
|
GetDllLibXls().XlsWorksheet_get_HPageBreaks.argtypes=[c_void_p]
|
|
1789
1859
|
GetDllLibXls().XlsWorksheet_get_HPageBreaks.restype=c_void_p
|
|
1790
1860
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_HPageBreaks, self.Ptr)
|
|
1791
|
-
ret = None if intPtr==None else
|
|
1861
|
+
ret = None if intPtr==None else HPageBreaksCollection(intPtr)
|
|
1792
1862
|
return ret
|
|
1793
1863
|
|
|
1794
1864
|
|
|
@@ -1801,16 +1871,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1801
1871
|
GetDllLibXls().XlsWorksheet_get_HyperLinks.argtypes=[c_void_p]
|
|
1802
1872
|
GetDllLibXls().XlsWorksheet_get_HyperLinks.restype=c_void_p
|
|
1803
1873
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_HyperLinks, self.Ptr)
|
|
1804
|
-
ret = None if intPtr==None else
|
|
1874
|
+
ret = None if intPtr==None else HyperLinksCollection(intPtr)
|
|
1805
1875
|
return ret
|
|
1806
1876
|
|
|
1807
1877
|
|
|
1808
1878
|
@property
|
|
1809
1879
|
def IsDisplayZeros(self)->bool:
|
|
1810
1880
|
"""
|
|
1811
|
-
<summary>
|
|
1812
1881
|
Indicates whether zero values to be displayed
|
|
1813
|
-
|
|
1882
|
+
|
|
1814
1883
|
"""
|
|
1815
1884
|
GetDllLibXls().XlsWorksheet_get_IsDisplayZeros.argtypes=[c_void_p]
|
|
1816
1885
|
GetDllLibXls().XlsWorksheet_get_IsDisplayZeros.restype=c_bool
|
|
@@ -1825,9 +1894,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1825
1894
|
@property
|
|
1826
1895
|
def IsEmpty(self)->bool:
|
|
1827
1896
|
"""
|
|
1828
|
-
<summary>
|
|
1829
1897
|
Indicates whether worksheet is empty. Read-only.
|
|
1830
|
-
|
|
1898
|
+
|
|
1831
1899
|
"""
|
|
1832
1900
|
GetDllLibXls().XlsWorksheet_get_IsEmpty.argtypes=[c_void_p]
|
|
1833
1901
|
GetDllLibXls().XlsWorksheet_get_IsEmpty.restype=c_bool
|
|
@@ -1837,9 +1905,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1837
1905
|
@property
|
|
1838
1906
|
def IsFreezePanes(self)->bool:
|
|
1839
1907
|
"""
|
|
1840
|
-
<summary>
|
|
1841
1908
|
Indicates whether freezed panes are applied.
|
|
1842
|
-
|
|
1909
|
+
|
|
1843
1910
|
"""
|
|
1844
1911
|
GetDllLibXls().XlsWorksheet_get_IsFreezePanes.argtypes=[c_void_p]
|
|
1845
1912
|
GetDllLibXls().XlsWorksheet_get_IsFreezePanes.restype=c_bool
|
|
@@ -1849,9 +1916,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1849
1916
|
@property
|
|
1850
1917
|
def IsStringsPreserved(self)->bool:
|
|
1851
1918
|
"""
|
|
1852
|
-
<summary>
|
|
1853
1919
|
Indicates if all values in the workbook are preserved as strings.
|
|
1854
|
-
|
|
1920
|
+
|
|
1855
1921
|
"""
|
|
1856
1922
|
GetDllLibXls().XlsWorksheet_get_IsStringsPreserved.argtypes=[c_void_p]
|
|
1857
1923
|
GetDllLibXls().XlsWorksheet_get_IsStringsPreserved.restype=c_bool
|
|
@@ -1867,12 +1933,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1867
1933
|
|
|
1868
1934
|
def AddAllowEditRange(self ,title:str,range:CellRange,password:str)->bool:
|
|
1869
1935
|
"""
|
|
1870
|
-
<summary>
|
|
1871
1936
|
AddAllowEditRange : add a range of cells that allow editing
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1937
|
+
|
|
1938
|
+
Args:
|
|
1939
|
+
title: title
|
|
1940
|
+
range: range
|
|
1941
|
+
password: password
|
|
1942
|
+
|
|
1876
1943
|
"""
|
|
1877
1944
|
intPtrrange:c_void_p = range.Ptr
|
|
1878
1945
|
|
|
@@ -1885,11 +1952,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1885
1952
|
|
|
1886
1953
|
def AddAllowEditRange(self ,title:str,range:CellRange)->bool:
|
|
1887
1954
|
"""
|
|
1888
|
-
<summary>
|
|
1889
1955
|
AddAllowEditRange : add a range of cells that allow editing
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1956
|
+
|
|
1957
|
+
Args:
|
|
1958
|
+
title: title
|
|
1959
|
+
range: range
|
|
1960
|
+
|
|
1893
1961
|
"""
|
|
1894
1962
|
intPtrrange:c_void_p = range.Ptr
|
|
1895
1963
|
|
|
@@ -1902,9 +1970,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1902
1970
|
|
|
1903
1971
|
def ListObjects(self)->'IListObjects':
|
|
1904
1972
|
"""
|
|
1905
|
-
<summary>
|
|
1906
1973
|
Returns all list objects in the worksheet.
|
|
1907
|
-
|
|
1974
|
+
|
|
1908
1975
|
"""
|
|
1909
1976
|
GetDllLibXls().XlsWorksheet_get_ListObjects.argtypes=[c_void_p]
|
|
1910
1977
|
GetDllLibXls().XlsWorksheet_get_ListObjects.restype=c_void_p
|
|
@@ -1931,10 +1998,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1931
1998
|
@property
|
|
1932
1999
|
def RowColumnHeadersVisible(self)->bool:
|
|
1933
2000
|
"""
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
False otherwise.
|
|
1937
|
-
</summary>
|
|
2001
|
+
True if row and column headers are visible. False otherwise.
|
|
2002
|
+
|
|
1938
2003
|
"""
|
|
1939
2004
|
GetDllLibXls().XlsWorksheet_get_RowColumnHeadersVisible.argtypes=[c_void_p]
|
|
1940
2005
|
GetDllLibXls().XlsWorksheet_get_RowColumnHeadersVisible.restype=c_bool
|
|
@@ -1949,9 +2014,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1949
2014
|
@property
|
|
1950
2015
|
def ProtectContents(self)->bool:
|
|
1951
2016
|
"""
|
|
1952
|
-
<summary>
|
|
1953
2017
|
Indicates whether current sheet is protected.
|
|
1954
|
-
|
|
2018
|
+
|
|
1955
2019
|
"""
|
|
1956
2020
|
GetDllLibXls().XlsWorksheet_get_ProtectContents.argtypes=[c_void_p]
|
|
1957
2021
|
GetDllLibXls().XlsWorksheet_get_ProtectContents.restype=c_bool
|
|
@@ -1962,9 +2026,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1962
2026
|
|
|
1963
2027
|
def PivotTables(self)->'PivotTablesCollection':
|
|
1964
2028
|
"""
|
|
1965
|
-
<summary>
|
|
1966
2029
|
Returns charts collection. Read-only.
|
|
1967
|
-
|
|
2030
|
+
|
|
1968
2031
|
"""
|
|
1969
2032
|
GetDllLibXls().XlsWorksheet_get_PivotTables.argtypes=[c_void_p]
|
|
1970
2033
|
GetDllLibXls().XlsWorksheet_get_PivotTables.restype=c_void_p
|
|
@@ -1977,9 +2040,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1977
2040
|
|
|
1978
2041
|
def QuotedName(self)->str:
|
|
1979
2042
|
"""
|
|
1980
|
-
<summary>
|
|
1981
2043
|
Returns quoted name of the worksheet.
|
|
1982
|
-
|
|
2044
|
+
|
|
1983
2045
|
"""
|
|
1984
2046
|
GetDllLibXls().XlsWorksheet_get_QuotedName.argtypes=[c_void_p]
|
|
1985
2047
|
GetDllLibXls().XlsWorksheet_get_QuotedName.restype=c_void_p
|
|
@@ -2002,9 +2064,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2002
2064
|
|
|
2003
2065
|
def CalculateAllValue(self):
|
|
2004
2066
|
"""
|
|
2005
|
-
<summary>
|
|
2006
2067
|
Caculate all formula for the specified worksheet
|
|
2007
|
-
|
|
2068
|
+
|
|
2008
2069
|
"""
|
|
2009
2070
|
GetDllLibXls().XlsWorksheet_CalculateAllValue.argtypes=[c_void_p]
|
|
2010
2071
|
CallCFunction(GetDllLibXls().XlsWorksheet_CalculateAllValue, self.Ptr)
|
|
@@ -2023,14 +2084,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2023
2084
|
|
|
2024
2085
|
|
|
2025
2086
|
|
|
2026
|
-
def SetCaculateValue(self ,value:
|
|
2087
|
+
def SetCaculateValue(self ,value:str,row:int,col:int):
|
|
2027
2088
|
"""
|
|
2028
2089
|
|
|
2029
2090
|
"""
|
|
2030
|
-
intPtrvalue:c_void_p = value.Ptr
|
|
2031
2091
|
|
|
2032
|
-
GetDllLibXls().XlsWorksheet_SetCaculateValue.argtypes=[c_void_p ,
|
|
2033
|
-
CallCFunction(GetDllLibXls().XlsWorksheet_SetCaculateValue, self.Ptr,
|
|
2092
|
+
GetDllLibXls().XlsWorksheet_SetCaculateValue.argtypes=[c_void_p ,c_wchar_p,c_int,c_int]
|
|
2093
|
+
CallCFunction(GetDllLibXls().XlsWorksheet_SetCaculateValue, self.Ptr, value,row,col)
|
|
2034
2094
|
|
|
2035
2095
|
# @dispatch
|
|
2036
2096
|
#
|
|
@@ -2076,27 +2136,25 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2076
2136
|
|
|
2077
2137
|
def InsertArray(self ,doubleArray:List[float],firstRow:int,firstColumn:int,isVertical:bool)->int:
|
|
2078
2138
|
"""
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
<param name="isVertical">Specifies to import data vertically or horizontally.</param>
|
|
2099
|
-
<returns></returns>
|
|
2139
|
+
Imports an array of doubles into a worksheet.
|
|
2140
|
+
|
|
2141
|
+
Args:
|
|
2142
|
+
doubleArray: Double array
|
|
2143
|
+
firstRow: The row number of the first cell to import in.
|
|
2144
|
+
firstColumn: The column number of the first cell to import in.
|
|
2145
|
+
isVertical: Specifies to import data vertically or horizontally.
|
|
2146
|
+
Example::
|
|
2147
|
+
|
|
2148
|
+
#Create worksheet
|
|
2149
|
+
workbook = Workbook()
|
|
2150
|
+
worksheet = workbook.Worksheets[0]
|
|
2151
|
+
#Initialize the double Array
|
|
2152
|
+
double[] arrayDouble = new double[4] { 344.0045, 345.0045, 346.0045, 347.0045 }
|
|
2153
|
+
#Insert the double Array to Sheet
|
|
2154
|
+
worksheet.InsertArray(arrayDouble, 1, 1, true)
|
|
2155
|
+
#Save to file
|
|
2156
|
+
workbook.SaveToFile(InsertArray.xlsx")
|
|
2157
|
+
|
|
2100
2158
|
"""
|
|
2101
2159
|
#arraydoubleArray:ArrayTypedoubleArray = ""
|
|
2102
2160
|
countdoubleArray = len(doubleArray)
|
|
@@ -2129,27 +2187,25 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2129
2187
|
|
|
2130
2188
|
def InsertArray(self ,intArray:List[int],firstRow:int,firstColumn:int,isVertical:bool)->int:
|
|
2131
2189
|
"""
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
<param name="isVertical">Specifies to import data vertically or horizontally.</param>
|
|
2152
|
-
<returns></returns>
|
|
2190
|
+
Imports an array of integer into a worksheet.
|
|
2191
|
+
|
|
2192
|
+
Args:
|
|
2193
|
+
intArray: Integer array.
|
|
2194
|
+
firstRow: The row number of the first cell to import in.
|
|
2195
|
+
firstColumn: The column number of the first cell to import in.
|
|
2196
|
+
isVertical: Specifies to import data vertically or horizontally.
|
|
2197
|
+
Example::
|
|
2198
|
+
|
|
2199
|
+
#Create worksheet
|
|
2200
|
+
workbook = Workbook()
|
|
2201
|
+
worksheet = workbook.Worksheets[0]
|
|
2202
|
+
#Initialize the integer Array
|
|
2203
|
+
int[] arrayInt = new int[4] {1000, 2000, 3000, 4000}
|
|
2204
|
+
#Insert the integer Array to Sheet
|
|
2205
|
+
worksheet.InsertArray(arrayInt, 1, 1, true)
|
|
2206
|
+
#Save to file
|
|
2207
|
+
workbook.SaveToFile(InsertArray.xlsx")
|
|
2208
|
+
|
|
2153
2209
|
"""
|
|
2154
2210
|
#arrayintArray:ArrayTypeintArray = ""
|
|
2155
2211
|
countintArray = len(intArray)
|
|
@@ -2228,27 +2284,25 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2228
2284
|
|
|
2229
2285
|
def InsertArray(self ,stringArray:List[str],firstRow:int,firstColumn:int,isVertical:bool)->int:
|
|
2230
2286
|
"""
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
<param name="isVertical">Specifies to import data vertically or horizontally.</param>
|
|
2251
|
-
<returns></returns>
|
|
2287
|
+
Imports an array of strings into a worksheet.
|
|
2288
|
+
|
|
2289
|
+
Args:
|
|
2290
|
+
stringArray: String array.
|
|
2291
|
+
firstRow: The row number of the first cell to import in.
|
|
2292
|
+
firstColumn: The column number of the first cell to import in.
|
|
2293
|
+
isVertical: Specifies to import data vertically or horizontally.
|
|
2294
|
+
Example::
|
|
2295
|
+
|
|
2296
|
+
#Create worksheet
|
|
2297
|
+
workbook = Workbook()
|
|
2298
|
+
worksheet = workbook.Worksheets[0]
|
|
2299
|
+
#Initialize the string Array
|
|
2300
|
+
string[] arrayString = new string[4] { "Total Income", "Actual Expense", "Expected Expenses", "Profit" }
|
|
2301
|
+
#Insert the string Array to Sheet
|
|
2302
|
+
worksheet.InsertArray(arrayString, 1, 1, true)
|
|
2303
|
+
#Save to file
|
|
2304
|
+
workbook.SaveToFile(InsertArray.xlsx")
|
|
2305
|
+
|
|
2252
2306
|
"""
|
|
2253
2307
|
#arraystringArray:ArrayTypestringArray = ""
|
|
2254
2308
|
countstringArray = len(stringArray)
|
|
@@ -2267,27 +2321,28 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2267
2321
|
|
|
2268
2322
|
def InsertArray(self ,arrObject:List[SpireObject],firstRow:int,firstColumn:int,isVertical:bool)->int:
|
|
2269
2323
|
"""
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2324
|
+
Imports an array of objects into a worksheet.
|
|
2325
|
+
|
|
2326
|
+
Args:
|
|
2327
|
+
arrObject: Array to import.
|
|
2328
|
+
firstRow: The row number of the first cell to import in.
|
|
2329
|
+
firstColumn: The column number of the first cell to import in.
|
|
2330
|
+
isVertical: TRUE if array should be imported vertically; FALSE - horizontally.
|
|
2331
|
+
|
|
2332
|
+
Returns:
|
|
2333
|
+
Number of imported elements.
|
|
2334
|
+
Example::
|
|
2335
|
+
|
|
2336
|
+
#Create worksheet
|
|
2337
|
+
workbook = Workbook()
|
|
2338
|
+
worksheet = workbook.Worksheets[0]
|
|
2339
|
+
#Initialize the Object Array
|
|
2340
|
+
object[] array = new object[4] { "Total Income", "Actual Expense", "Expected Expenses", "Profit" }
|
|
2341
|
+
#Insert the Object Array to Sheet
|
|
2342
|
+
worksheet.InsertArray(array, 1, 1, true)
|
|
2343
|
+
#Save to file
|
|
2344
|
+
workbook.SaveToFile(InsertArray.xlsx")
|
|
2345
|
+
|
|
2291
2346
|
"""
|
|
2292
2347
|
#arrayarrObject:ArrayTypearrObject = ""
|
|
2293
2348
|
countarrObject = len(arrObject)
|
|
@@ -2797,11 +2852,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2797
2852
|
|
|
2798
2853
|
def IsColumnVisible(self ,columnIndex:int)->bool:
|
|
2799
2854
|
"""
|
|
2800
|
-
<summary>
|
|
2801
2855
|
Indicates whether column is visible.
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2856
|
+
|
|
2857
|
+
Args:
|
|
2858
|
+
columnIndex: Column index.
|
|
2859
|
+
|
|
2860
|
+
Returns:
|
|
2861
|
+
true - visible, otherwise false.
|
|
2862
|
+
|
|
2805
2863
|
"""
|
|
2806
2864
|
|
|
2807
2865
|
GetDllLibXls().XlsWorksheet_IsColumnVisible.argtypes=[c_void_p ,c_int]
|
|
@@ -2812,12 +2870,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2812
2870
|
|
|
2813
2871
|
def IsExternalFormula(self ,row:int,column:int)->bool:
|
|
2814
2872
|
"""
|
|
2815
|
-
<summary>
|
|
2816
2873
|
Indicates is formula in cell is formula to external workbook.
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2874
|
+
|
|
2875
|
+
Args:
|
|
2876
|
+
row: Represents row index.
|
|
2877
|
+
column: Represents column index.
|
|
2878
|
+
|
|
2879
|
+
Returns:
|
|
2880
|
+
If contain extern formula returns true; otherwise false.
|
|
2881
|
+
|
|
2821
2882
|
"""
|
|
2822
2883
|
|
|
2823
2884
|
GetDllLibXls().XlsWorksheet_IsExternalFormula.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -2828,11 +2889,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2828
2889
|
|
|
2829
2890
|
def IsRowVisible(self ,rowIndex:int)->bool:
|
|
2830
2891
|
"""
|
|
2831
|
-
<summary>
|
|
2832
2892
|
Indicates whether row is visible.
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2893
|
+
|
|
2894
|
+
Args:
|
|
2895
|
+
rowIndex: Row index.
|
|
2896
|
+
|
|
2897
|
+
Returns:
|
|
2898
|
+
true - visible, otherwise false.
|
|
2899
|
+
|
|
2836
2900
|
"""
|
|
2837
2901
|
|
|
2838
2902
|
GetDllLibXls().XlsWorksheet_IsRowVisible.argtypes=[c_void_p ,c_int]
|
|
@@ -2844,23 +2908,22 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2844
2908
|
|
|
2845
2909
|
def AutoFitColumn(self ,columnIndex:int):
|
|
2846
2910
|
"""
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
<param name="columnIndex">Column index.</param>
|
|
2911
|
+
Autofit the column width.
|
|
2912
|
+
|
|
2913
|
+
Args:
|
|
2914
|
+
columnIndex: Column index.
|
|
2915
|
+
Example::
|
|
2916
|
+
|
|
2917
|
+
#Create worksheet
|
|
2918
|
+
workbook = Workbook()
|
|
2919
|
+
worksheet = workbook.Worksheets[0]
|
|
2920
|
+
#Set text
|
|
2921
|
+
worksheet["A1"].Text = "Sample text in cell"
|
|
2922
|
+
#Set auto fit
|
|
2923
|
+
worksheet.AutoFitColumn(1)
|
|
2924
|
+
#Save to file
|
|
2925
|
+
workbook.SaveToFile("AutoFitColumn.xlsx")
|
|
2926
|
+
|
|
2864
2927
|
"""
|
|
2865
2928
|
|
|
2866
2929
|
GetDllLibXls().XlsWorksheet_AutoFitColumn.argtypes=[c_void_p ,c_int]
|
|
@@ -2870,11 +2933,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2870
2933
|
|
|
2871
2934
|
def AutoFitColumn(self ,columnIndex:int,options:AutoFitterOptions):
|
|
2872
2935
|
"""
|
|
2873
|
-
<summary>
|
|
2874
2936
|
Autofit the column width.
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2937
|
+
|
|
2938
|
+
Args:
|
|
2939
|
+
columnIndex: Column index.
|
|
2940
|
+
options: auto fit options
|
|
2941
|
+
|
|
2878
2942
|
"""
|
|
2879
2943
|
intPtroptions:c_void_p = options.Ptr
|
|
2880
2944
|
|
|
@@ -2885,12 +2949,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2885
2949
|
|
|
2886
2950
|
def AutoFitColumn(self ,columnIndex:int,firstRow:int,lastRow:int):
|
|
2887
2951
|
"""
|
|
2888
|
-
<summary>
|
|
2889
2952
|
Autofit the column width.
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2953
|
+
|
|
2954
|
+
Args:
|
|
2955
|
+
columnIndex: Column index.
|
|
2956
|
+
firstRow: One-based index of the first row to be used for autofit operation.
|
|
2957
|
+
lastRow: One-based index of the last row to be used for autofit operation.
|
|
2958
|
+
|
|
2894
2959
|
"""
|
|
2895
2960
|
|
|
2896
2961
|
GetDllLibXls().XlsWorksheet_AutoFitColumnCFL.argtypes=[c_void_p ,c_int,c_int,c_int]
|
|
@@ -2900,13 +2965,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2900
2965
|
|
|
2901
2966
|
def AutoFitColumn(self ,columnIndex:int,firstRow:int,lastRow:int,options:AutoFitterOptions):
|
|
2902
2967
|
"""
|
|
2903
|
-
<summary>
|
|
2904
2968
|
Autofit the column width.
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2969
|
+
|
|
2970
|
+
Args:
|
|
2971
|
+
columnIndex: Column index.
|
|
2972
|
+
firstRow: One-based index of the first row to be used for autofit operation.
|
|
2973
|
+
lastRow: One-based index of the last row to be used for autofit operation.
|
|
2974
|
+
options: auto fit options
|
|
2975
|
+
|
|
2910
2976
|
"""
|
|
2911
2977
|
intPtroptions:c_void_p = options.Ptr
|
|
2912
2978
|
|
|
@@ -2917,28 +2983,27 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2917
2983
|
|
|
2918
2984
|
def AutoFitRow(self ,rowIndex:int):
|
|
2919
2985
|
"""
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
<param name="rowIndex">Row index</param>
|
|
2986
|
+
Autofit the row height.
|
|
2987
|
+
|
|
2988
|
+
Args:
|
|
2989
|
+
rowIndex: Row index
|
|
2990
|
+
Example::
|
|
2991
|
+
|
|
2992
|
+
#Create worksheet
|
|
2993
|
+
workbook = Workbook()
|
|
2994
|
+
worksheet = workbook.Worksheets[0]
|
|
2995
|
+
#Set text
|
|
2996
|
+
worksheet["C2"].Value = "Sample text"
|
|
2997
|
+
#Set Style
|
|
2998
|
+
style = workbook.Styles.Add("CustomStyle")
|
|
2999
|
+
font = style.Font
|
|
3000
|
+
font.Size = 18
|
|
3001
|
+
worksheet["C2"].Style = style
|
|
3002
|
+
#Set auto fit
|
|
3003
|
+
worksheet.AutoFitRow(2)
|
|
3004
|
+
#Save to file
|
|
3005
|
+
workbook.SaveToFile("AutoFitRow.xlsx")
|
|
3006
|
+
|
|
2942
3007
|
"""
|
|
2943
3008
|
|
|
2944
3009
|
GetDllLibXls().XlsWorksheet_AutoFitRow.argtypes=[c_void_p ,c_int]
|
|
@@ -2948,13 +3013,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2948
3013
|
|
|
2949
3014
|
def AutoFitRow(self ,rowIndex:int,firstColumn:int,lastColumn:int,options:AutoFitterOptions):
|
|
2950
3015
|
"""
|
|
2951
|
-
<summary>
|
|
2952
3016
|
Autofit the row height.
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
3017
|
+
|
|
3018
|
+
Args:
|
|
3019
|
+
rowIndex: Row index
|
|
3020
|
+
firstColumn: One-based index of the first column to be used for autofit operation.
|
|
3021
|
+
lastColumn: One-based index of the last column to be used for autofit operation.
|
|
3022
|
+
options: auto fit options
|
|
3023
|
+
|
|
2958
3024
|
"""
|
|
2959
3025
|
intPtroptions:c_void_p = options.Ptr
|
|
2960
3026
|
|
|
@@ -2965,13 +3031,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2965
3031
|
|
|
2966
3032
|
def AutoFitRow(self ,rowIndex:int,firstColumn:int,lastColumn:int,bRaiseEvents:bool):
|
|
2967
3033
|
"""
|
|
2968
|
-
<summary>
|
|
2969
3034
|
Autofit the row height.
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
3035
|
+
|
|
3036
|
+
Args:
|
|
3037
|
+
rowIndex: Row index
|
|
3038
|
+
firstColumn: One-based index of the first column to be used for autofit operation.
|
|
3039
|
+
lastColumn: One-based index of the last column to be used for autofit operation.
|
|
3040
|
+
bRaiseEvents: If true then raise events.
|
|
3041
|
+
|
|
2975
3042
|
"""
|
|
2976
3043
|
|
|
2977
3044
|
GetDllLibXls().XlsWorksheet_AutoFitRowRFLB.argtypes=[c_void_p ,c_int,c_int,c_int,c_bool]
|
|
@@ -2981,14 +3048,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2981
3048
|
|
|
2982
3049
|
def AutoFitRow(self ,rowIndex:int,firstColumn:int,lastColumn:int,bRaiseEvents:bool,options:AutoFitterOptions):
|
|
2983
3050
|
"""
|
|
2984
|
-
<summary>
|
|
2985
3051
|
Autofit the row height.
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
3052
|
+
|
|
3053
|
+
Args:
|
|
3054
|
+
rowIndex: Row index
|
|
3055
|
+
firstColumn: One-based index of the first column to be used for autofit operation.
|
|
3056
|
+
lastColumn: One-based index of the last column to be used for autofit operation.
|
|
3057
|
+
bRaiseEvents: If true then raise events.
|
|
3058
|
+
options: auto fit options
|
|
3059
|
+
|
|
2992
3060
|
"""
|
|
2993
3061
|
intPtroptions:c_void_p = options.Ptr
|
|
2994
3062
|
|
|
@@ -2998,25 +3066,26 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2998
3066
|
|
|
2999
3067
|
def CheckExistence(self ,row:int,column:int)->bool:
|
|
3000
3068
|
"""
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3069
|
+
Indicates whether cell has been initialized.
|
|
3070
|
+
|
|
3071
|
+
Args:
|
|
3072
|
+
row: Row index.
|
|
3073
|
+
column: Column index.
|
|
3074
|
+
|
|
3075
|
+
Returns:
|
|
3076
|
+
Value indicating whether the cell was initialized or accessed by the user.
|
|
3077
|
+
Example::
|
|
3078
|
+
|
|
3079
|
+
#Create worksheet
|
|
3080
|
+
workbook = Workbook()
|
|
3081
|
+
worksheet = workbook.Worksheets[0]
|
|
3082
|
+
#Set text
|
|
3083
|
+
worksheet.Range["A1"].Text = "Hello"
|
|
3084
|
+
#Check the cell.Output will be true.
|
|
3085
|
+
Console.Write(worksheet.CheckExistence(1, 1))
|
|
3086
|
+
#Save to file
|
|
3087
|
+
workbook.SaveToFile("CheckExistence.xlsx")
|
|
3088
|
+
|
|
3020
3089
|
"""
|
|
3021
3090
|
|
|
3022
3091
|
GetDllLibXls().XlsWorksheet_CheckExistence.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -3026,18 +3095,16 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3026
3095
|
|
|
3027
3096
|
def Clear(self):
|
|
3028
3097
|
"""
|
|
3029
|
-
<summary>
|
|
3030
3098
|
Clears data the worksheet.
|
|
3031
|
-
|
|
3099
|
+
|
|
3032
3100
|
"""
|
|
3033
3101
|
GetDllLibXls().XlsWorksheet_Clear.argtypes=[c_void_p]
|
|
3034
3102
|
CallCFunction(GetDllLibXls().XlsWorksheet_Clear, self.Ptr)
|
|
3035
3103
|
|
|
3036
3104
|
def ClearData(self):
|
|
3037
3105
|
"""
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
</summary>
|
|
3106
|
+
Clears contents of a range.
|
|
3107
|
+
|
|
3041
3108
|
"""
|
|
3042
3109
|
GetDllLibXls().XlsWorksheet_ClearData.argtypes=[c_void_p]
|
|
3043
3110
|
CallCFunction(GetDllLibXls().XlsWorksheet_ClearData, self.Ptr)
|
|
@@ -3074,13 +3141,16 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3074
3141
|
|
|
3075
3142
|
def GetCellType(self ,row:int,column:int,bNeedFormulaSubType:bool)->'TRangeValueType':
|
|
3076
3143
|
"""
|
|
3077
|
-
<summary>
|
|
3078
3144
|
Gets cell type from current column.
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3145
|
+
|
|
3146
|
+
Args:
|
|
3147
|
+
row: Indicates row.
|
|
3148
|
+
column: Indicates column.
|
|
3149
|
+
bNeedFormulaSubType: Indicates is need to indified formula sub type.
|
|
3150
|
+
|
|
3151
|
+
Returns:
|
|
3152
|
+
Returns cell type.
|
|
3153
|
+
|
|
3084
3154
|
"""
|
|
3085
3155
|
|
|
3086
3156
|
GetDllLibXls().XlsWorksheet_GetCellType.argtypes=[c_void_p ,c_int,c_int,c_bool]
|
|
@@ -3105,33 +3175,39 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3105
3175
|
#
|
|
3106
3176
|
|
|
3107
3177
|
|
|
3108
|
-
@dispatch
|
|
3178
|
+
# @dispatch
|
|
3109
3179
|
|
|
3110
|
-
def GetStringValue(self ,cellIndex:int)->str:
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3180
|
+
# def GetStringValue(self ,cellIndex:int)->str:
|
|
3181
|
+
# """
|
|
3182
|
+
# Returns string value corresponding to the cell.
|
|
3183
|
+
|
|
3184
|
+
# Args:
|
|
3185
|
+
# iCellIndex: Cell index to get value from.
|
|
3186
|
+
|
|
3187
|
+
# Returns:
|
|
3188
|
+
# String contained by the cell.
|
|
3189
|
+
|
|
3190
|
+
# """
|
|
3118
3191
|
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3192
|
+
# GetDllLibXls().XlsWorksheet_GetStringValue.argtypes=[c_void_p ,c_long]
|
|
3193
|
+
# GetDllLibXls().XlsWorksheet_GetStringValue.restype=c_void_p
|
|
3194
|
+
# ret = PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetStringValue, self.Ptr, cellIndex))
|
|
3195
|
+
# return ret
|
|
3123
3196
|
|
|
3124
3197
|
|
|
3125
3198
|
@dispatch
|
|
3126
3199
|
|
|
3127
3200
|
def GetStringValue(self ,row:int,column:int)->str:
|
|
3128
3201
|
"""
|
|
3129
|
-
<summary>
|
|
3130
3202
|
Returns string value corresponding to the cell.
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3203
|
+
|
|
3204
|
+
Args:
|
|
3205
|
+
row: Represents row index.
|
|
3206
|
+
column: Represents column index.
|
|
3207
|
+
|
|
3208
|
+
Returns:
|
|
3209
|
+
String contained by the cell.
|
|
3210
|
+
|
|
3135
3211
|
"""
|
|
3136
3212
|
|
|
3137
3213
|
GetDllLibXls().XlsWorksheet_GetStringValueRC.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -3140,67 +3216,74 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3140
3216
|
return ret
|
|
3141
3217
|
|
|
3142
3218
|
|
|
3143
|
-
@dispatch
|
|
3219
|
+
# @dispatch
|
|
3144
3220
|
|
|
3145
|
-
def GetTextObject(self ,cellIndex:int)->SpireObject:
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3221
|
+
# def GetTextObject(self ,cellIndex:int)->SpireObject:
|
|
3222
|
+
# """
|
|
3223
|
+
# Returns TextWithFormat object corresponding to the specified cell.
|
|
3224
|
+
|
|
3225
|
+
# Args:
|
|
3226
|
+
# cellIndex: Cell index.
|
|
3227
|
+
|
|
3228
|
+
# Returns:
|
|
3229
|
+
# Object corresponding to the specified cell.
|
|
3230
|
+
|
|
3231
|
+
# """
|
|
3153
3232
|
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3233
|
+
# GetDllLibXls().XlsWorksheet_GetTextObject.argtypes=[c_void_p ,c_long]
|
|
3234
|
+
# GetDllLibXls().XlsWorksheet_GetTextObject.restype=c_void_p
|
|
3235
|
+
# intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GetTextObject, self.Ptr, cellIndex)
|
|
3236
|
+
# ret = None if intPtr==None else SpireObject(intPtr)
|
|
3237
|
+
# return ret
|
|
3159
3238
|
|
|
3160
3239
|
|
|
3161
3240
|
@dispatch
|
|
3162
3241
|
|
|
3163
3242
|
def GetTextObject(self ,row:int,column:int)->SpireObject:
|
|
3164
3243
|
"""
|
|
3165
|
-
<summary>
|
|
3166
3244
|
Returns TextWithFormat object corresponding to the specified cell.
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3245
|
+
|
|
3246
|
+
Args:
|
|
3247
|
+
row: Represents row index.
|
|
3248
|
+
column: Represents column index.
|
|
3249
|
+
|
|
3250
|
+
Returns:
|
|
3251
|
+
Object corresponding to the specified cell.
|
|
3252
|
+
|
|
3171
3253
|
"""
|
|
3172
3254
|
|
|
3173
3255
|
GetDllLibXls().XlsWorksheet_GetTextObjectRC.argtypes=[c_void_p ,c_int,c_int]
|
|
3174
3256
|
GetDllLibXls().XlsWorksheet_GetTextObjectRC.restype=c_void_p
|
|
3175
|
-
|
|
3176
|
-
ret = None if intPtr==None else SpireObject(intPtr)
|
|
3177
|
-
return ret
|
|
3257
|
+
return PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetTextObjectRC, self.Ptr, row,column))
|
|
3178
3258
|
|
|
3179
3259
|
|
|
3180
3260
|
|
|
3181
|
-
def HasArrayFormula(self ,cellIndex:int)->bool:
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3261
|
+
# def HasArrayFormula(self ,cellIndex:int)->bool:
|
|
3262
|
+
# """
|
|
3263
|
+
# Indicates whether cell contains array-entered formula.
|
|
3264
|
+
|
|
3265
|
+
# Args:
|
|
3266
|
+
# cellIndex: cell index.
|
|
3267
|
+
|
|
3268
|
+
# """
|
|
3189
3269
|
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3270
|
+
# GetDllLibXls().XlsWorksheet_HasArrayFormula.argtypes=[c_void_p ,c_long]
|
|
3271
|
+
# GetDllLibXls().XlsWorksheet_HasArrayFormula.restype=c_bool
|
|
3272
|
+
# ret = CallCFunction(GetDllLibXls().XlsWorksheet_HasArrayFormula, self.Ptr, cellIndex)
|
|
3273
|
+
# return ret
|
|
3194
3274
|
|
|
3195
3275
|
|
|
3196
3276
|
def HasArrayFormulaRecord(self ,row:int,column:int)->bool:
|
|
3197
3277
|
"""
|
|
3198
|
-
<summary>
|
|
3199
3278
|
Indicates is has array formula.
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3279
|
+
|
|
3280
|
+
Args:
|
|
3281
|
+
row: Represents row index.
|
|
3282
|
+
column: Represents column index.
|
|
3283
|
+
|
|
3284
|
+
Returns:
|
|
3285
|
+
Indicates is contain array formula record.
|
|
3286
|
+
|
|
3204
3287
|
"""
|
|
3205
3288
|
|
|
3206
3289
|
GetDllLibXls().XlsWorksheet_HasArrayFormulaRecord.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -3211,16 +3294,19 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3211
3294
|
|
|
3212
3295
|
def InsertRange(self ,rowIndex:int,columnIndex:int,rowCount:int,columnCount:int,moveOptions:'InsertMoveOption',insertOptions:'InsertOptionsType')->'IXLSRange':
|
|
3213
3296
|
"""
|
|
3214
|
-
<summary>
|
|
3215
3297
|
Insert a cell range into worksheet
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3298
|
+
|
|
3299
|
+
Args:
|
|
3300
|
+
rowIndex: the cell range first row index
|
|
3301
|
+
columnIndex: the cell range first column index
|
|
3302
|
+
rowCount: the number of rows
|
|
3303
|
+
columnCount: the number of columns
|
|
3304
|
+
moveOptions: Insert options.
|
|
3305
|
+
insertOptions: Move the cell on the right to right or Move the cell below down
|
|
3306
|
+
|
|
3307
|
+
Returns:
|
|
3308
|
+
return the range that insert into worksheet
|
|
3309
|
+
|
|
3224
3310
|
"""
|
|
3225
3311
|
enummoveOptions:c_int = moveOptions.value
|
|
3226
3312
|
enuminsertOptions:c_int = insertOptions.value
|
|
@@ -3235,13 +3321,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3235
3321
|
|
|
3236
3322
|
def InsertCutRange(self ,cutRange:'IXLSRange',rowIndex:int,colIndex:int,moveOptions:'InsertMoveOption'):
|
|
3237
3323
|
"""
|
|
3238
|
-
<summary>
|
|
3239
3324
|
Insert cut range into worksheet at specified position.
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3325
|
+
|
|
3326
|
+
Args:
|
|
3327
|
+
cutRange: the cut range
|
|
3328
|
+
rowIndex: the dest range first row index
|
|
3329
|
+
colIndex: the dest range first column index
|
|
3330
|
+
moveOptions: insert options.
|
|
3331
|
+
|
|
3245
3332
|
"""
|
|
3246
3333
|
intPtrcutRange:c_void_p = cutRange.Ptr
|
|
3247
3334
|
enummoveOptions:c_int = moveOptions.value
|
|
@@ -3249,28 +3336,31 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3249
3336
|
GetDllLibXls().XlsWorksheet_InsertCutRange.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int]
|
|
3250
3337
|
CallCFunction(GetDllLibXls().XlsWorksheet_InsertCutRange, self.Ptr, intPtrcutRange,rowIndex,colIndex,enummoveOptions)
|
|
3251
3338
|
|
|
3252
|
-
@dispatch
|
|
3339
|
+
# @dispatch
|
|
3253
3340
|
|
|
3254
|
-
def IsArrayFormula(self ,cellIndex:int)->bool:
|
|
3255
|
-
|
|
3341
|
+
# def IsArrayFormula(self ,cellIndex:int)->bool:
|
|
3342
|
+
# """
|
|
3256
3343
|
|
|
3257
|
-
|
|
3344
|
+
# """
|
|
3258
3345
|
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3346
|
+
# GetDllLibXls().XlsWorksheet_IsArrayFormula.argtypes=[c_void_p ,c_long]
|
|
3347
|
+
# GetDllLibXls().XlsWorksheet_IsArrayFormula.restype=c_bool
|
|
3348
|
+
# ret = CallCFunction(GetDllLibXls().XlsWorksheet_IsArrayFormula, self.Ptr, cellIndex)
|
|
3349
|
+
# return ret
|
|
3263
3350
|
|
|
3264
3351
|
@dispatch
|
|
3265
3352
|
|
|
3266
3353
|
def IsArrayFormula(self ,row:int,column:int)->bool:
|
|
3267
3354
|
"""
|
|
3268
|
-
<summary>
|
|
3269
3355
|
Indicates whether cell contains array-entered formula.
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3356
|
+
|
|
3357
|
+
Args:
|
|
3358
|
+
row: Represents row index.
|
|
3359
|
+
column: Represents column index.
|
|
3360
|
+
|
|
3361
|
+
Returns:
|
|
3362
|
+
True if cell contains array-entered formula.
|
|
3363
|
+
|
|
3274
3364
|
"""
|
|
3275
3365
|
|
|
3276
3366
|
GetDllLibXls().XlsWorksheet_IsArrayFormulaRC.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -3326,10 +3416,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3326
3416
|
|
|
3327
3417
|
def DeleteColumn(self ,index:int):
|
|
3328
3418
|
"""
|
|
3329
|
-
<summary>
|
|
3330
3419
|
Deletes a column.
|
|
3331
|
-
|
|
3332
|
-
|
|
3420
|
+
|
|
3421
|
+
Args:
|
|
3422
|
+
columnIndex: Column index to remove..
|
|
3423
|
+
|
|
3333
3424
|
"""
|
|
3334
3425
|
|
|
3335
3426
|
GetDllLibXls().XlsWorksheet_DeleteColumn.argtypes=[c_void_p ,c_int]
|
|
@@ -3339,11 +3430,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3339
3430
|
|
|
3340
3431
|
def DeleteColumn(self ,index:int,count:int):
|
|
3341
3432
|
"""
|
|
3342
|
-
<summary>
|
|
3343
3433
|
Removes specified column.
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3434
|
+
|
|
3435
|
+
Args:
|
|
3436
|
+
index: One-based column index to remove.
|
|
3437
|
+
count: Number of columns to remove.
|
|
3438
|
+
|
|
3347
3439
|
"""
|
|
3348
3440
|
|
|
3349
3441
|
GetDllLibXls().XlsWorksheet_DeleteColumnIC.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -3353,10 +3445,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3353
3445
|
|
|
3354
3446
|
def DeleteRow(self ,index:int):
|
|
3355
3447
|
"""
|
|
3356
|
-
<summary>
|
|
3357
3448
|
Delete a row.
|
|
3358
|
-
|
|
3359
|
-
|
|
3449
|
+
|
|
3450
|
+
Args:
|
|
3451
|
+
index: Row index to remove
|
|
3452
|
+
|
|
3360
3453
|
"""
|
|
3361
3454
|
|
|
3362
3455
|
GetDllLibXls().XlsWorksheet_DeleteRow.argtypes=[c_void_p ,c_int]
|
|
@@ -3366,11 +3459,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3366
3459
|
|
|
3367
3460
|
def DeleteRow(self ,index:int,count:int):
|
|
3368
3461
|
"""
|
|
3369
|
-
<summary>
|
|
3370
3462
|
Removes specified row.
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3463
|
+
|
|
3464
|
+
Args:
|
|
3465
|
+
index: One-based row index to remove
|
|
3466
|
+
count: Number of rows to delete.
|
|
3467
|
+
|
|
3374
3468
|
"""
|
|
3375
3469
|
|
|
3376
3470
|
GetDllLibXls().XlsWorksheet_DeleteRowIC.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -3380,10 +3474,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3380
3474
|
|
|
3381
3475
|
def InsertColumn(self ,columnIndex:int):
|
|
3382
3476
|
"""
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3477
|
+
Inserts a new column into the worksheet.
|
|
3478
|
+
|
|
3479
|
+
Args:
|
|
3480
|
+
columnIndex: Column index
|
|
3481
|
+
|
|
3387
3482
|
"""
|
|
3388
3483
|
|
|
3389
3484
|
GetDllLibXls().XlsWorksheet_InsertColumn.argtypes=[c_void_p ,c_int]
|
|
@@ -3404,11 +3499,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3404
3499
|
|
|
3405
3500
|
def InsertColumn(self ,columnIndex:int,columnCount:int):
|
|
3406
3501
|
"""
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3502
|
+
Inserts specified number column into the worksheet.
|
|
3503
|
+
|
|
3504
|
+
Args:
|
|
3505
|
+
columnIndex: Column index
|
|
3506
|
+
columnCount: Number of columns to insert.
|
|
3507
|
+
|
|
3412
3508
|
"""
|
|
3413
3509
|
|
|
3414
3510
|
GetDllLibXls().XlsWorksheet_InsertColumnCC.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -3418,10 +3514,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3418
3514
|
|
|
3419
3515
|
def InsertRow(self ,rowIndex:int):
|
|
3420
3516
|
"""
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3517
|
+
Inserts a new row into the worksheet.
|
|
3518
|
+
|
|
3519
|
+
Args:
|
|
3520
|
+
rowIndex: Index at which new row should be inserted
|
|
3521
|
+
|
|
3425
3522
|
"""
|
|
3426
3523
|
|
|
3427
3524
|
GetDllLibXls().XlsWorksheet_InsertRow.argtypes=[c_void_p ,c_int]
|
|
@@ -3455,11 +3552,12 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3455
3552
|
|
|
3456
3553
|
def InsertRow(self ,rowIndex:int,rowCount:int):
|
|
3457
3554
|
"""
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3555
|
+
Inserts multiple rows into the worksheet.
|
|
3556
|
+
|
|
3557
|
+
Args:
|
|
3558
|
+
rowIndex: Index at which new row should be inserted
|
|
3559
|
+
rowCount: Number of rows to be inserted.
|
|
3560
|
+
|
|
3463
3561
|
"""
|
|
3464
3562
|
|
|
3465
3563
|
GetDllLibXls().XlsWorksheet_InsertRowRR.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -3468,12 +3566,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3468
3566
|
|
|
3469
3567
|
def GetBoolean(self ,row:int,column:int)->bool:
|
|
3470
3568
|
"""
|
|
3471
|
-
<summary>
|
|
3472
3569
|
Gets bool value from cell.
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3570
|
+
|
|
3571
|
+
Args:
|
|
3572
|
+
row: Represents row index.
|
|
3573
|
+
column: Represents column index.
|
|
3574
|
+
|
|
3575
|
+
Returns:
|
|
3576
|
+
Returns found bool value. If cannot found returns false.
|
|
3577
|
+
|
|
3477
3578
|
"""
|
|
3478
3579
|
|
|
3479
3580
|
GetDllLibXls().XlsWorksheet_GetBoolean.argtypes=[c_void_p ,c_int,c_int]
|
|
@@ -3484,11 +3585,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3484
3585
|
|
|
3485
3586
|
def GetColumnWidth(self ,columnIndex:int)->float:
|
|
3486
3587
|
"""
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3588
|
+
Gets the width of the specified column
|
|
3589
|
+
|
|
3590
|
+
Args:
|
|
3591
|
+
columnIndex: Column index
|
|
3592
|
+
|
|
3593
|
+
Returns:
|
|
3594
|
+
Width of column
|
|
3595
|
+
|
|
3492
3596
|
"""
|
|
3493
3597
|
|
|
3494
3598
|
GetDllLibXls().XlsWorksheet_GetColumnWidth.argtypes=[c_void_p ,c_int]
|
|
@@ -3499,26 +3603,27 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3499
3603
|
|
|
3500
3604
|
def GetColumnWidthPixels(self ,columnIndex:int)->int:
|
|
3501
3605
|
"""
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3606
|
+
Gets the width of the specified column, in units of pixel.
|
|
3607
|
+
|
|
3608
|
+
Args:
|
|
3609
|
+
columnIndex: Column index.
|
|
3610
|
+
|
|
3611
|
+
Returns:
|
|
3612
|
+
Width of column
|
|
3613
|
+
Example::
|
|
3614
|
+
|
|
3615
|
+
#Create worksheet
|
|
3616
|
+
workbook = Workbook()
|
|
3617
|
+
worksheet = workbook.Worksheets[0]
|
|
3618
|
+
#Set text
|
|
3619
|
+
worksheet["A1"].Text = "Sample text in cell"
|
|
3620
|
+
#Set auto fit
|
|
3621
|
+
worksheet.AutoFitColumn(1)
|
|
3622
|
+
#Get column width
|
|
3623
|
+
print(worksheet.GetColumnWidthPixels(1))
|
|
3624
|
+
#Save to file
|
|
3625
|
+
workbook.SaveToFile("UsedRange.xlsx")
|
|
3626
|
+
|
|
3522
3627
|
"""
|
|
3523
3628
|
|
|
3524
3629
|
GetDllLibXls().XlsWorksheet_GetColumnWidthPixels.argtypes=[c_void_p ,c_int]
|
|
@@ -3535,29 +3640,29 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3535
3640
|
GetDllLibXls().XlsWorksheet_GetDefaultColumnStyle.argtypes=[c_void_p ,c_int]
|
|
3536
3641
|
GetDllLibXls().XlsWorksheet_GetDefaultColumnStyle.restype=c_void_p
|
|
3537
3642
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GetDefaultColumnStyle, self.Ptr, columnIndex)
|
|
3538
|
-
ret = None if intPtr==None else
|
|
3643
|
+
ret = None if intPtr==None else AddtionalFormatWrapper(intPtr)
|
|
3539
3644
|
return ret
|
|
3540
3645
|
|
|
3541
3646
|
|
|
3542
3647
|
|
|
3543
|
-
def add_CellValueChanged(self ,value:'CellValueChangedEventHandler'):
|
|
3544
|
-
|
|
3648
|
+
# def add_CellValueChanged(self ,value:'CellValueChangedEventHandler'):
|
|
3649
|
+
# """
|
|
3545
3650
|
|
|
3546
|
-
|
|
3547
|
-
|
|
3651
|
+
# """
|
|
3652
|
+
# intPtrvalue:c_void_p = value.Ptr
|
|
3548
3653
|
|
|
3549
|
-
|
|
3550
|
-
|
|
3654
|
+
# GetDllLibXls().XlsWorksheet_add_CellValueChanged.argtypes=[c_void_p ,c_void_p]
|
|
3655
|
+
# CallCFunction(GetDllLibXls().XlsWorksheet_add_CellValueChanged, self.Ptr, intPtrvalue)
|
|
3551
3656
|
|
|
3552
3657
|
|
|
3553
|
-
def remove_CellValueChanged(self ,value:'CellValueChangedEventHandler'):
|
|
3554
|
-
|
|
3658
|
+
# def remove_CellValueChanged(self ,value:'CellValueChangedEventHandler'):
|
|
3659
|
+
# """
|
|
3555
3660
|
|
|
3556
|
-
|
|
3557
|
-
|
|
3661
|
+
# """
|
|
3662
|
+
# intPtrvalue:c_void_p = value.Ptr
|
|
3558
3663
|
|
|
3559
|
-
|
|
3560
|
-
|
|
3664
|
+
# GetDllLibXls().XlsWorksheet_remove_CellValueChanged.argtypes=[c_void_p ,c_void_p]
|
|
3665
|
+
# CallCFunction(GetDllLibXls().XlsWorksheet_remove_CellValueChanged, self.Ptr, intPtrvalue)
|
|
3561
3666
|
|
|
3562
3667
|
@property
|
|
3563
3668
|
def Copying(self)->bool:
|
|
@@ -3578,23 +3683,19 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3578
3683
|
|
|
3579
3684
|
def OleObjects(self)->'IOleObjects':
|
|
3580
3685
|
"""
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
</code>
|
|
3595
|
-
</example>
|
|
3596
|
-
</summary>
|
|
3597
|
-
<value>The OLE objects.</value>
|
|
3686
|
+
Gets the OLE objects.
|
|
3687
|
+
Example::
|
|
3688
|
+
|
|
3689
|
+
#Create worksheet
|
|
3690
|
+
workbook = Workbook()
|
|
3691
|
+
worksheet = workbook.Worksheets[0]
|
|
3692
|
+
#Create image stream
|
|
3693
|
+
System.Drawing.image = System.Drawing.Image.FromFile("image.png")
|
|
3694
|
+
#Add ole object
|
|
3695
|
+
oleObject = worksheet.OleObjects.Add("Shapes.xlsx", image, OleLinkType.Embed)
|
|
3696
|
+
#Save to file
|
|
3697
|
+
workbook.SaveToFile("OLEObjects.xlsx")
|
|
3698
|
+
|
|
3598
3699
|
"""
|
|
3599
3700
|
GetDllLibXls().XlsWorksheet_get_OleObjects.argtypes=[c_void_p]
|
|
3600
3701
|
GetDllLibXls().XlsWorksheet_get_OleObjects.restype=c_void_p
|
|
@@ -3612,15 +3713,17 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3612
3713
|
GetDllLibXls().XlsWorksheet_get_AutoFilters.argtypes=[c_void_p]
|
|
3613
3714
|
GetDllLibXls().XlsWorksheet_get_AutoFilters.restype=c_void_p
|
|
3614
3715
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_AutoFilters, self.Ptr)
|
|
3615
|
-
ret = None if intPtr==None else
|
|
3716
|
+
ret = None if intPtr==None else AutoFiltersCollection(intPtr)
|
|
3616
3717
|
return ret
|
|
3617
3718
|
|
|
3618
3719
|
|
|
3619
3720
|
@property
|
|
3620
3721
|
|
|
3621
3722
|
def Cells(self)->ListXlsRanges:
|
|
3622
|
-
"""
|
|
3623
|
-
|
|
3723
|
+
"""Gets a collection of all cells in the worksheet.
|
|
3724
|
+
|
|
3725
|
+
Returns:
|
|
3726
|
+
ListXlsRanges: A collection of XlsRange objects representing all cells in the worksheet.
|
|
3624
3727
|
"""
|
|
3625
3728
|
GetDllLibXls().XlsWorksheet_get_Cells.argtypes=[c_void_p]
|
|
3626
3729
|
GetDllLibXls().XlsWorksheet_get_Cells.restype=c_void_p
|
|
@@ -3629,27 +3732,25 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3629
3732
|
return ret
|
|
3630
3733
|
|
|
3631
3734
|
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3735
|
+
@property
|
|
3736
|
+
|
|
3737
|
+
def CellList(self)->List['CellRange']:
|
|
3738
|
+
"""
|
|
3739
|
+
|
|
3740
|
+
"""
|
|
3741
|
+
GetDllLibXls().XlsWorksheet_get_CellList.argtypes=[c_void_p]
|
|
3742
|
+
GetDllLibXls().XlsWorksheet_get_CellList.restype=c_void_p
|
|
3743
|
+
intPtrArray = CallCFunction(GetDllLibXls().XlsWorksheet_get_CellList, self.Ptr)
|
|
3744
|
+
ret = GetObjVectorFromArray(intPtrArray, CellRange)
|
|
3745
|
+
return ret
|
|
3746
|
+
|
|
3644
3747
|
|
|
3645
3748
|
|
|
3646
3749
|
@property
|
|
3647
3750
|
def DisplayPageBreaks(self)->bool:
|
|
3648
3751
|
"""
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
worksheet are displayed.
|
|
3652
|
-
</summary>
|
|
3752
|
+
True if page breaks (both automatic and manual) on the specified worksheet are displayed.
|
|
3753
|
+
|
|
3653
3754
|
"""
|
|
3654
3755
|
GetDllLibXls().XlsWorksheet_get_DisplayPageBreaks.argtypes=[c_void_p]
|
|
3655
3756
|
GetDllLibXls().XlsWorksheet_get_DisplayPageBreaks.restype=c_bool
|
|
@@ -3678,9 +3779,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3678
3779
|
|
|
3679
3780
|
def Names(self)->'INameRanges':
|
|
3680
3781
|
"""
|
|
3681
|
-
<summary>
|
|
3682
3782
|
Name range used by macros to access to workbook items.
|
|
3683
|
-
|
|
3783
|
+
|
|
3684
3784
|
"""
|
|
3685
3785
|
GetDllLibXls().XlsWorksheet_get_Names.argtypes=[c_void_p]
|
|
3686
3786
|
GetDllLibXls().XlsWorksheet_get_Names.restype=c_void_p
|
|
@@ -3746,8 +3846,10 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3746
3846
|
@property
|
|
3747
3847
|
|
|
3748
3848
|
def Rows(self)->ListXlsRanges:
|
|
3749
|
-
"""
|
|
3750
|
-
|
|
3849
|
+
"""Gets a collection of all rows in the worksheet.
|
|
3850
|
+
|
|
3851
|
+
Returns:
|
|
3852
|
+
ListXlsRanges: A collection of XlsRange objects representing all rows in the worksheet.
|
|
3751
3853
|
"""
|
|
3752
3854
|
GetDllLibXls().XlsWorksheet_get_Rows.argtypes=[c_void_p]
|
|
3753
3855
|
GetDllLibXls().XlsWorksheet_get_Rows.restype=c_void_p
|
|
@@ -3759,8 +3861,10 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3759
3861
|
@property
|
|
3760
3862
|
|
|
3761
3863
|
def Columns(self)->ListXlsRanges:
|
|
3762
|
-
"""
|
|
3763
|
-
|
|
3864
|
+
"""Gets a collection of all columns in the worksheet.
|
|
3865
|
+
|
|
3866
|
+
Returns:
|
|
3867
|
+
ListXlsRanges: A collection of XlsRange objects representing all columns in the worksheet.
|
|
3764
3868
|
"""
|
|
3765
3869
|
GetDllLibXls().XlsWorksheet_get_Columns.argtypes=[c_void_p]
|
|
3766
3870
|
GetDllLibXls().XlsWorksheet_get_Columns.restype=c_void_p
|
|
@@ -3773,9 +3877,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3773
3877
|
|
|
3774
3878
|
def ConditionalFormats(self)->'IConditionalFormatsCollection':
|
|
3775
3879
|
"""
|
|
3776
|
-
<summary>
|
|
3777
3880
|
Returns collection with all conditional formats in the worksheet. Read-only.
|
|
3778
|
-
|
|
3881
|
+
|
|
3779
3882
|
"""
|
|
3780
3883
|
GetDllLibXls().XlsWorksheet_get_ConditionalFormats.argtypes=[c_void_p]
|
|
3781
3884
|
GetDllLibXls().XlsWorksheet_get_ConditionalFormats.restype=c_void_p
|
|
@@ -3787,23 +3890,19 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3787
3890
|
@property
|
|
3788
3891
|
def DefaultRowHeight(self)->float:
|
|
3789
3892
|
"""
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
workbook.SaveToFile("DefaultRowHeight.xlsx");
|
|
3804
|
-
</code>
|
|
3805
|
-
</example>
|
|
3806
|
-
</summary>
|
|
3893
|
+
Gets or sets default height of all the rows in the worksheet, in points.Read/write Double.
|
|
3894
|
+
Example::
|
|
3895
|
+
|
|
3896
|
+
#Create worksheet
|
|
3897
|
+
workbook = Workbook()
|
|
3898
|
+
worksheet = workbook.Worksheets[0]
|
|
3899
|
+
#Get row height
|
|
3900
|
+
Console.Write(worksheet.DefaultRowHeight)
|
|
3901
|
+
#Set default height
|
|
3902
|
+
worksheet.DefaultRowHeight = 40
|
|
3903
|
+
#Save to file
|
|
3904
|
+
workbook.SaveToFile("DefaultRowHeight.xlsx")
|
|
3905
|
+
|
|
3807
3906
|
"""
|
|
3808
3907
|
GetDllLibXls().XlsWorksheet_get_DefaultRowHeight.argtypes=[c_void_p]
|
|
3809
3908
|
GetDllLibXls().XlsWorksheet_get_DefaultRowHeight.restype=c_double
|
|
@@ -3818,9 +3917,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3818
3917
|
@property
|
|
3819
3918
|
def DefaultPrintRowHeight(self)->int:
|
|
3820
3919
|
"""
|
|
3821
|
-
<summary>
|
|
3822
3920
|
Return default row height.
|
|
3823
|
-
|
|
3921
|
+
|
|
3824
3922
|
"""
|
|
3825
3923
|
GetDllLibXls().XlsWorksheet_get_DefaultPrintRowHeight.argtypes=[c_void_p]
|
|
3826
3924
|
GetDllLibXls().XlsWorksheet_get_DefaultPrintRowHeight.restype=c_int
|
|
@@ -3836,10 +3934,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3836
3934
|
|
|
3837
3935
|
def ViewMode(self)->'ViewMode':
|
|
3838
3936
|
"""
|
|
3839
|
-
<summary>
|
|
3840
3937
|
Gets or sets the view mode of the sheet.
|
|
3841
|
-
|
|
3842
|
-
<value></value>
|
|
3938
|
+
|
|
3843
3939
|
"""
|
|
3844
3940
|
GetDllLibXls().XlsWorksheet_get_ViewMode.argtypes=[c_void_p]
|
|
3845
3941
|
GetDllLibXls().XlsWorksheet_get_ViewMode.restype=c_int
|
|
@@ -3855,22 +3951,19 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3855
3951
|
@property
|
|
3856
3952
|
def DefaultColumnWidth(self)->float:
|
|
3857
3953
|
"""
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
</code>
|
|
3872
|
-
</example>
|
|
3873
|
-
</summary>
|
|
3954
|
+
Returns or sets the default width of all the columns in the worksheet. Read/write Double.
|
|
3955
|
+
Example::
|
|
3956
|
+
|
|
3957
|
+
#Create worksheet
|
|
3958
|
+
workbook = Workbook()
|
|
3959
|
+
worksheet = workbook.Worksheets[0]
|
|
3960
|
+
#Get column width
|
|
3961
|
+
Console.Write(worksheet.DefaultColumnWidth)
|
|
3962
|
+
#Set default width
|
|
3963
|
+
worksheet.DefaultColumnWidth = 40
|
|
3964
|
+
#Save to file
|
|
3965
|
+
workbook.SaveToFile("DefaultColumnWidth.xlsx")
|
|
3966
|
+
|
|
3874
3967
|
"""
|
|
3875
3968
|
GetDllLibXls().XlsWorksheet_get_DefaultColumnWidth.argtypes=[c_void_p]
|
|
3876
3969
|
GetDllLibXls().XlsWorksheet_get_DefaultColumnWidth.restype=c_double
|
|
@@ -3885,21 +3978,17 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3885
3978
|
@property
|
|
3886
3979
|
def Zoom(self)->int:
|
|
3887
3980
|
"""
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
</code>
|
|
3900
|
-
</example>
|
|
3901
|
-
</summary>
|
|
3902
|
-
<remarks> Value of zoom should be between 10 and 400.</remarks>
|
|
3981
|
+
Zoom factor of document.
|
|
3982
|
+
Example::
|
|
3983
|
+
|
|
3984
|
+
#Create worksheet
|
|
3985
|
+
workbook = Workbook()
|
|
3986
|
+
worksheet = workbook.Worksheets[0]
|
|
3987
|
+
#Set zoom
|
|
3988
|
+
worksheet.Zoom = 200
|
|
3989
|
+
#Save to file
|
|
3990
|
+
workbook.SaveToFile("Zoom.xlsx")
|
|
3991
|
+
|
|
3903
3992
|
"""
|
|
3904
3993
|
GetDllLibXls().XlsWorksheet_get_Zoom.argtypes=[c_void_p]
|
|
3905
3994
|
GetDllLibXls().XlsWorksheet_get_Zoom.restype=c_int
|
|
@@ -3914,10 +4003,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3914
4003
|
@property
|
|
3915
4004
|
def ZoomScaleNormal(self)->int:
|
|
3916
4005
|
"""
|
|
3917
|
-
<summary>
|
|
3918
4006
|
Gets or sets the zoom scale of normal view of the sheet.
|
|
3919
|
-
|
|
3920
|
-
<value></value>
|
|
4007
|
+
|
|
3921
4008
|
"""
|
|
3922
4009
|
GetDllLibXls().XlsWorksheet_get_ZoomScaleNormal.argtypes=[c_void_p]
|
|
3923
4010
|
GetDllLibXls().XlsWorksheet_get_ZoomScaleNormal.restype=c_int
|
|
@@ -3932,10 +4019,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3932
4019
|
@property
|
|
3933
4020
|
def ZoomScalePageBreakView(self)->int:
|
|
3934
4021
|
"""
|
|
3935
|
-
<summary>
|
|
3936
4022
|
Gets or sets the zoom scale of page break preview of the sheet.
|
|
3937
|
-
|
|
3938
|
-
<value></value>
|
|
4023
|
+
|
|
3939
4024
|
"""
|
|
3940
4025
|
GetDllLibXls().XlsWorksheet_get_ZoomScalePageBreakView.argtypes=[c_void_p]
|
|
3941
4026
|
GetDllLibXls().XlsWorksheet_get_ZoomScalePageBreakView.restype=c_int
|
|
@@ -3950,10 +4035,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3950
4035
|
@property
|
|
3951
4036
|
def ZoomScalePageLayoutView(self)->int:
|
|
3952
4037
|
"""
|
|
3953
|
-
<summary>
|
|
3954
4038
|
Gets or sets the zoom scale of page layout view of the sheet.
|
|
3955
|
-
|
|
3956
|
-
<value></value>
|
|
4039
|
+
|
|
3957
4040
|
"""
|
|
3958
4041
|
GetDllLibXls().XlsWorksheet_get_ZoomScalePageLayoutView.argtypes=[c_void_p]
|
|
3959
4042
|
GetDllLibXls().XlsWorksheet_get_ZoomScalePageLayoutView.restype=c_int
|
|
@@ -3979,9 +4062,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3979
4062
|
|
|
3980
4063
|
def Version(self)->'ExcelVersion':
|
|
3981
4064
|
"""
|
|
3982
|
-
<summary>
|
|
3983
4065
|
Gets or sets excel file version.
|
|
3984
|
-
|
|
4066
|
+
|
|
3985
4067
|
"""
|
|
3986
4068
|
GetDllLibXls().XlsWorksheet_get_Version.argtypes=[c_void_p]
|
|
3987
4069
|
GetDllLibXls().XlsWorksheet_get_Version.restype=c_int
|
|
@@ -4010,10 +4092,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
4010
4092
|
@property
|
|
4011
4093
|
def StandardHeightFlag(self)->bool:
|
|
4012
4094
|
"""
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
standard (default) row height and book default font height do not match. Bool.
|
|
4016
|
-
</summary>
|
|
4095
|
+
Gets or sets the standard (default) height option flag, which defines that standard (default) row height and book default font height do not match. Bool.
|
|
4096
|
+
|
|
4017
4097
|
"""
|
|
4018
4098
|
GetDllLibXls().XlsWorksheet_get_StandardHeightFlag.argtypes=[c_void_p]
|
|
4019
4099
|
GetDllLibXls().XlsWorksheet_get_StandardHeightFlag.restype=c_bool
|
|
@@ -4040,8 +4120,10 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
4040
4120
|
@property
|
|
4041
4121
|
|
|
4042
4122
|
def Range(self)->'XlsRange':
|
|
4043
|
-
"""
|
|
4044
|
-
|
|
4123
|
+
"""Gets the range object representing the entire worksheet.
|
|
4124
|
+
|
|
4125
|
+
Returns:
|
|
4126
|
+
XlsRange: A range object representing the entire worksheet.
|
|
4045
4127
|
"""
|
|
4046
4128
|
GetDllLibXls().XlsWorksheet_get_Range.argtypes=[c_void_p]
|
|
4047
4129
|
GetDllLibXls().XlsWorksheet_get_Range.restype=c_void_p
|
|
@@ -4096,10 +4178,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
4096
4178
|
|
|
4097
4179
|
def TopLeftCell(self)->'CellRange':
|
|
4098
4180
|
"""
|
|
4099
|
-
<summary>
|
|
4100
4181
|
Gets top left cell of the worksheet.
|
|
4101
|
-
|
|
4102
|
-
<returns></returns>
|
|
4182
|
+
|
|
4103
4183
|
"""
|
|
4104
4184
|
GetDllLibXls().XlsWorksheet_get_TopLeftCell.argtypes=[c_void_p]
|
|
4105
4185
|
GetDllLibXls().XlsWorksheet_get_TopLeftCell.restype=c_void_p
|
|
@@ -4116,9 +4196,8 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
4116
4196
|
@property
|
|
4117
4197
|
def UseRangesCache(self)->bool:
|
|
4118
4198
|
"""
|
|
4119
|
-
<summary>
|
|
4120
4199
|
Indicates whether all created range objects should be cached. Default value is true.
|
|
4121
|
-
|
|
4200
|
+
|
|
4122
4201
|
"""
|
|
4123
4202
|
GetDllLibXls().XlsWorksheet_get_UseRangesCache.argtypes=[c_void_p]
|
|
4124
4203
|
GetDllLibXls().XlsWorksheet_get_UseRangesCache.restype=c_bool
|
|
@@ -4154,16 +4233,15 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
4154
4233
|
GetDllLibXls().XlsWorksheet_get_VPageBreaks.argtypes=[c_void_p]
|
|
4155
4234
|
GetDllLibXls().XlsWorksheet_get_VPageBreaks.restype=c_void_p
|
|
4156
4235
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_VPageBreaks, self.Ptr)
|
|
4157
|
-
ret = None if intPtr==None else
|
|
4236
|
+
ret = None if intPtr==None else VPageBreaksCollection(intPtr)
|
|
4158
4237
|
return ret
|
|
4159
4238
|
|
|
4160
4239
|
|
|
4161
4240
|
@property
|
|
4162
4241
|
def ActivePane(self)->int:
|
|
4163
4242
|
"""
|
|
4164
|
-
<summary>
|
|
4165
4243
|
Gets or sets index of the active pane.
|
|
4166
|
-
|
|
4244
|
+
|
|
4167
4245
|
"""
|
|
4168
4246
|
GetDllLibXls().XlsWorksheet_get_ActivePane.argtypes=[c_void_p]
|
|
4169
4247
|
GetDllLibXls().XlsWorksheet_get_ActivePane.restype=c_int
|
|
@@ -4187,10 +4265,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
4187
4265
|
|
|
4188
4266
|
def SetLastColumn(self ,columnIndex:int):
|
|
4189
4267
|
"""
|
|
4190
|
-
<summary>
|
|
4191
4268
|
Updates last column index.
|
|
4192
|
-
|
|
4193
|
-
|
|
4269
|
+
|
|
4270
|
+
Args:
|
|
4271
|
+
columnIndex: Column index.
|
|
4272
|
+
|
|
4194
4273
|
"""
|
|
4195
4274
|
|
|
4196
4275
|
GetDllLibXls().XlsWorksheet_SetLastColumn.argtypes=[c_void_p ,c_int]
|
|
@@ -4199,10 +4278,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
4199
4278
|
|
|
4200
4279
|
def SetFirstRow(self ,rowIndex:int):
|
|
4201
4280
|
"""
|
|
4202
|
-
<summary>
|
|
4203
4281
|
Updates first row index.
|
|
4204
|
-
|
|
4205
|
-
|
|
4282
|
+
|
|
4283
|
+
Args:
|
|
4284
|
+
rowIndex: Row index.
|
|
4285
|
+
|
|
4206
4286
|
"""
|
|
4207
4287
|
|
|
4208
4288
|
GetDllLibXls().XlsWorksheet_SetFirstRow.argtypes=[c_void_p ,c_int]
|
|
@@ -4211,10 +4291,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
4211
4291
|
|
|
4212
4292
|
def SetLastRow(self ,rowIndex:int):
|
|
4213
4293
|
"""
|
|
4214
|
-
<summary>
|
|
4215
4294
|
Updates last row index.
|
|
4216
|
-
|
|
4217
|
-
|
|
4295
|
+
|
|
4296
|
+
Args:
|
|
4297
|
+
rowIndex: Row index.
|
|
4298
|
+
|
|
4218
4299
|
"""
|
|
4219
4300
|
|
|
4220
4301
|
GetDllLibXls().XlsWorksheet_SetLastRow.argtypes=[c_void_p ,c_int]
|
|
@@ -4223,10 +4304,11 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
4223
4304
|
|
|
4224
4305
|
def ShowColumn(self ,columnIndex:int):
|
|
4225
4306
|
"""
|
|
4226
|
-
<summary>
|
|
4227
4307
|
Shows a column.
|
|
4228
|
-
|
|
4229
|
-
|
|
4308
|
+
|
|
4309
|
+
Args:
|
|
4310
|
+
columnIndex: Column index.
|
|
4311
|
+
|
|
4230
4312
|
"""
|
|
4231
4313
|
|
|
4232
4314
|
GetDllLibXls().XlsWorksheet_ShowColumn.argtypes=[c_void_p ,c_int]
|
|
@@ -4324,21 +4406,17 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
4324
4406
|
@property
|
|
4325
4407
|
def GridLinesVisible(self)->bool:
|
|
4326
4408
|
"""
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
workbook.SaveToFile("GridLinesVisible.xlsx");
|
|
4339
|
-
</code>
|
|
4340
|
-
</example>
|
|
4341
|
-
</summary>
|
|
4409
|
+
True if gridlines are visible; False otherwise.
|
|
4410
|
+
Example::
|
|
4411
|
+
|
|
4412
|
+
#Create worksheet
|
|
4413
|
+
workbook = Workbook()
|
|
4414
|
+
worksheet = workbook.Worksheets[0]
|
|
4415
|
+
#Set grid line visibility
|
|
4416
|
+
worksheet.GridLinesVisible = false
|
|
4417
|
+
#Save to file
|
|
4418
|
+
workbook.SaveToFile("GridLinesVisible.xlsx")
|
|
4419
|
+
|
|
4342
4420
|
"""
|
|
4343
4421
|
GetDllLibXls().XlsWorksheet_get_GridLinesVisible.argtypes=[c_void_p]
|
|
4344
4422
|
GetDllLibXls().XlsWorksheet_get_GridLinesVisible.restype=c_bool
|
|
@@ -4350,3 +4428,5 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
4350
4428
|
GetDllLibXls().XlsWorksheet_set_GridLinesVisible.argtypes=[c_void_p, c_bool]
|
|
4351
4429
|
CallCFunction(GetDllLibXls().XlsWorksheet_set_GridLinesVisible, self.Ptr, value)
|
|
4352
4430
|
|
|
4431
|
+
|
|
4432
|
+
|