spire-xls 15.5.0__py3-none-win_amd64.whl → 15.7.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 +98 -117
- spire/xls/Average.py +18 -4
- spire/xls/CellBaseStyle.py +13 -6
- spire/xls/CellBorder.py +25 -20
- spire/xls/CellRange.py +305 -269
- spire/xls/CellStyle.py +26 -12
- spire/xls/CellStyleFlag.py +181 -58
- spire/xls/CellStyleObject.py +36 -67
- spire/xls/CellValueChangedEventArgs.py +3 -9
- spire/xls/ColorScale.py +31 -39
- spire/xls/CommentsRange.py +185 -84
- spire/xls/CommonWrapper.py +23 -8
- spire/xls/ConverterSetting.py +19 -36
- spire/xls/DBConnection.py +41 -8
- spire/xls/DVAspect.py +8 -2
- spire/xls/DataBar.py +29 -28
- spire/xls/DocumentProperty.py +86 -38
- spire/xls/Excel2016Charttype.py +14 -2
- spire/xls/ExcelComment.py +1 -2
- spire/xls/ExcelCommentObject.py +206 -121
- spire/xls/ExcelFont.py +74 -59
- spire/xls/ExcelGradient.py +68 -24
- spire/xls/ExcelInterior.py +49 -20
- spire/xls/ExportTableOptions.py +33 -10
- spire/xls/ExternalConnection.py +85 -20
- spire/xls/ExternalLink.py +26 -10
- spire/xls/FileFormat.py +32 -4
- spire/xls/Font.py +95 -42
- spire/xls/FontArrayWrapper.py +135 -36
- spire/xls/FontWrapper.py +194 -92
- 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 +74 -24
- spire/xls/GradientType.py +10 -2
- spire/xls/GroupShape.py +1 -2
- spire/xls/HPageBreak.py +1 -2
- spire/xls/HTMLOptions.py +7 -19
- spire/xls/HyperLink.py +1 -2
- spire/xls/LOGFONT.py +78 -30
- 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 +20 -8
- spire/xls/ReferRangeArea.py +39 -16
- spire/xls/RichText.py +10 -8
- spire/xls/RichTextObject.py +63 -32
- spire/xls/RichTextShape.py +88 -32
- spire/xls/RichTextString.py +61 -24
- spire/xls/RtfTextWriter.py +68 -22
- spire/xls/SaveShapeTypeOption.py +19 -37
- spire/xls/ShapeGlow.py +34 -14
- spire/xls/ShapeReflection.py +55 -18
- spire/xls/StyleArrayWrapper.py +169 -78
- spire/xls/TextBoxShapeBase.py +63 -30
- spire/xls/TextSaveOptions.py +33 -18
- spire/xls/TopBottom.py +18 -6
- spire/xls/VPageBreak.py +3 -5
- spire/xls/Validation.py +12 -6
- spire/xls/WebQueryConnection.py +52 -20
- spire/xls/Workbook.py +810 -841
- spire/xls/Worksheet.py +444 -409
- spire/xls/WriteProtection.py +3 -6
- spire/xls/XlsAddInFunction.py +34 -20
- spire/xls/XlsArcShape.py +156 -40
- spire/xls/XlsBitmapShape.py +141 -43
- spire/xls/XlsBorder.py +72 -31
- spire/xls/XlsBorderArrayWrapper.py +50 -14
- spire/xls/XlsButtonShape.py +58 -16
- spire/xls/XlsCheckBoxShape.py +72 -18
- spire/xls/XlsComboBoxShape.py +53 -16
- spire/xls/XlsComment.py +108 -30
- spire/xls/XlsDataValidationTable.py +43 -16
- 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 +182 -52
- 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 +767 -318
- spire/xls/XlsObject.py +2 -4
- spire/xls/XlsOvalShape.py +78 -20
- spire/xls/XlsPageSetup.py +67 -34
- spire/xls/XlsPageSetupBase.py +29 -58
- spire/xls/XlsPrstGeomShape.py +29 -10
- spire/xls/XlsRadioButtonShape.py +94 -22
- spire/xls/XlsRange.py +881 -1077
- spire/xls/XlsRectangleShape.py +69 -22
- spire/xls/XlsScrollBarShape.py +78 -18
- spire/xls/XlsShape.py +391 -180
- spire/xls/XlsShapeFill.py +398 -92
- spire/xls/XlsShapeLineFormat.py +201 -44
- spire/xls/XlsSpinnerShape.py +57 -14
- spire/xls/XlsStyle.py +51 -20
- spire/xls/XlsTextBoxShape.py +263 -60
- spire/xls/XlsVPageBreak.py +9 -14
- spire/xls/XlsValidation.py +318 -68
- spire/xls/XlsValidationWrapper.py +217 -49
- spire/xls/XlsWorkbook.py +529 -65
- spire/xls/XlsWorksheet.py +1211 -1128
- spire/xls/XlsWorksheetBase.py +243 -168
- spire/xls/__init__.py +529 -528
- spire/xls/autofilter/AutoFitterOptions.py +84 -0
- spire/xls/autofilter/ColorFilter.py +61 -0
- spire/xls/autofilter/CustomFilter.py +199 -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 +145 -0
- spire/xls/charts/Chart.py +369 -0
- spire/xls/charts/ChartArea.py +57 -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 +612 -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 +538 -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/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/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/RadioButtonCollection.py +139 -0
- spire/xls/collection/RangesCollection.py +555 -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/XlsCommentsCollection.py +116 -0
- spire/xls/collection/XlsDataValidationCollection.py +155 -0
- spire/xls/collection/XlsHPageBreaksCollection.py +87 -0
- spire/xls/collection/XlsHyperLinksCollection.py +104 -0
- spire/xls/collection/XlsRangesCollection.py +1634 -0
- spire/xls/collection/XlsStylesCollection.py +74 -0
- spire/xls/collection/XlsVPageBreaksCollection.py +81 -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 +123 -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 +1155 -0
- spire/xls/conditional_formatting/XlsConditionalFormats.py +679 -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 +136 -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 +104 -0
- spire/xls/pivot_tables/PivotTableStyle.py +76 -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.7.1.dist-info/METADATA +197 -0
- spire_xls-15.7.1.dist-info/RECORD +720 -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/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/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/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/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/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/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/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/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/XlsRangesCollection.py +0 -1566
- spire/xls/XlsStylesCollection.py +0 -73
- spire/xls/XlsVPageBreaksCollection.py +0 -84
- 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/{ButtonShapeCollection.py → collection/ButtonShapeCollection.py} +0 -0
- /spire/xls/{CheckBoxCollection.py → collection/CheckBoxCollection.py} +0 -0
- /spire/xls/{CollectionChangeEventArgs.py → collection/CollectionChangeEventArgs.py} +0 -0
- /spire/xls/{DataConnections.py → collection/DataConnections.py} +0 -0
- /spire/xls/{ExternalLinkCollection.py → collection/ExternalLinkCollection.py} +0 -0
- /spire/xls/{FontsCollection.py → collection/FontsCollection.py} +0 -0
- /spire/xls/{GeomertyAdjustValuesCollection.py → collection/GeomertyAdjustValuesCollection.py} +0 -0
- /spire/xls/{GroupBoxCollection.py → collection/GroupBoxCollection.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/{QueryTableCollection.py → collection/QueryTableCollection.py} +0 -0
- /spire/xls/{RectangleCollection.py → collection/RectangleCollection.py} +0 -0
- /spire/xls/{ScrollBarCollection.py → collection/ScrollBarCollection.py} +0 -0
- /spire/xls/{ShapeCollectionBase.py → collection/ShapeCollectionBase.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/{XlsChartsCollection.py → collection/XlsChartsCollection.py} +0 -0
- /spire/xls/{XlsFontsCollection.py → collection/XlsFontsCollection.py} +0 -0
- /spire/xls/{XlsHeaderFooterShapeCollection.py → collection/XlsHeaderFooterShapeCollection.py} +0 -0
- /spire/xls/{XlsPicturesCollection.py → collection/XlsPicturesCollection.py} +0 -0
- /spire/xls/{XlsWorkbookObjectsCollection.py → collection/XlsWorkbookObjectsCollection.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/{XlsPivotTablesCollection.py → collection/pivot_table/XlsPivotTablesCollection.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.7.1.dist-info}/WHEEL +0 -0
- {spire_xls-15.5.0.dist-info → spire_xls-15.7.1.dist-info}/top_level.txt +0 -0
spire/xls/XlsRange.py
CHANGED
|
@@ -3,8 +3,8 @@ from plum import dispatch
|
|
|
3
3
|
from typing import TypeVar,Union,Generic,List,Tuple
|
|
4
4
|
from spire.xls.common import *
|
|
5
5
|
from spire.xls import *
|
|
6
|
-
from spire.xls.XlsBordersCollection import *
|
|
7
|
-
from spire.xls.XlsHyperLinksCollection import *
|
|
6
|
+
from spire.xls.collection.XlsBordersCollection import *
|
|
7
|
+
from spire.xls.collection.XlsHyperLinksCollection import *
|
|
8
8
|
from ctypes import *
|
|
9
9
|
import abc
|
|
10
10
|
from spire.xls.Validation import Validation
|
|
@@ -16,9 +16,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
16
16
|
|
|
17
17
|
def GetNamedRange(self)->'INamedRange':
|
|
18
18
|
"""
|
|
19
|
-
<summary>
|
|
20
19
|
Get the named range object of current Range.
|
|
21
|
-
|
|
20
|
+
|
|
22
21
|
"""
|
|
23
22
|
from spire.xls.XlsName import XlsName
|
|
24
23
|
GetDllLibXls().XlsRange_GetNamedRange.argtypes=[c_void_p]
|
|
@@ -31,12 +30,12 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
31
30
|
|
|
32
31
|
def InsertOrUpdateCellImage(self ,stream:Stream,scale:bool):
|
|
33
32
|
"""
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
Adds CellImage from the specified file stream. this method only support WPS
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
stream: Represents image stream to set.
|
|
37
|
+
scale: scale if true scale for cell else clip the image.
|
|
38
|
+
|
|
40
39
|
"""
|
|
41
40
|
intPtrstream:c_void_p = stream.Ptr
|
|
42
41
|
|
|
@@ -47,12 +46,12 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
47
46
|
|
|
48
47
|
def InsertOrUpdateCellImage(self ,fileName:str,scale:bool):
|
|
49
48
|
"""
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
Adds CellImage from the specified file. this method only support WPS
|
|
50
|
+
|
|
51
|
+
Args:
|
|
52
|
+
fileName: Represents image path to set.
|
|
53
|
+
scale: scale if true scale for cell else clip the image.
|
|
54
|
+
|
|
56
55
|
"""
|
|
57
56
|
|
|
58
57
|
GetDllLibXls().XlsRange_InsertOrUpdateCellImageFS.argtypes=[c_void_p ,c_wchar_p,c_bool]
|
|
@@ -60,9 +59,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
60
59
|
|
|
61
60
|
def RemoveCellImage(self):
|
|
62
61
|
"""
|
|
63
|
-
<summary>
|
|
64
62
|
Remove CellImage.
|
|
65
|
-
|
|
63
|
+
|
|
66
64
|
"""
|
|
67
65
|
GetDllLibXls().XlsRange_RemoveCellImage.argtypes=[c_void_p]
|
|
68
66
|
CallCFunction(GetDllLibXls().XlsRange_RemoveCellImage,self.Ptr)
|
|
@@ -71,11 +69,14 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
71
69
|
|
|
72
70
|
def Merge(self ,range:IXLSRange)->IXLSRange:
|
|
73
71
|
"""
|
|
74
|
-
<summary>
|
|
75
72
|
Creates a merged cell from the specified Range object.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
|
|
74
|
+
Args:
|
|
75
|
+
range: The Range to merge with.
|
|
76
|
+
|
|
77
|
+
Returns:
|
|
78
|
+
Merged ranges or null if wasn't able to merge ranges.
|
|
79
|
+
|
|
79
80
|
"""
|
|
80
81
|
intPtrrange:c_void_p = range.Ptr
|
|
81
82
|
|
|
@@ -89,23 +90,24 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
89
90
|
|
|
90
91
|
def Intersect(self ,range:'IXLSRange')->'IXLSRange':
|
|
91
92
|
"""
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
93
|
+
Returns intersection of this range with the specified one.
|
|
94
|
+
|
|
95
|
+
Args:
|
|
96
|
+
range: The Range with which to intersect.
|
|
97
|
+
|
|
98
|
+
Returns:
|
|
99
|
+
Range intersection. If there is no intersection, NULL is returned.
|
|
100
|
+
Example::
|
|
101
|
+
|
|
102
|
+
#Create worksheet
|
|
103
|
+
workbook = Workbook()
|
|
104
|
+
worksheet = workbook.Worksheets[0]
|
|
105
|
+
#Get intersect range
|
|
106
|
+
range = worksheet.Range["A16:C16"]
|
|
107
|
+
commonRange = worksheet.Range["B16:D16"].Intersect(range)
|
|
108
|
+
#Save to file
|
|
109
|
+
workbook.SaveToFile("Intersect.xlsx")
|
|
110
|
+
|
|
109
111
|
"""
|
|
110
112
|
intPtrrange:c_void_p = range.Ptr
|
|
111
113
|
|
|
@@ -131,11 +133,14 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
131
133
|
|
|
132
134
|
def MeasureString(self ,measureString:str)->'SizeF':
|
|
133
135
|
"""
|
|
134
|
-
<summary>
|
|
135
136
|
Measures size of the string.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
|
|
138
|
+
Args:
|
|
139
|
+
measureString: String to measure.
|
|
140
|
+
|
|
141
|
+
Returns:
|
|
142
|
+
Size of the string.
|
|
143
|
+
|
|
139
144
|
"""
|
|
140
145
|
|
|
141
146
|
GetDllLibXls().XlsRange_MeasureString.argtypes=[c_void_p ,c_void_p]
|
|
@@ -148,22 +153,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
148
153
|
@dispatch
|
|
149
154
|
def Merge(self):
|
|
150
155
|
"""
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
</code>
|
|
165
|
-
</example>
|
|
166
|
-
</summary>
|
|
156
|
+
Creates a merged cell from the specified Range object.
|
|
157
|
+
Example::
|
|
158
|
+
|
|
159
|
+
#Create worksheet
|
|
160
|
+
workbook = Workbook()
|
|
161
|
+
worksheet = workbook.Worksheets[0]
|
|
162
|
+
#Set text
|
|
163
|
+
worksheet["A1"].Text = "Merged cell"
|
|
164
|
+
#Merge cells
|
|
165
|
+
worksheet["A1:B1"].Merge()
|
|
166
|
+
#Save to file
|
|
167
|
+
workbook.SaveToFile("Merge.xlsx")
|
|
168
|
+
|
|
167
169
|
"""
|
|
168
170
|
GetDllLibXls().XlsRange_Merge1.argtypes=[c_void_p]
|
|
169
171
|
CallCFunction(GetDllLibXls().XlsRange_Merge1, self.Ptr)
|
|
@@ -179,24 +181,23 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
179
181
|
|
|
180
182
|
def Merge(self ,clearCells:bool):
|
|
181
183
|
"""
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
<param name="clearCells">Indicates whether to clear unnecessary cells.</param>
|
|
184
|
+
Creates a merged cell from the specified Range object.
|
|
185
|
+
|
|
186
|
+
Args:
|
|
187
|
+
clearCells: Indicates whether to clear unnecessary cells.
|
|
188
|
+
Example::
|
|
189
|
+
|
|
190
|
+
#Create worksheet
|
|
191
|
+
workbook = Workbook()
|
|
192
|
+
worksheet = workbook.Worksheets[0]
|
|
193
|
+
#Set text
|
|
194
|
+
worksheet["A1"].Text = "Merged cell"
|
|
195
|
+
worksheet["B1"].Text = "sample"
|
|
196
|
+
#Merge cells
|
|
197
|
+
worksheet["A1:B1"].Merge(true)
|
|
198
|
+
#Save to file
|
|
199
|
+
workbook.SaveToFile("Merge.xlsx")
|
|
200
|
+
|
|
200
201
|
"""
|
|
201
202
|
|
|
202
203
|
GetDllLibXls().XlsRange_MergeC.argtypes=[c_void_p ,c_bool]
|
|
@@ -204,9 +205,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
204
205
|
|
|
205
206
|
def PartialClear(self):
|
|
206
207
|
"""
|
|
207
|
-
<summary>
|
|
208
208
|
Partially clear range.
|
|
209
|
-
|
|
209
|
+
|
|
210
210
|
"""
|
|
211
211
|
GetDllLibXls().XlsRange_PartialClear.argtypes=[c_void_p]
|
|
212
212
|
CallCFunction(GetDllLibXls().XlsRange_PartialClear, self.Ptr)
|
|
@@ -214,11 +214,12 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
214
214
|
|
|
215
215
|
def TextPartReplace(self ,oldPartValue:str,newPartValue:str):
|
|
216
216
|
"""
|
|
217
|
-
<summary>
|
|
218
217
|
Replaces cell's part text and reserve text's format.
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
218
|
+
|
|
219
|
+
Args:
|
|
220
|
+
oldPartValue: Part value of cell's text to search for.
|
|
221
|
+
newPartValue: The replacement value.
|
|
222
|
+
|
|
222
223
|
"""
|
|
223
224
|
|
|
224
225
|
GetDllLibXls().XlsRange_TextPartReplace.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
@@ -252,10 +253,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
252
253
|
|
|
253
254
|
def CombinedAddress(self)->str:
|
|
254
255
|
"""
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
Read-only String.
|
|
258
|
-
</summary>
|
|
256
|
+
Returns the combined range reference in the language. Read-only String.
|
|
257
|
+
|
|
259
258
|
"""
|
|
260
259
|
GetDllLibXls().XlsRange_get_CombinedAddress.argtypes=[c_void_p]
|
|
261
260
|
GetDllLibXls().XlsRange_get_CombinedAddress.restype=c_void_p
|
|
@@ -265,33 +264,29 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
265
264
|
|
|
266
265
|
def UnMerge(self):
|
|
267
266
|
"""
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
</code>
|
|
284
|
-
</example>
|
|
285
|
-
</summary>
|
|
267
|
+
Separates a merged area into individual cells.
|
|
268
|
+
Example::
|
|
269
|
+
|
|
270
|
+
#Create worksheet
|
|
271
|
+
workbook = Workbook()
|
|
272
|
+
worksheet = workbook.Worksheets[0]
|
|
273
|
+
#Set text
|
|
274
|
+
worksheet["A1"].Text = "Merged cell"
|
|
275
|
+
#Merge cells
|
|
276
|
+
worksheet["A1:B1"].Merge(true)
|
|
277
|
+
#Unmerge cells
|
|
278
|
+
worksheet["A1:B1"].UnMerge()
|
|
279
|
+
#Save to file
|
|
280
|
+
workbook.SaveToFile("UnMerge.xlsx")
|
|
281
|
+
|
|
286
282
|
"""
|
|
287
283
|
GetDllLibXls().XlsRange_UnMerge.argtypes=[c_void_p]
|
|
288
284
|
CallCFunction(GetDllLibXls().XlsRange_UnMerge, self.Ptr)
|
|
289
285
|
|
|
290
286
|
def ReparseFormulaString(self):
|
|
291
287
|
"""
|
|
292
|
-
<summary>
|
|
293
288
|
Reparses formula.
|
|
294
|
-
|
|
289
|
+
|
|
295
290
|
"""
|
|
296
291
|
GetDllLibXls().XlsRange_ReparseFormulaString.argtypes=[c_void_p]
|
|
297
292
|
CallCFunction(GetDllLibXls().XlsRange_ReparseFormulaString, self.Ptr)
|
|
@@ -360,12 +355,13 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
360
355
|
|
|
361
356
|
def Replace(self ,oldValue:str,newValues:List[str],isVertical:bool):
|
|
362
357
|
"""
|
|
363
|
-
<summary>
|
|
364
358
|
Replaces cells' values with new data.
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
359
|
+
|
|
360
|
+
Args:
|
|
361
|
+
oldValue: Value to search for.
|
|
362
|
+
newValues: The replacement value.
|
|
363
|
+
isVertical: Indicates whether to insert values vertically or horizontally.
|
|
364
|
+
|
|
369
365
|
"""
|
|
370
366
|
#arraynewValues:ArrayTypenewValues = ""
|
|
371
367
|
countnewValues = len(newValues)
|
|
@@ -382,11 +378,12 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
382
378
|
|
|
383
379
|
def Replace(self ,oldValue:str,newValue:str):
|
|
384
380
|
"""
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
381
|
+
Replaces cells' values with new data.
|
|
382
|
+
|
|
383
|
+
Args:
|
|
384
|
+
oldValue: Value to search for.
|
|
385
|
+
newValue: The replacement value.
|
|
386
|
+
|
|
390
387
|
"""
|
|
391
388
|
|
|
392
389
|
GetDllLibXls().XlsRange_ReplaceON.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
@@ -396,12 +393,13 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
396
393
|
|
|
397
394
|
def Replace(self ,oldValue:str,newValues:List[float],isVertical:bool):
|
|
398
395
|
"""
|
|
399
|
-
<summary>
|
|
400
396
|
Replaces cells' values with new data.
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
397
|
+
|
|
398
|
+
Args:
|
|
399
|
+
oldValue: Value to search for.
|
|
400
|
+
newValues: DataColumn to replace.
|
|
401
|
+
isFieldNamesShown: Indicates whether to insert values vertically or horizontally.
|
|
402
|
+
|
|
405
403
|
"""
|
|
406
404
|
#arraynewValues:ArrayTypenewValues = ""
|
|
407
405
|
countnewValues = len(newValues)
|
|
@@ -418,12 +416,13 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
418
416
|
|
|
419
417
|
def Replace(self ,oldValue:str,newValues:List[int],isVertical:bool):
|
|
420
418
|
"""
|
|
421
|
-
<summary>
|
|
422
419
|
Replaces cells' values with new data.
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
420
|
+
|
|
421
|
+
Args:
|
|
422
|
+
oldValue: Value to search for.
|
|
423
|
+
newValues: The replacement value.
|
|
424
|
+
isVertical: Indicates whether to insert values vertically or horizontally.
|
|
425
|
+
|
|
427
426
|
"""
|
|
428
427
|
#arraynewValues:ArrayTypenewValues = ""
|
|
429
428
|
countnewValues = len(newValues)
|
|
@@ -457,11 +456,12 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
457
456
|
|
|
458
457
|
def Replace(self ,oldValue:str,newValue:DateTime):
|
|
459
458
|
"""
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
459
|
+
Replaces cells' values with new data.
|
|
460
|
+
|
|
461
|
+
Args:
|
|
462
|
+
oldValue: Value to search for.
|
|
463
|
+
newValue: The replacement value.
|
|
464
|
+
|
|
465
465
|
"""
|
|
466
466
|
intPtrnewValue:c_void_p = newValue.Ptr
|
|
467
467
|
|
|
@@ -472,11 +472,12 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
472
472
|
|
|
473
473
|
def Replace(self ,oldValue:str,newValue:float):
|
|
474
474
|
"""
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
475
|
+
Replaces cells' values with new data.
|
|
476
|
+
|
|
477
|
+
Args:
|
|
478
|
+
oldValue: Value to search for.
|
|
479
|
+
newValue: The replacement value.
|
|
480
|
+
|
|
480
481
|
"""
|
|
481
482
|
|
|
482
483
|
GetDllLibXls().XlsRange_ReplaceON11.argtypes=[c_void_p ,c_void_p,c_double]
|
|
@@ -545,13 +546,14 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
545
546
|
|
|
546
547
|
def UpdateRange(self ,startRow:int,startColumn:int,endRow:int,endColumn:int):
|
|
547
548
|
"""
|
|
548
|
-
<summary>
|
|
549
549
|
Update region of range
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
550
|
+
|
|
551
|
+
Args:
|
|
552
|
+
startRow: first Row
|
|
553
|
+
startColumn: first Column
|
|
554
|
+
endRow: last Row
|
|
555
|
+
endColumn: last Column
|
|
556
|
+
|
|
555
557
|
"""
|
|
556
558
|
|
|
557
559
|
GetDllLibXls().XlsRange_UpdateRange.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
|
|
@@ -559,9 +561,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
559
561
|
|
|
560
562
|
def ConvertToNumber(self):
|
|
561
563
|
"""
|
|
562
|
-
<summary>
|
|
563
564
|
Convert number that stored as text to number
|
|
564
|
-
|
|
565
|
+
|
|
565
566
|
"""
|
|
566
567
|
GetDllLibXls().XlsRange_ConvertToNumber.argtypes=[c_void_p]
|
|
567
568
|
CallCFunction(GetDllLibXls().XlsRange_ConvertToNumber, self.Ptr)
|
|
@@ -578,11 +579,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
578
579
|
|
|
579
580
|
def GetConditionFormatsStyle(self)->'CellStyle':
|
|
580
581
|
"""
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
If style of every cell is not same, return null.
|
|
584
|
-
If current range without condition format, return null.
|
|
585
|
-
</summary>
|
|
582
|
+
Get the calculated condition format style of current Range. If style of every cell is not same, return null. If current range without condition format, return null.
|
|
583
|
+
|
|
586
584
|
"""
|
|
587
585
|
GetDllLibXls().XlsRange_GetConditionFormatsStyle.argtypes=[c_void_p]
|
|
588
586
|
GetDllLibXls().XlsRange_GetConditionFormatsStyle.restype=c_void_p
|
|
@@ -595,18 +593,15 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
595
593
|
|
|
596
594
|
def RangeR1C1Address(self)->str:
|
|
597
595
|
"""
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
</code>
|
|
608
|
-
</example>
|
|
609
|
-
</summary>
|
|
596
|
+
Returns the range reference using R1C1 notation.
|
|
597
|
+
Example::
|
|
598
|
+
|
|
599
|
+
#Create worksheet
|
|
600
|
+
workbook = Workbook()
|
|
601
|
+
worksheet = workbook.Worksheets[0]
|
|
602
|
+
#Get RangeR1C1Address
|
|
603
|
+
address = worksheet.Range[3, 4].RangeR1C1Address
|
|
604
|
+
|
|
610
605
|
"""
|
|
611
606
|
GetDllLibXls().XlsRange_get_RangeR1C1Address.argtypes=[c_void_p]
|
|
612
607
|
GetDllLibXls().XlsRange_get_RangeR1C1Address.restype=c_void_p
|
|
@@ -618,18 +613,15 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
618
613
|
|
|
619
614
|
def RangeR1C1AddressLocal(self)->str:
|
|
620
615
|
"""
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
</code>
|
|
631
|
-
</example>
|
|
632
|
-
</summary>
|
|
616
|
+
Returns the range reference using R1C1 notation.
|
|
617
|
+
Example::
|
|
618
|
+
|
|
619
|
+
#Create worksheet
|
|
620
|
+
workbook = Workbook()
|
|
621
|
+
worksheet = workbook.Worksheets[0]
|
|
622
|
+
#Get RangeR1C1AddressLocal
|
|
623
|
+
address = worksheet.Range[3, 4].RangeR1C1Address
|
|
624
|
+
|
|
633
625
|
"""
|
|
634
626
|
GetDllLibXls().XlsRange_get_RangeR1C1AddressLocal.argtypes=[c_void_p]
|
|
635
627
|
GetDllLibXls().XlsRange_get_RangeR1C1AddressLocal.restype=c_void_p
|
|
@@ -655,9 +647,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
655
647
|
|
|
656
648
|
def HtmlString(self)->str:
|
|
657
649
|
"""
|
|
658
|
-
<summary>
|
|
659
650
|
Gets and sets the html string which contains data and some formattings in this cell.
|
|
660
|
-
|
|
651
|
+
|
|
661
652
|
"""
|
|
662
653
|
GetDllLibXls().XlsRange_get_HtmlString.argtypes=[c_void_p]
|
|
663
654
|
GetDllLibXls().XlsRange_get_HtmlString.restype=c_void_p
|
|
@@ -673,9 +664,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
673
664
|
@property
|
|
674
665
|
def Row(self)->int:
|
|
675
666
|
"""
|
|
676
|
-
<summary>
|
|
677
667
|
Returns the number of the first row of the first area in the range.
|
|
678
|
-
|
|
668
|
+
|
|
679
669
|
"""
|
|
680
670
|
GetDllLibXls().XlsRange_get_Row.argtypes=[c_void_p]
|
|
681
671
|
GetDllLibXls().XlsRange_get_Row.restype=c_int
|
|
@@ -685,14 +675,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
685
675
|
@property
|
|
686
676
|
def RowGroupLevel(self)->int:
|
|
687
677
|
"""
|
|
688
|
-
<summary>
|
|
689
678
|
Row group level.
|
|
690
|
-
|
|
691
|
-
<remarks>
|
|
692
|
-
-1 - column group is not same.
|
|
693
|
-
0 - Not group
|
|
694
|
-
1 - 7 - group level.
|
|
695
|
-
</remarks>
|
|
679
|
+
|
|
696
680
|
"""
|
|
697
681
|
GetDllLibXls().XlsRange_get_RowGroupLevel.argtypes=[c_void_p]
|
|
698
682
|
GetDllLibXls().XlsRange_get_RowGroupLevel.restype=c_int
|
|
@@ -702,22 +686,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
702
686
|
@property
|
|
703
687
|
def RowHeight(self)->float:
|
|
704
688
|
"""
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
</code>
|
|
719
|
-
</example>
|
|
720
|
-
</summary>
|
|
689
|
+
Returns the height of all the rows in the range specified, measured in points.
|
|
690
|
+
Example::
|
|
691
|
+
|
|
692
|
+
#Create worksheet
|
|
693
|
+
workbook = Workbook()
|
|
694
|
+
worksheet = workbook.Worksheets[0]
|
|
695
|
+
#Set text
|
|
696
|
+
worksheet["A1"].Text = "Test"
|
|
697
|
+
#Set row height
|
|
698
|
+
worksheet["A1"].RowHeight = 30
|
|
699
|
+
#Save to file
|
|
700
|
+
workbook.SaveToFile("RowHeight.xlsx")
|
|
701
|
+
|
|
721
702
|
"""
|
|
722
703
|
GetDllLibXls().XlsRange_get_RowHeight.argtypes=[c_void_p]
|
|
723
704
|
GetDllLibXls().XlsRange_get_RowHeight.restype=c_double
|
|
@@ -811,9 +792,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
811
792
|
|
|
812
793
|
def Text(self)->str:
|
|
813
794
|
"""
|
|
814
|
-
<summary>
|
|
815
795
|
Gets / sets text of range.
|
|
816
|
-
|
|
796
|
+
|
|
817
797
|
"""
|
|
818
798
|
GetDllLibXls().XlsRange_get_Text.argtypes=[c_void_p]
|
|
819
799
|
GetDllLibXls().XlsRange_get_Text.restype=c_void_p
|
|
@@ -896,9 +876,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
896
876
|
|
|
897
877
|
def TimeSpanValue(self)->'TimeSpan':
|
|
898
878
|
"""
|
|
899
|
-
<summary>
|
|
900
879
|
Gets or sets timespan value of cell.
|
|
901
|
-
|
|
880
|
+
|
|
902
881
|
"""
|
|
903
882
|
GetDllLibXls().XlsRange_get_TimeSpanValue.argtypes=[c_void_p]
|
|
904
883
|
GetDllLibXls().XlsRange_get_TimeSpanValue.restype=c_void_p
|
|
@@ -916,21 +895,18 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
916
895
|
|
|
917
896
|
def Value(self)->str:
|
|
918
897
|
"""
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
</code>
|
|
932
|
-
</example>
|
|
933
|
-
</summary>
|
|
898
|
+
Returns or sets the value of the specified range.
|
|
899
|
+
Example::
|
|
900
|
+
|
|
901
|
+
#Create worksheet
|
|
902
|
+
workbook = Workbook()
|
|
903
|
+
worksheet = workbook.Worksheets[0]
|
|
904
|
+
#Set value of the range
|
|
905
|
+
XlsRange range= worksheet.Range[3, 1]
|
|
906
|
+
range.Value = "1/1/2015"
|
|
907
|
+
#Save to file
|
|
908
|
+
workbook.SaveToFile("Value.xlsx")
|
|
909
|
+
|
|
934
910
|
"""
|
|
935
911
|
GetDllLibXls().XlsRange_get_Value.argtypes=[c_void_p]
|
|
936
912
|
GetDllLibXls().XlsRange_get_Value.restype=c_void_p
|
|
@@ -946,23 +922,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
946
922
|
@property
|
|
947
923
|
def Value2(self)->'SpireObject':
|
|
948
924
|
"""
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
Console.WriteLine(worksheet["A3"].HasBoolean);
|
|
963
|
-
</code>
|
|
964
|
-
</example>
|
|
965
|
-
</summary>
|
|
925
|
+
Returns or sets the cell value. It's not use for current and datetime types.
|
|
926
|
+
Example::
|
|
927
|
+
|
|
928
|
+
#Create worksheet
|
|
929
|
+
workbook = Workbook()
|
|
930
|
+
worksheet = workbook.Worksheets[0]
|
|
931
|
+
#Assigning Value2 property of the Range
|
|
932
|
+
worksheet["A1"].Value2 = DateTime.Now
|
|
933
|
+
worksheet["A3"].Value2 = false
|
|
934
|
+
#Checking Range types
|
|
935
|
+
print(worksheet["A1"].HasDateTime)
|
|
936
|
+
print(worksheet["A3"].HasBoolean)
|
|
937
|
+
|
|
966
938
|
"""
|
|
967
939
|
GetDllLibXls().XlsRange_get_Value2.argtypes=[c_void_p]
|
|
968
940
|
GetDllLibXls().XlsRange_get_Value2.restype=c_void_p
|
|
@@ -980,22 +952,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
980
952
|
|
|
981
953
|
def VerticalAlignment(self)->'VerticalAlignType':
|
|
982
954
|
"""
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
</code>
|
|
997
|
-
</example>
|
|
998
|
-
</summary>
|
|
955
|
+
Returns or sets the vertical alignment of the specified object.
|
|
956
|
+
Example::
|
|
957
|
+
|
|
958
|
+
#Create worksheet
|
|
959
|
+
workbook = Workbook()
|
|
960
|
+
worksheet = workbook.Worksheets[0]
|
|
961
|
+
#Set text
|
|
962
|
+
worksheet["A1"].Text = "Test"
|
|
963
|
+
#Set alignment
|
|
964
|
+
worksheet["A1"].VerticalAlignment = VerticalAlignType.Top
|
|
965
|
+
#Save to file
|
|
966
|
+
workbook.SaveToFile("VerticalAlignment.xlsx")
|
|
967
|
+
|
|
999
968
|
"""
|
|
1000
969
|
GetDllLibXls().XlsRange_get_VerticalAlignment.argtypes=[c_void_p]
|
|
1001
970
|
GetDllLibXls().XlsRange_get_VerticalAlignment.restype=c_int
|
|
@@ -1012,10 +981,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1012
981
|
|
|
1013
982
|
def Worksheet(self)->'IWorksheet':
|
|
1014
983
|
"""
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
containing the specified range.
|
|
1018
|
-
</summary>
|
|
984
|
+
Returns a worksheet object that represents the worksheet containing the specified range.
|
|
985
|
+
|
|
1019
986
|
"""
|
|
1020
987
|
GetDllLibXls().XlsRange_get_Worksheet.argtypes=[c_void_p]
|
|
1021
988
|
GetDllLibXls().XlsRange_get_Worksheet.restype=c_void_p
|
|
@@ -1058,9 +1025,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1058
1025
|
|
|
1059
1026
|
def ClearConditionalFormats(self):
|
|
1060
1027
|
"""
|
|
1061
|
-
<summary>
|
|
1062
1028
|
Clears conditional formats.
|
|
1063
|
-
|
|
1029
|
+
|
|
1064
1030
|
"""
|
|
1065
1031
|
GetDllLibXls().XlsRange_ClearConditionalFormats.argtypes=[c_void_p]
|
|
1066
1032
|
CallCFunction(GetDllLibXls().XlsRange_ClearConditionalFormats, self.Ptr)
|
|
@@ -1068,10 +1034,11 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1068
1034
|
|
|
1069
1035
|
def GetRectangles(self)->List['Rectangle']:
|
|
1070
1036
|
"""
|
|
1071
|
-
<summary>
|
|
1072
1037
|
Gets rectangle information of current range.
|
|
1073
|
-
|
|
1074
|
-
|
|
1038
|
+
|
|
1039
|
+
Returns:
|
|
1040
|
+
Rectangles information
|
|
1041
|
+
|
|
1075
1042
|
"""
|
|
1076
1043
|
GetDllLibXls().XlsRange_GetRectangles.argtypes=[c_void_p]
|
|
1077
1044
|
GetDllLibXls().XlsRange_GetRectangles.restype=IntPtrArray
|
|
@@ -1082,10 +1049,11 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1082
1049
|
|
|
1083
1050
|
def GetRectanglesCount(self)->int:
|
|
1084
1051
|
"""
|
|
1085
|
-
<summary>
|
|
1086
1052
|
Returns number of rectangles..
|
|
1087
|
-
|
|
1088
|
-
|
|
1053
|
+
|
|
1054
|
+
Returns:
|
|
1055
|
+
Number of rectangles.
|
|
1056
|
+
|
|
1089
1057
|
"""
|
|
1090
1058
|
GetDllLibXls().XlsRange_GetRectanglesCount.argtypes=[c_void_p]
|
|
1091
1059
|
GetDllLibXls().XlsRange_GetRectanglesCount.restype=c_int
|
|
@@ -1096,9 +1064,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1096
1064
|
|
|
1097
1065
|
def WorksheetName(self)->str:
|
|
1098
1066
|
"""
|
|
1099
|
-
<summary>
|
|
1100
1067
|
Returns name of the parent worksheet.
|
|
1101
|
-
|
|
1068
|
+
|
|
1102
1069
|
"""
|
|
1103
1070
|
GetDllLibXls().XlsRange_get_WorksheetName.argtypes=[c_void_p]
|
|
1104
1071
|
GetDllLibXls().XlsRange_get_WorksheetName.restype=c_void_p
|
|
@@ -1109,9 +1076,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1109
1076
|
@property
|
|
1110
1077
|
def CellsCount(self)->int:
|
|
1111
1078
|
"""
|
|
1112
|
-
<summary>
|
|
1113
1079
|
Gets number of cells.
|
|
1114
|
-
|
|
1080
|
+
|
|
1115
1081
|
"""
|
|
1116
1082
|
GetDllLibXls().XlsRange_get_CellsCount.argtypes=[c_void_p]
|
|
1117
1083
|
GetDllLibXls().XlsRange_get_CellsCount.restype=c_int
|
|
@@ -1122,9 +1088,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1122
1088
|
|
|
1123
1089
|
def RangeGlobalAddress2007(self)->str:
|
|
1124
1090
|
"""
|
|
1125
|
-
<summary>
|
|
1126
1091
|
Gets address global in the format required by Excel 2007.
|
|
1127
|
-
|
|
1092
|
+
|
|
1128
1093
|
"""
|
|
1129
1094
|
GetDllLibXls().XlsRange_get_RangeGlobalAddress2007.argtypes=[c_void_p]
|
|
1130
1095
|
GetDllLibXls().XlsRange_get_RangeGlobalAddress2007.restype=c_void_p
|
|
@@ -1134,9 +1099,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1134
1099
|
|
|
1135
1100
|
def CalculateAllValue(self):
|
|
1136
1101
|
"""
|
|
1137
|
-
<summary>
|
|
1138
1102
|
Caculate all formula for the specified range
|
|
1139
|
-
|
|
1103
|
+
|
|
1140
1104
|
"""
|
|
1141
1105
|
GetDllLibXls().XlsRange_CalculateAllValue.argtypes=[c_void_p]
|
|
1142
1106
|
CallCFunction(GetDllLibXls().XlsRange_CalculateAllValue, self.Ptr)
|
|
@@ -1145,23 +1109,23 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1145
1109
|
|
|
1146
1110
|
def Activate(self ,scroll:bool)->IXLSRange:
|
|
1147
1111
|
"""
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1112
|
+
Activates a single cell, scroll to it and activates the corresponding sheet. To select a range of cells, use the Select method.
|
|
1113
|
+
|
|
1114
|
+
Args:
|
|
1115
|
+
scroll: True to scroll to the cell
|
|
1116
|
+
|
|
1117
|
+
Returns:
|
|
1118
|
+
Returns the active cell.
|
|
1119
|
+
Example::
|
|
1120
|
+
|
|
1121
|
+
#Create worksheet
|
|
1122
|
+
workbook = Workbook()
|
|
1123
|
+
worksheet = workbook.Worksheets[0]
|
|
1124
|
+
#Activates 'F1' cell.
|
|
1125
|
+
worksheet.Range["F1"].Activate(true)
|
|
1126
|
+
#Save to file
|
|
1127
|
+
workbook.SaveToFile("Activate.xlsx")
|
|
1128
|
+
|
|
1165
1129
|
"""
|
|
1166
1130
|
|
|
1167
1131
|
GetDllLibXls().XlsRange_Activate.argtypes=[c_void_p ,c_bool]
|
|
@@ -1175,10 +1139,11 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1175
1139
|
|
|
1176
1140
|
def Activate(self)->IXLSRange:
|
|
1177
1141
|
"""
|
|
1178
|
-
<summary>
|
|
1179
1142
|
Active single cell in the worksheet
|
|
1180
|
-
|
|
1181
|
-
|
|
1143
|
+
|
|
1144
|
+
Returns:
|
|
1145
|
+
Returns the active cell.
|
|
1146
|
+
|
|
1182
1147
|
"""
|
|
1183
1148
|
GetDllLibXls().XlsRange_Activate1.argtypes=[c_void_p]
|
|
1184
1149
|
GetDllLibXls().XlsRange_Activate1.restype=c_void_p
|
|
@@ -1191,10 +1156,11 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1191
1156
|
|
|
1192
1157
|
def AddComment(self)->ICommentShape:
|
|
1193
1158
|
"""
|
|
1194
|
-
<summary>
|
|
1195
1159
|
Adds a comment to the range.
|
|
1196
|
-
|
|
1197
|
-
|
|
1160
|
+
|
|
1161
|
+
Returns:
|
|
1162
|
+
Created comment or exists one.
|
|
1163
|
+
|
|
1198
1164
|
"""
|
|
1199
1165
|
GetDllLibXls().XlsRange_AddComment1.argtypes=[c_void_p]
|
|
1200
1166
|
GetDllLibXls().XlsRange_AddComment1.restype=c_void_p
|
|
@@ -1205,43 +1171,37 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1205
1171
|
|
|
1206
1172
|
def AutoFitColumns(self):
|
|
1207
1173
|
"""
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
</code>
|
|
1221
|
-
</example>
|
|
1222
|
-
</summary>
|
|
1174
|
+
Changes the width of the columns in the range in the range to achieve the best fit.
|
|
1175
|
+
Example::
|
|
1176
|
+
|
|
1177
|
+
#Create worksheet
|
|
1178
|
+
workbook = Workbook()
|
|
1179
|
+
worksheet = workbook.Worksheets[0]
|
|
1180
|
+
#Auto-fit columns
|
|
1181
|
+
worksheet.Range["B4"].Text = "Fit the content to column"
|
|
1182
|
+
worksheet.Range["B4"].AutoFitColumns()
|
|
1183
|
+
#Save to file
|
|
1184
|
+
workbook.SaveToFile("AutoFitRows.xlsx")
|
|
1185
|
+
|
|
1223
1186
|
"""
|
|
1224
1187
|
GetDllLibXls().XlsRange_AutoFitColumns.argtypes=[c_void_p]
|
|
1225
1188
|
CallCFunction(GetDllLibXls().XlsRange_AutoFitColumns, self.Ptr)
|
|
1226
1189
|
|
|
1227
1190
|
def AutoFitRows(self):
|
|
1228
1191
|
"""
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
</code>
|
|
1243
|
-
</example>
|
|
1244
|
-
</summary>
|
|
1192
|
+
Changes the width of the height of the rows in the range to achieve the best fit.
|
|
1193
|
+
Example::
|
|
1194
|
+
|
|
1195
|
+
#Create worksheet
|
|
1196
|
+
workbook = Workbook()
|
|
1197
|
+
worksheet = workbook.Worksheets[0]
|
|
1198
|
+
#Auto-fit rows
|
|
1199
|
+
worksheet.Range["A2"].Text = "Fit the content to row"
|
|
1200
|
+
worksheet.Range["A2"].IsWrapText = true
|
|
1201
|
+
worksheet.Range["A2"].AutoFitRows()
|
|
1202
|
+
#Save to file
|
|
1203
|
+
workbook.SaveToFile("AutoFitRows.xlsx")
|
|
1204
|
+
|
|
1245
1205
|
"""
|
|
1246
1206
|
GetDllLibXls().XlsRange_AutoFitRows.argtypes=[c_void_p]
|
|
1247
1207
|
CallCFunction(GetDllLibXls().XlsRange_AutoFitRows, self.Ptr)
|
|
@@ -1249,25 +1209,22 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1249
1209
|
@dispatch
|
|
1250
1210
|
def BorderAround(self):
|
|
1251
1211
|
"""
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
</code>
|
|
1269
|
-
</example>
|
|
1270
|
-
</summary>
|
|
1212
|
+
Sets around border for current range.
|
|
1213
|
+
Example::
|
|
1214
|
+
|
|
1215
|
+
#Create worksheet
|
|
1216
|
+
workbook = Workbook()
|
|
1217
|
+
worksheet = workbook.Worksheets[0]
|
|
1218
|
+
#Set text
|
|
1219
|
+
worksheet["C2"].Text = "Sample"
|
|
1220
|
+
worksheet["D2"].Text = "text"
|
|
1221
|
+
worksheet["C3"].Text = "in"
|
|
1222
|
+
worksheet["D3"].Text = "cell"
|
|
1223
|
+
#Set border
|
|
1224
|
+
worksheet["C2:D3"].BorderAround()
|
|
1225
|
+
#Save to file
|
|
1226
|
+
workbook.SaveToFile("BorderAround.xlsx")
|
|
1227
|
+
|
|
1271
1228
|
"""
|
|
1272
1229
|
GetDllLibXls().XlsRange_BorderAround.argtypes=[c_void_p]
|
|
1273
1230
|
CallCFunction(GetDllLibXls().XlsRange_BorderAround, self.Ptr)
|
|
@@ -1276,26 +1233,25 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1276
1233
|
|
|
1277
1234
|
def BorderAround(self ,borderLine:LineStyleType):
|
|
1278
1235
|
"""
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
<param name="borderLine">Represents border line.</param>
|
|
1236
|
+
Sets around border for current range.
|
|
1237
|
+
|
|
1238
|
+
Args:
|
|
1239
|
+
borderLine: Represents border line.
|
|
1240
|
+
Example::
|
|
1241
|
+
|
|
1242
|
+
#Create worksheet
|
|
1243
|
+
workbook = Workbook()
|
|
1244
|
+
worksheet = workbook.Worksheets[0]
|
|
1245
|
+
#Set text
|
|
1246
|
+
worksheet["C2"].Text = "Sample"
|
|
1247
|
+
worksheet["D2"].Text = "text"
|
|
1248
|
+
worksheet["C3"].Text = "in"
|
|
1249
|
+
worksheet["D3"].Text = "cell"
|
|
1250
|
+
#Set border
|
|
1251
|
+
worksheet["C2:D3"].BorderAround(LineStyleType.Thick)
|
|
1252
|
+
#Save to file
|
|
1253
|
+
workbook.SaveToFile("BorderAround.xlsx")
|
|
1254
|
+
|
|
1299
1255
|
"""
|
|
1300
1256
|
enumborderLine:c_int = borderLine.value
|
|
1301
1257
|
|
|
@@ -1306,27 +1262,26 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1306
1262
|
|
|
1307
1263
|
def BorderAround(self ,borderLine:LineStyleType,borderColor:Color):
|
|
1308
1264
|
"""
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
<param name="borderColor">Represents border color.</param>
|
|
1265
|
+
Sets around border for current range.
|
|
1266
|
+
|
|
1267
|
+
Args:
|
|
1268
|
+
borderLine: Represents border line.
|
|
1269
|
+
borderColor: Represents border color.
|
|
1270
|
+
Example::
|
|
1271
|
+
|
|
1272
|
+
#Create worksheet
|
|
1273
|
+
workbook = Workbook()
|
|
1274
|
+
worksheet = workbook.Worksheets[0]
|
|
1275
|
+
#Set text
|
|
1276
|
+
worksheet["C2"].Text = "Sample"
|
|
1277
|
+
worksheet["D2"].Text = "text"
|
|
1278
|
+
worksheet["C3"].Text = "in"
|
|
1279
|
+
worksheet["D3"].Text = "cell"
|
|
1280
|
+
#Set border
|
|
1281
|
+
worksheet["C2:D3"].BorderAround(LineStyleType.Thick , Color.Red)
|
|
1282
|
+
#Save to file
|
|
1283
|
+
workbook.SaveToFile("BorderAround.xlsx")
|
|
1284
|
+
|
|
1330
1285
|
"""
|
|
1331
1286
|
enumborderLine:c_int = borderLine.value
|
|
1332
1287
|
intPtrborderColor:c_void_p = borderColor.Ptr
|
|
@@ -1338,27 +1293,26 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1338
1293
|
|
|
1339
1294
|
def BorderAround(self ,borderLine:LineStyleType,borderColor:ExcelColors):
|
|
1340
1295
|
"""
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
<param name="borderColor">Represents border color as ExcelColors.</param>
|
|
1296
|
+
Sets around border for current range.
|
|
1297
|
+
|
|
1298
|
+
Args:
|
|
1299
|
+
borderLine: Represents border line.
|
|
1300
|
+
borderColor: Represents border color as ExcelColors.
|
|
1301
|
+
Example::
|
|
1302
|
+
|
|
1303
|
+
#Create worksheet
|
|
1304
|
+
workbook = Workbook()
|
|
1305
|
+
worksheet = workbook.Worksheets[0]
|
|
1306
|
+
#Set text
|
|
1307
|
+
worksheet["C2"].Text = "Sample"
|
|
1308
|
+
worksheet["D2"].Text = "text"
|
|
1309
|
+
worksheet["C3"].Text = "in"
|
|
1310
|
+
worksheet["D3"].Text = "cell"
|
|
1311
|
+
#Set border
|
|
1312
|
+
worksheet["C2:D3"].BorderAround(LineStyleType.Thick , ExcelColors.Red)
|
|
1313
|
+
#Save to file
|
|
1314
|
+
workbook.SaveToFile("BorderAround.xlsx")
|
|
1315
|
+
|
|
1362
1316
|
"""
|
|
1363
1317
|
enumborderLine:c_int = borderLine.value
|
|
1364
1318
|
enumborderColor:c_int = borderColor.value
|
|
@@ -1369,25 +1323,22 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1369
1323
|
@dispatch
|
|
1370
1324
|
def BorderInside(self):
|
|
1371
1325
|
"""
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
</code>
|
|
1389
|
-
</example>
|
|
1390
|
-
</summary>
|
|
1326
|
+
Sets inside border for current range.
|
|
1327
|
+
Example::
|
|
1328
|
+
|
|
1329
|
+
#Create worksheet
|
|
1330
|
+
workbook = Workbook()
|
|
1331
|
+
worksheet = workbook.Worksheets[0]
|
|
1332
|
+
#Set text
|
|
1333
|
+
worksheet["C2"].Text = "Sample"
|
|
1334
|
+
worksheet["D2"].Text = "text"
|
|
1335
|
+
worksheet["C3"].Text = "in"
|
|
1336
|
+
worksheet["D3"].Text = "cell"
|
|
1337
|
+
#Set border
|
|
1338
|
+
worksheet["C2:D3"].BorderInside()
|
|
1339
|
+
#Save to file
|
|
1340
|
+
workbook.SaveToFile("BorderInside.xlsx")
|
|
1341
|
+
|
|
1391
1342
|
"""
|
|
1392
1343
|
GetDllLibXls().XlsRange_BorderInside.argtypes=[c_void_p]
|
|
1393
1344
|
CallCFunction(GetDllLibXls().XlsRange_BorderInside, self.Ptr)
|
|
@@ -1396,26 +1347,25 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1396
1347
|
|
|
1397
1348
|
def BorderInside(self ,borderLine:LineStyleType):
|
|
1398
1349
|
"""
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
<param name="borderLine">Represents border line.</param>
|
|
1350
|
+
Sets inside border for current range.
|
|
1351
|
+
|
|
1352
|
+
Args:
|
|
1353
|
+
borderLine: Represents border line.
|
|
1354
|
+
Example::
|
|
1355
|
+
|
|
1356
|
+
#Create worksheet
|
|
1357
|
+
workbook = Workbook()
|
|
1358
|
+
worksheet = workbook.Worksheets[0]
|
|
1359
|
+
#Set text
|
|
1360
|
+
worksheet["C2"].Text = "Sample"
|
|
1361
|
+
worksheet["D2"].Text = "text"
|
|
1362
|
+
worksheet["C3"].Text = "in"
|
|
1363
|
+
worksheet["D3"].Text = "cell"
|
|
1364
|
+
#Set border
|
|
1365
|
+
worksheet["C2:D3"].BorderInside(LineStyleType.Thick)
|
|
1366
|
+
#Save to file
|
|
1367
|
+
workbook.SaveToFile("BorderInside.xlsx")
|
|
1368
|
+
|
|
1419
1369
|
"""
|
|
1420
1370
|
enumborderLine:c_int = borderLine.value
|
|
1421
1371
|
|
|
@@ -1426,27 +1376,26 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1426
1376
|
|
|
1427
1377
|
def BorderInside(self ,borderLine:LineStyleType,borderColor:Color):
|
|
1428
1378
|
"""
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
<param name="borderColor">Represents border color.</param>
|
|
1379
|
+
Sets inside border for current range.
|
|
1380
|
+
|
|
1381
|
+
Args:
|
|
1382
|
+
borderLine: Represents border line.
|
|
1383
|
+
borderColor: Represents border color.
|
|
1384
|
+
Example::
|
|
1385
|
+
|
|
1386
|
+
#Create worksheet
|
|
1387
|
+
workbook = Workbook()
|
|
1388
|
+
worksheet = workbook.Worksheets[0]
|
|
1389
|
+
#Set text
|
|
1390
|
+
worksheet["C2"].Text = "Sample"
|
|
1391
|
+
worksheet["D2"].Text = "text"
|
|
1392
|
+
worksheet["C3"].Text = "in"
|
|
1393
|
+
worksheet["D3"].Text = "cell"
|
|
1394
|
+
#Set border
|
|
1395
|
+
worksheet["C2:D3"].BorderInside(LineStyleType.Thick , Color.Red)
|
|
1396
|
+
#Save to file
|
|
1397
|
+
workbook.SaveToFile("BorderInside.xlsx")
|
|
1398
|
+
|
|
1450
1399
|
"""
|
|
1451
1400
|
enumborderLine:c_int = borderLine.value
|
|
1452
1401
|
intPtrborderColor:c_void_p = borderColor.Ptr
|
|
@@ -1458,27 +1407,26 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1458
1407
|
|
|
1459
1408
|
def BorderInside(self ,borderLine:LineStyleType,borderColor:ExcelColors):
|
|
1460
1409
|
"""
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
<param name="borderColor">Represents border color as ExcelColors.</param>
|
|
1410
|
+
Sets inside border for current range.
|
|
1411
|
+
|
|
1412
|
+
Args:
|
|
1413
|
+
borderLine: Represents border line.
|
|
1414
|
+
borderColor: Represents border color as ExcelColors.
|
|
1415
|
+
Example::
|
|
1416
|
+
|
|
1417
|
+
#Create worksheet
|
|
1418
|
+
workbook = Workbook()
|
|
1419
|
+
worksheet = workbook.Worksheets[0]
|
|
1420
|
+
#Set text
|
|
1421
|
+
worksheet["C2"].Text = "Sample"
|
|
1422
|
+
worksheet["D2"].Text = "text"
|
|
1423
|
+
worksheet["C3"].Text = "in"
|
|
1424
|
+
worksheet["D3"].Text = "cell"
|
|
1425
|
+
#Set border
|
|
1426
|
+
worksheet["C2:D3"].BorderInside(LineStyleType.Thick , ExcelColors.Red)
|
|
1427
|
+
#Save to file
|
|
1428
|
+
workbook.SaveToFile("BorderInside.xlsx")
|
|
1429
|
+
|
|
1482
1430
|
"""
|
|
1483
1431
|
enumborderLine:c_int = borderLine.value
|
|
1484
1432
|
enumborderColor:c_int = borderColor.value
|
|
@@ -1488,21 +1436,18 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1488
1436
|
|
|
1489
1437
|
def BorderNone(self):
|
|
1490
1438
|
"""
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
</code>
|
|
1504
|
-
</example>
|
|
1505
|
-
</summary>
|
|
1439
|
+
Sets none border for current range.
|
|
1440
|
+
Example::
|
|
1441
|
+
|
|
1442
|
+
#Create worksheet
|
|
1443
|
+
workbook = Workbook()
|
|
1444
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1445
|
+
worksheet = workbook.Worksheets[0]
|
|
1446
|
+
#Remove borders
|
|
1447
|
+
worksheet["C2"].BorderNone()
|
|
1448
|
+
#Save to file
|
|
1449
|
+
workbook.SaveToFile("BorderNone.xlsx")
|
|
1450
|
+
|
|
1506
1451
|
"""
|
|
1507
1452
|
GetDllLibXls().XlsRange_BorderNone.argtypes=[c_void_p]
|
|
1508
1453
|
CallCFunction(GetDllLibXls().XlsRange_BorderNone, self.Ptr)
|
|
@@ -1510,22 +1455,21 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1510
1455
|
|
|
1511
1456
|
def Clear(self ,option:'ExcelClearOptions'):
|
|
1512
1457
|
"""
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
<param name="option">Represents the clear options.</param>
|
|
1458
|
+
Clears the cell based on clear options.
|
|
1459
|
+
|
|
1460
|
+
Args:
|
|
1461
|
+
option: Represents the clear options.
|
|
1462
|
+
Example::
|
|
1463
|
+
|
|
1464
|
+
#Create worksheet
|
|
1465
|
+
workbook = Workbook()
|
|
1466
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1467
|
+
worksheet = workbook.Worksheets[0]
|
|
1468
|
+
#Clears the Range C2 with its clear options
|
|
1469
|
+
worksheet.Range["C2"].Clear(ExcelClearOptions.ClearAll)
|
|
1470
|
+
#Save to file
|
|
1471
|
+
workbook.SaveToFile("ClearContents.xlsx")
|
|
1472
|
+
|
|
1529
1473
|
"""
|
|
1530
1474
|
enumoption:c_int = option.value
|
|
1531
1475
|
|
|
@@ -1534,30 +1478,26 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1534
1478
|
|
|
1535
1479
|
def ClearAll(self):
|
|
1536
1480
|
"""
|
|
1537
|
-
<summary>
|
|
1538
1481
|
Clears the entire object.
|
|
1539
|
-
|
|
1482
|
+
|
|
1540
1483
|
"""
|
|
1541
1484
|
GetDllLibXls().XlsRange_ClearAll.argtypes=[c_void_p]
|
|
1542
1485
|
CallCFunction(GetDllLibXls().XlsRange_ClearAll, self.Ptr)
|
|
1543
1486
|
|
|
1544
1487
|
def ClearContents(self):
|
|
1545
1488
|
"""
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
</code>
|
|
1559
|
-
</example>
|
|
1560
|
-
</summary>
|
|
1489
|
+
Clear the contents of the Range.
|
|
1490
|
+
Example::
|
|
1491
|
+
|
|
1492
|
+
#Create worksheet
|
|
1493
|
+
workbook = Workbook()
|
|
1494
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1495
|
+
worksheet = workbook.Worksheets[0]
|
|
1496
|
+
#Clears the Range C2
|
|
1497
|
+
worksheet.Range["C2"].ClearContents()
|
|
1498
|
+
#Save to file
|
|
1499
|
+
workbook.SaveToFile("ClearContents.xlsx")
|
|
1500
|
+
|
|
1561
1501
|
"""
|
|
1562
1502
|
GetDllLibXls().XlsRange_ClearContents.argtypes=[c_void_p]
|
|
1563
1503
|
CallCFunction(GetDllLibXls().XlsRange_ClearContents, self.Ptr)
|
|
@@ -1565,11 +1505,11 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1565
1505
|
|
|
1566
1506
|
def GroupByColumns(self ,isCollapsed:bool)->'XlsRange':
|
|
1567
1507
|
"""
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1508
|
+
Groups columns.
|
|
1509
|
+
|
|
1510
|
+
Args:
|
|
1511
|
+
isCollapsed: Indicates whether group should be collapsed.
|
|
1512
|
+
|
|
1573
1513
|
"""
|
|
1574
1514
|
|
|
1575
1515
|
GetDllLibXls().XlsRange_GroupByColumns.argtypes=[c_void_p ,c_bool]
|
|
@@ -1582,11 +1522,11 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1582
1522
|
|
|
1583
1523
|
def GroupByRows(self ,isCollapsed:bool)->'XlsRange':
|
|
1584
1524
|
"""
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1525
|
+
Groups row.
|
|
1526
|
+
|
|
1527
|
+
Args:
|
|
1528
|
+
isCollapsed: Indicates whether group should be collapsed.
|
|
1529
|
+
|
|
1590
1530
|
"""
|
|
1591
1531
|
|
|
1592
1532
|
GetDllLibXls().XlsRange_GroupByRows.argtypes=[c_void_p ,c_bool]
|
|
@@ -1599,10 +1539,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1599
1539
|
|
|
1600
1540
|
def UngroupByColumns(self)->'XlsRange':
|
|
1601
1541
|
"""
|
|
1602
|
-
<summary>
|
|
1603
1542
|
Ungroups column.
|
|
1604
|
-
|
|
1605
|
-
<returns></returns>
|
|
1543
|
+
|
|
1606
1544
|
"""
|
|
1607
1545
|
GetDllLibXls().XlsRange_UngroupByColumns.argtypes=[c_void_p]
|
|
1608
1546
|
GetDllLibXls().XlsRange_UngroupByColumns.restype=c_void_p
|
|
@@ -1614,10 +1552,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1614
1552
|
|
|
1615
1553
|
def UngroupByRows(self)->'XlsRange':
|
|
1616
1554
|
"""
|
|
1617
|
-
<summary>
|
|
1618
1555
|
Ungroups row.
|
|
1619
|
-
|
|
1620
|
-
<returns></returns>
|
|
1556
|
+
|
|
1621
1557
|
"""
|
|
1622
1558
|
GetDllLibXls().XlsRange_UngroupByRows.argtypes=[c_void_p]
|
|
1623
1559
|
GetDllLibXls().XlsRange_UngroupByRows.restype=c_void_p
|
|
@@ -1629,24 +1565,21 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1629
1565
|
|
|
1630
1566
|
def CollapseGroup(self ,groupBy:'GroupByType'):
|
|
1631
1567
|
"""
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
<param name="groupBy">
|
|
1648
|
-
This parameter specifies whether the grouping should be performed by rows or by columns.
|
|
1649
|
-
</param>
|
|
1568
|
+
Collapses current group.
|
|
1569
|
+
|
|
1570
|
+
Args:
|
|
1571
|
+
groupBy:
|
|
1572
|
+
Example::
|
|
1573
|
+
|
|
1574
|
+
#Create worksheet
|
|
1575
|
+
workbook = Workbook()
|
|
1576
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1577
|
+
worksheet = workbook.Worksheets[0]
|
|
1578
|
+
#Collapse group
|
|
1579
|
+
worksheet.Range["A5:A15"].CollapseGroup(GroupByType.ByRows)
|
|
1580
|
+
#Save to file
|
|
1581
|
+
workbook.SaveToFile("CollapseGroup.xlsx")
|
|
1582
|
+
|
|
1650
1583
|
"""
|
|
1651
1584
|
enumgroupBy:c_int = groupBy.value
|
|
1652
1585
|
|
|
@@ -1671,24 +1604,21 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1671
1604
|
|
|
1672
1605
|
def ExpandGroup(self ,groupBy:GroupByType):
|
|
1673
1606
|
"""
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
<param name="groupBy">
|
|
1690
|
-
This parameter specifies whether the grouping should be performed by rows or by columns.
|
|
1691
|
-
</param>
|
|
1607
|
+
Expands current group.
|
|
1608
|
+
|
|
1609
|
+
Args:
|
|
1610
|
+
groupBy:
|
|
1611
|
+
Example::
|
|
1612
|
+
|
|
1613
|
+
#Create worksheet
|
|
1614
|
+
workbook = Workbook()
|
|
1615
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1616
|
+
worksheet = workbook.Worksheets[0]
|
|
1617
|
+
#Expand group with flag set to expand parent
|
|
1618
|
+
worksheet.Range["A5:A15"].ExpandGroup(GroupByType.ByRows)
|
|
1619
|
+
#Save to file
|
|
1620
|
+
workbook.SaveToFile("ExpandGroup.xlsx")
|
|
1621
|
+
|
|
1692
1622
|
"""
|
|
1693
1623
|
enumgroupBy:c_int = groupBy.value
|
|
1694
1624
|
|
|
@@ -1699,25 +1629,22 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1699
1629
|
|
|
1700
1630
|
def ExpandGroup(self ,groupBy:GroupByType,flags:ExpandCollapseFlags):
|
|
1701
1631
|
"""
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
This parameter specifies whether the grouping should be performed by rows or by columns.
|
|
1719
|
-
</param>
|
|
1720
|
-
<param name="flags">Additional option flags.</param>
|
|
1632
|
+
Expands current group.
|
|
1633
|
+
|
|
1634
|
+
Args:
|
|
1635
|
+
groupBy:
|
|
1636
|
+
flags: Additional option flags.
|
|
1637
|
+
Example::
|
|
1638
|
+
|
|
1639
|
+
#Create worksheet
|
|
1640
|
+
workbook = Workbook()
|
|
1641
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1642
|
+
worksheet = workbook.Worksheets[0]
|
|
1643
|
+
#Expand group with flag set to expand parent
|
|
1644
|
+
worksheet.Range["A5:A15"].ExpandGroup(GroupByType.ByRows, ExpandCollapseFlags.ExpandParent)
|
|
1645
|
+
#Save to file
|
|
1646
|
+
workbook.SaveToFile("ExpandGroup.xlsx")
|
|
1647
|
+
|
|
1721
1648
|
"""
|
|
1722
1649
|
enumgroupBy:c_int = groupBy.value
|
|
1723
1650
|
enumflags:c_int = flags.value
|
|
@@ -1727,20 +1654,17 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1727
1654
|
|
|
1728
1655
|
def FreezePanes(self):
|
|
1729
1656
|
"""
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
</code>
|
|
1742
|
-
</example>
|
|
1743
|
-
</summary>
|
|
1657
|
+
Freezes panes at the current range in the worksheet. current range should be single cell range.
|
|
1658
|
+
Example::
|
|
1659
|
+
|
|
1660
|
+
#Create worksheet
|
|
1661
|
+
workbook = Workbook()
|
|
1662
|
+
worksheet = workbook.Worksheets[0]
|
|
1663
|
+
#Applying Freeze Pane to the sheet by specifying a cell
|
|
1664
|
+
worksheet.Range["B2"].FreezePanes()
|
|
1665
|
+
#Save to file
|
|
1666
|
+
workbook.SaveToFile("FreezePanes.xlsx")
|
|
1667
|
+
|
|
1744
1668
|
"""
|
|
1745
1669
|
GetDllLibXls().XlsRange_FreezePanes.argtypes=[c_void_p]
|
|
1746
1670
|
CallCFunction(GetDllLibXls().XlsRange_FreezePanes, self.Ptr)
|
|
@@ -1748,19 +1672,16 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1748
1672
|
@property
|
|
1749
1673
|
def BooleanValue(self)->bool:
|
|
1750
1674
|
"""
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
</code>
|
|
1762
|
-
</example>
|
|
1763
|
-
</summary>
|
|
1675
|
+
Returns or sets the bool value of the specified range.
|
|
1676
|
+
Example::
|
|
1677
|
+
|
|
1678
|
+
#Create worksheet
|
|
1679
|
+
workbook = Workbook()
|
|
1680
|
+
worksheet = workbook.Worksheets[0]
|
|
1681
|
+
#Set and get BooleanValue
|
|
1682
|
+
worksheet.Range[2, 4].BooleanValue = true
|
|
1683
|
+
boolean = worksheet.Range[2, 4].BooleanValue
|
|
1684
|
+
|
|
1764
1685
|
"""
|
|
1765
1686
|
GetDllLibXls().XlsRange_get_BooleanValue.argtypes=[c_void_p]
|
|
1766
1687
|
GetDllLibXls().XlsRange_get_BooleanValue.restype=c_bool
|
|
@@ -1778,7 +1699,7 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1778
1699
|
"""
|
|
1779
1700
|
|
|
1780
1701
|
"""
|
|
1781
|
-
from spire.xls.XlsBordersCollection import XlsBordersCollection
|
|
1702
|
+
from spire.xls.collection.XlsBordersCollection import XlsBordersCollection
|
|
1782
1703
|
GetDllLibXls().XlsRange_get_Borders.argtypes=[c_void_p]
|
|
1783
1704
|
GetDllLibXls().XlsRange_get_Borders.restype=c_void_p
|
|
1784
1705
|
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Borders, self.Ptr)
|
|
@@ -1790,22 +1711,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1790
1711
|
|
|
1791
1712
|
def BuiltInStyle(self)->BuiltInStyles:
|
|
1792
1713
|
"""
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
</code>
|
|
1807
|
-
</example>
|
|
1808
|
-
</summary>
|
|
1714
|
+
Gets/sets built in style.
|
|
1715
|
+
Example::
|
|
1716
|
+
|
|
1717
|
+
#Create worksheet
|
|
1718
|
+
workbook = Workbook()
|
|
1719
|
+
worksheet = workbook.Worksheets[0]
|
|
1720
|
+
#Set text
|
|
1721
|
+
worksheet["C2"].Text = "Sample"
|
|
1722
|
+
#Set built in style
|
|
1723
|
+
worksheet["C2"].BuiltInStyle = BuiltInStyles.Accent3
|
|
1724
|
+
#Save to file
|
|
1725
|
+
workbook.SaveToFile("BuiltInStyle.xlsx")
|
|
1726
|
+
|
|
1809
1727
|
"""
|
|
1810
1728
|
GetDllLibXls().XlsRange_get_BuiltInStyle.argtypes=[c_void_p]
|
|
1811
1729
|
GetDllLibXls().XlsRange_get_BuiltInStyle.restype=c_int
|
|
@@ -1852,21 +1770,18 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1852
1770
|
|
|
1853
1771
|
def CellStyleName(self)->str:
|
|
1854
1772
|
"""
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
</code>
|
|
1868
|
-
</example>
|
|
1869
|
-
</summary>
|
|
1773
|
+
Gets/sets name of the style for the current range.
|
|
1774
|
+
Example::
|
|
1775
|
+
|
|
1776
|
+
#Create worksheet
|
|
1777
|
+
workbook = Workbook()
|
|
1778
|
+
worksheet = workbook.Worksheets[0]
|
|
1779
|
+
#Add and set style
|
|
1780
|
+
style = workbook.Styles.Add("CustomStyle")
|
|
1781
|
+
worksheet["C2"].Style = style
|
|
1782
|
+
#Check Style name
|
|
1783
|
+
Console.Write(worksheet["C2"].CellStyleName)
|
|
1784
|
+
|
|
1870
1785
|
"""
|
|
1871
1786
|
GetDllLibXls().XlsRange_get_CellStyleName.argtypes=[c_void_p]
|
|
1872
1787
|
GetDllLibXls().XlsRange_get_CellStyleName.restype=c_void_p
|
|
@@ -1882,18 +1797,15 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1882
1797
|
@property
|
|
1883
1798
|
def Column(self)->int:
|
|
1884
1799
|
"""
|
|
1885
|
-
<summary>
|
|
1886
1800
|
Returns the number of the first column in the first area in the specified range.
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
</example>
|
|
1896
|
-
</summary>
|
|
1801
|
+
Example::
|
|
1802
|
+
|
|
1803
|
+
#Create worksheet
|
|
1804
|
+
workbook = Workbook()
|
|
1805
|
+
worksheet = workbook.Worksheets[0]
|
|
1806
|
+
#Get specified column
|
|
1807
|
+
firstColumn = worksheet["E1:R3"].Column
|
|
1808
|
+
|
|
1897
1809
|
"""
|
|
1898
1810
|
GetDllLibXls().XlsRange_get_Column.argtypes=[c_void_p]
|
|
1899
1811
|
GetDllLibXls().XlsRange_get_Column.restype=c_int
|
|
@@ -1903,14 +1815,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1903
1815
|
@property
|
|
1904
1816
|
def ColumnGroupLevel(self)->int:
|
|
1905
1817
|
"""
|
|
1906
|
-
<summary>
|
|
1907
1818
|
Column group level.
|
|
1908
|
-
|
|
1909
|
-
<remarks>
|
|
1910
|
-
-1 - column group is not same.
|
|
1911
|
-
0 - Not group
|
|
1912
|
-
1 - 7 - group level.
|
|
1913
|
-
</remarks>
|
|
1819
|
+
|
|
1914
1820
|
"""
|
|
1915
1821
|
GetDllLibXls().XlsRange_get_ColumnGroupLevel.argtypes=[c_void_p]
|
|
1916
1822
|
GetDllLibXls().XlsRange_get_ColumnGroupLevel.restype=c_int
|
|
@@ -1933,21 +1839,18 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1933
1839
|
@property
|
|
1934
1840
|
def ColumnWidth(self)->float:
|
|
1935
1841
|
"""
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
</code>
|
|
1949
|
-
</example>
|
|
1950
|
-
</summary>
|
|
1842
|
+
Returns or sets the width of all columns in the specified range.
|
|
1843
|
+
Example::
|
|
1844
|
+
|
|
1845
|
+
#Create worksheet
|
|
1846
|
+
workbook = Workbook()
|
|
1847
|
+
worksheet = workbook.Worksheets[0]
|
|
1848
|
+
#Set the ColumnWidth
|
|
1849
|
+
worksheet["A1"].Text = "This cell contains sample text"
|
|
1850
|
+
worksheet["A1"].ColumnWidth = 25
|
|
1851
|
+
#Save to file
|
|
1852
|
+
workbook.SaveToFile("ColumnWidth.xlsx")
|
|
1853
|
+
|
|
1951
1854
|
"""
|
|
1952
1855
|
GetDllLibXls().XlsRange_get_ColumnWidth.argtypes=[c_void_p]
|
|
1953
1856
|
GetDllLibXls().XlsRange_get_ColumnWidth.restype=c_double
|
|
@@ -1963,9 +1866,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1963
1866
|
|
|
1964
1867
|
def Comment(self)->'ICommentShape':
|
|
1965
1868
|
"""
|
|
1966
|
-
<summary>
|
|
1967
1869
|
Returns a Comment object that represents the comment associated with the cell in the upper-left corner of the range.
|
|
1968
|
-
|
|
1870
|
+
|
|
1969
1871
|
"""
|
|
1970
1872
|
GetDllLibXls().XlsRange_get_Comment.argtypes=[c_void_p]
|
|
1971
1873
|
GetDllLibXls().XlsRange_get_Comment.restype=c_void_p
|
|
@@ -1990,9 +1892,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1990
1892
|
@property
|
|
1991
1893
|
def Count(self)->int:
|
|
1992
1894
|
"""
|
|
1993
|
-
<summary>
|
|
1994
1895
|
Returns the number of objects in the collection.
|
|
1995
|
-
|
|
1896
|
+
|
|
1996
1897
|
"""
|
|
1997
1898
|
GetDllLibXls().XlsRange_get_Count.argtypes=[c_void_p]
|
|
1998
1899
|
GetDllLibXls().XlsRange_get_Count.restype=c_int
|
|
@@ -2003,9 +1904,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2003
1904
|
|
|
2004
1905
|
def CurrentRegion(self)->'IXLSRange':
|
|
2005
1906
|
"""
|
|
2006
|
-
<summary>
|
|
2007
1907
|
Get the range associated with a range.
|
|
2008
|
-
|
|
1908
|
+
|
|
2009
1909
|
"""
|
|
2010
1910
|
GetDllLibXls().XlsRange_get_CurrentRegion.argtypes=[c_void_p]
|
|
2011
1911
|
GetDllLibXls().XlsRange_get_CurrentRegion.restype=c_void_p
|
|
@@ -2018,25 +1918,22 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2018
1918
|
|
|
2019
1919
|
def DataValidation(self)->'Validation':
|
|
2020
1920
|
"""
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
</code>
|
|
2038
|
-
</example>
|
|
2039
|
-
</summary>
|
|
1921
|
+
Get dataValidation of the sheet. Read Only.
|
|
1922
|
+
Example::
|
|
1923
|
+
|
|
1924
|
+
#Create worksheet
|
|
1925
|
+
workbook = Workbook()
|
|
1926
|
+
worksheet = workbook.Worksheets[0]
|
|
1927
|
+
#Data validation for number
|
|
1928
|
+
validation = worksheet.Range["A3"].DataValidation
|
|
1929
|
+
validation.AllowType = CellDataType.Integer
|
|
1930
|
+
#Value between 0 to 10
|
|
1931
|
+
validation.CompareOperator = ValidationComparisonOperator.Between
|
|
1932
|
+
validation.Formula1 = "0"
|
|
1933
|
+
validation.Formula2 = "10"
|
|
1934
|
+
#Save to file
|
|
1935
|
+
workbook.SaveToFile("DataValidation.xlsx")
|
|
1936
|
+
|
|
2040
1937
|
"""
|
|
2041
1938
|
GetDllLibXls().XlsRange_get_DataValidation.argtypes=[c_void_p]
|
|
2042
1939
|
GetDllLibXls().XlsRange_get_DataValidation.restype=c_void_p
|
|
@@ -2049,21 +1946,18 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2049
1946
|
|
|
2050
1947
|
def DateTimeValue(self)->'DateTime':
|
|
2051
1948
|
"""
|
|
2052
|
-
<summary>
|
|
2053
1949
|
Gets/sets DateTime value of the range.
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
</example>
|
|
2066
|
-
</summary>
|
|
1950
|
+
Example::
|
|
1951
|
+
|
|
1952
|
+
#Create worksheet
|
|
1953
|
+
workbook = Workbook()
|
|
1954
|
+
worksheet = workbook.Worksheets[0]
|
|
1955
|
+
#Set and get the DateTimeValue of specified range
|
|
1956
|
+
worksheet.Range[2, 4].DateTimeValue = DateTime.Now
|
|
1957
|
+
dateTime = worksheet.Range[2, 4].DateTimeValue
|
|
1958
|
+
#Save to file
|
|
1959
|
+
workbook.SaveToFile("DateTimeValue.xlsx")
|
|
1960
|
+
|
|
2067
1961
|
"""
|
|
2068
1962
|
GetDllLibXls().XlsRange_get_DateTimeValue.argtypes=[c_void_p]
|
|
2069
1963
|
GetDllLibXls().XlsRange_get_DateTimeValue.restype=c_void_p
|
|
@@ -2107,10 +2001,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2107
2001
|
|
|
2108
2002
|
def EntireRow(self)->'IXLSRange':
|
|
2109
2003
|
"""
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
rows) that contains the specified range. Read-only.
|
|
2113
|
-
</summary>
|
|
2004
|
+
Returns a Range object that represents the entire row (or rows) that contains the specified range. Read-only.
|
|
2005
|
+
|
|
2114
2006
|
"""
|
|
2115
2007
|
GetDllLibXls().XlsRange_get_EntireRow.argtypes=[c_void_p]
|
|
2116
2008
|
GetDllLibXls().XlsRange_get_EntireRow.restype=c_void_p
|
|
@@ -2123,20 +2015,17 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2123
2015
|
|
|
2124
2016
|
def EnvalutedValue(self)->str:
|
|
2125
2017
|
"""
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
</code>
|
|
2138
|
-
</example>
|
|
2139
|
-
</summary>
|
|
2018
|
+
Returns the calculated value of a formula.
|
|
2019
|
+
Example::
|
|
2020
|
+
|
|
2021
|
+
#Create worksheet
|
|
2022
|
+
workbook = Workbook()
|
|
2023
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
2024
|
+
worksheet = workbook.Worksheets[0]
|
|
2025
|
+
#Returns the calculated value of a formula using the most current inputs
|
|
2026
|
+
calculatedValue = worksheet["C1"].EnvalutedValue
|
|
2027
|
+
print(calculatedValue)
|
|
2028
|
+
|
|
2140
2029
|
"""
|
|
2141
2030
|
GetDllLibXls().XlsRange_get_EnvalutedValue.argtypes=[c_void_p]
|
|
2142
2031
|
GetDllLibXls().XlsRange_get_EnvalutedValue.restype=c_void_p
|
|
@@ -2148,9 +2037,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2148
2037
|
|
|
2149
2038
|
def ErrorValue(self)->str:
|
|
2150
2039
|
"""
|
|
2151
|
-
<summary>
|
|
2152
2040
|
Gets or sets error value of this range.
|
|
2153
|
-
|
|
2041
|
+
|
|
2154
2042
|
"""
|
|
2155
2043
|
GetDllLibXls().XlsRange_get_ErrorValue.argtypes=[c_void_p]
|
|
2156
2044
|
GetDllLibXls().XlsRange_get_ErrorValue.restype=c_void_p
|
|
@@ -2167,10 +2055,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2167
2055
|
|
|
2168
2056
|
def Formula(self)->str:
|
|
2169
2057
|
"""
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
the language of the macro.
|
|
2173
|
-
</summary>
|
|
2058
|
+
Returns or sets the object's formula in A1-style notation and in the language of the macro.
|
|
2059
|
+
|
|
2174
2060
|
"""
|
|
2175
2061
|
GetDllLibXls().XlsRange_get_Formula.argtypes=[c_void_p]
|
|
2176
2062
|
GetDllLibXls().XlsRange_get_Formula.restype=c_void_p
|
|
@@ -2187,24 +2073,21 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2187
2073
|
|
|
2188
2074
|
def FormulaArray(self)->str:
|
|
2189
2075
|
"""
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
</code>
|
|
2206
|
-
</example>
|
|
2207
|
-
</summary>
|
|
2076
|
+
Returns or sets the array formula of a range.
|
|
2077
|
+
Example::
|
|
2078
|
+
|
|
2079
|
+
#Create worksheet
|
|
2080
|
+
workbook = Workbook()
|
|
2081
|
+
worksheet = workbook.Worksheets[0]
|
|
2082
|
+
#Assign array formula
|
|
2083
|
+
worksheet.Range["A1:D1"].FormulaArray = "{1,2,3,4}"
|
|
2084
|
+
#Adding a named range for the range A1 to D1
|
|
2085
|
+
worksheet.Names.Add("ArrayRange", worksheet.Range["A1:D1"])
|
|
2086
|
+
#Assign formula array with named range
|
|
2087
|
+
worksheet.Range["A2:D2"].FormulaArray = "ArrayRange+100"
|
|
2088
|
+
#Save to file
|
|
2089
|
+
workbook.SaveToFile("FormulaArray.xlsx")
|
|
2090
|
+
|
|
2208
2091
|
"""
|
|
2209
2092
|
GetDllLibXls().XlsRange_get_FormulaArray.argtypes=[c_void_p]
|
|
2210
2093
|
GetDllLibXls().XlsRange_get_FormulaArray.restype=c_void_p
|
|
@@ -2221,9 +2104,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2221
2104
|
|
|
2222
2105
|
def FormulaArrayR1C1(self)->str:
|
|
2223
2106
|
"""
|
|
2224
|
-
<summary>
|
|
2225
2107
|
Returns or sets the formula for the object, using R1C1-style notation in the language of the macro
|
|
2226
|
-
|
|
2108
|
+
|
|
2227
2109
|
"""
|
|
2228
2110
|
GetDllLibXls().XlsRange_get_FormulaArrayR1C1.argtypes=[c_void_p]
|
|
2229
2111
|
GetDllLibXls().XlsRange_get_FormulaArrayR1C1.restype=c_void_p
|
|
@@ -2255,9 +2137,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2255
2137
|
|
|
2256
2138
|
def FormulaDateTime(self)->'DateTime':
|
|
2257
2139
|
"""
|
|
2258
|
-
<summary>
|
|
2259
2140
|
Gets or sets bool value of the formula.
|
|
2260
|
-
|
|
2141
|
+
|
|
2261
2142
|
"""
|
|
2262
2143
|
GetDllLibXls().XlsRange_get_FormulaDateTime.argtypes=[c_void_p]
|
|
2263
2144
|
GetDllLibXls().XlsRange_get_FormulaDateTime.restype=c_void_p
|
|
@@ -2275,9 +2156,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2275
2156
|
|
|
2276
2157
|
def FormulaErrorValue(self)->str:
|
|
2277
2158
|
"""
|
|
2278
|
-
<summary>
|
|
2279
2159
|
Gets or sets error value of the formula.
|
|
2280
|
-
|
|
2160
|
+
|
|
2281
2161
|
"""
|
|
2282
2162
|
GetDllLibXls().XlsRange_get_FormulaErrorValue.argtypes=[c_void_p]
|
|
2283
2163
|
GetDllLibXls().XlsRange_get_FormulaErrorValue.restype=c_void_p
|
|
@@ -2293,9 +2173,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2293
2173
|
@property
|
|
2294
2174
|
def FormulaNumberValue(self)->float:
|
|
2295
2175
|
"""
|
|
2296
|
-
<summary>
|
|
2297
2176
|
Gets or sets double value of the formula.
|
|
2298
|
-
|
|
2177
|
+
|
|
2299
2178
|
"""
|
|
2300
2179
|
GetDllLibXls().XlsRange_get_FormulaNumberValue.argtypes=[c_void_p]
|
|
2301
2180
|
GetDllLibXls().XlsRange_get_FormulaNumberValue.restype=c_double
|
|
@@ -2311,9 +2190,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2311
2190
|
|
|
2312
2191
|
def FormulaR1C1(self)->str:
|
|
2313
2192
|
"""
|
|
2314
|
-
<summary>
|
|
2315
2193
|
Returns or sets the formula for the object, using R1C1-style notation in the language of the macro
|
|
2316
|
-
|
|
2194
|
+
|
|
2317
2195
|
"""
|
|
2318
2196
|
GetDllLibXls().XlsRange_get_FormulaR1C1.argtypes=[c_void_p]
|
|
2319
2197
|
GetDllLibXls().XlsRange_get_FormulaR1C1.restype=c_void_p
|
|
@@ -2330,9 +2208,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2330
2208
|
|
|
2331
2209
|
def FormulaStringValue(self)->str:
|
|
2332
2210
|
"""
|
|
2333
|
-
<summary>
|
|
2334
2211
|
Gets or sets string value of the range.
|
|
2335
|
-
|
|
2212
|
+
|
|
2336
2213
|
"""
|
|
2337
2214
|
GetDllLibXls().XlsRange_get_FormulaStringValue.argtypes=[c_void_p]
|
|
2338
2215
|
GetDllLibXls().XlsRange_get_FormulaStringValue.restype=c_void_p
|
|
@@ -2349,9 +2226,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2349
2226
|
|
|
2350
2227
|
def FormulaValue(self)->'str':
|
|
2351
2228
|
"""
|
|
2352
|
-
<summary>
|
|
2353
2229
|
Gets formula value.
|
|
2354
|
-
|
|
2230
|
+
|
|
2355
2231
|
"""
|
|
2356
2232
|
GetDllLibXls().XlsRange_get_FormulaValue.argtypes=[c_void_p]
|
|
2357
2233
|
GetDllLibXls().XlsRange_get_FormulaValue.restype=c_void_p
|
|
@@ -2363,22 +2239,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2363
2239
|
@property
|
|
2364
2240
|
def HasBoolean(self)->bool:
|
|
2365
2241
|
"""
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
</code>
|
|
2380
|
-
</example>
|
|
2381
|
-
</summary>
|
|
2242
|
+
Indicates whether range contains bool value.
|
|
2243
|
+
Example::
|
|
2244
|
+
|
|
2245
|
+
#Create worksheet
|
|
2246
|
+
workbook = Workbook()
|
|
2247
|
+
worksheet = workbook.Worksheets[0]
|
|
2248
|
+
#Assigning Value2 property of the Range
|
|
2249
|
+
worksheet["A3"].Value2 = false
|
|
2250
|
+
#Checking Range types
|
|
2251
|
+
isboolean = worksheet["A3"].HasBoolean
|
|
2252
|
+
#Save to file
|
|
2253
|
+
workbook.SaveToFile("HasBoolean.xlsx")
|
|
2254
|
+
|
|
2382
2255
|
"""
|
|
2383
2256
|
GetDllLibXls().XlsRange_get_HasBoolean.argtypes=[c_void_p]
|
|
2384
2257
|
GetDllLibXls().XlsRange_get_HasBoolean.restype=c_bool
|
|
@@ -2398,9 +2271,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2398
2271
|
@property
|
|
2399
2272
|
def ColumnCount(self)->int:
|
|
2400
2273
|
"""
|
|
2401
|
-
<summary>
|
|
2402
2274
|
Gets number of columns.
|
|
2403
|
-
|
|
2275
|
+
|
|
2404
2276
|
"""
|
|
2405
2277
|
GetDllLibXls().XlsRange_get_ColumnCount.argtypes=[c_void_p]
|
|
2406
2278
|
GetDllLibXls().XlsRange_get_ColumnCount.restype=c_int
|
|
@@ -2410,9 +2282,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2410
2282
|
@property
|
|
2411
2283
|
def RowCount(self)->int:
|
|
2412
2284
|
"""
|
|
2413
|
-
<summary>
|
|
2414
2285
|
Gets number of rows.
|
|
2415
|
-
|
|
2286
|
+
|
|
2416
2287
|
"""
|
|
2417
2288
|
GetDllLibXls().XlsRange_get_RowCount.argtypes=[c_void_p]
|
|
2418
2289
|
GetDllLibXls().XlsRange_get_RowCount.restype=c_int
|
|
@@ -2422,10 +2293,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2422
2293
|
@property
|
|
2423
2294
|
def HasDataValidation(self)->bool:
|
|
2424
2295
|
"""
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
If Range is not single cell, then returns true only if all cells have data validation. Read-only.
|
|
2428
|
-
</summary>
|
|
2296
|
+
Indicates whether specified range object has data validation. If Range is not single cell, then returns true only if all cells have data validation. Read-only.
|
|
2297
|
+
|
|
2429
2298
|
"""
|
|
2430
2299
|
GetDllLibXls().XlsRange_get_HasDataValidation.argtypes=[c_void_p]
|
|
2431
2300
|
GetDllLibXls().XlsRange_get_HasDataValidation.restype=c_bool
|
|
@@ -2435,22 +2304,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2435
2304
|
@property
|
|
2436
2305
|
def HasDateTime(self)->bool:
|
|
2437
2306
|
"""
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
</code>
|
|
2452
|
-
</example>
|
|
2453
|
-
</summary>
|
|
2307
|
+
Determines if all cells in the range contain datetime.
|
|
2308
|
+
Example::
|
|
2309
|
+
|
|
2310
|
+
#Create worksheet
|
|
2311
|
+
workbook = Workbook()
|
|
2312
|
+
worksheet = workbook.Worksheets[0]
|
|
2313
|
+
#Assigning Value2 property of the Range
|
|
2314
|
+
worksheet["A1"].Value2 = DateTime.Now
|
|
2315
|
+
#Checking Range types
|
|
2316
|
+
isDateTime = worksheet["A1"].HasDateTime
|
|
2317
|
+
#Save to file
|
|
2318
|
+
workbook.SaveToFile("HasDateTime.xlsx")
|
|
2319
|
+
|
|
2454
2320
|
"""
|
|
2455
2321
|
GetDllLibXls().XlsRange_get_HasDateTime.argtypes=[c_void_p]
|
|
2456
2322
|
GetDllLibXls().XlsRange_get_HasDateTime.restype=c_bool
|
|
@@ -2460,9 +2326,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2460
2326
|
@property
|
|
2461
2327
|
def HasError(self)->bool:
|
|
2462
2328
|
"""
|
|
2463
|
-
<summary>
|
|
2464
2329
|
Indicates whether range contains error value.
|
|
2465
|
-
|
|
2330
|
+
|
|
2466
2331
|
"""
|
|
2467
2332
|
GetDllLibXls().XlsRange_get_HasError.argtypes=[c_void_p]
|
|
2468
2333
|
GetDllLibXls().XlsRange_get_HasError.restype=c_bool
|
|
@@ -2472,9 +2337,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2472
2337
|
@property
|
|
2473
2338
|
def HasExternalFormula(self)->bool:
|
|
2474
2339
|
"""
|
|
2475
|
-
<summary>
|
|
2476
2340
|
Check if the formula in the range has external links. Read-only.
|
|
2477
|
-
|
|
2341
|
+
|
|
2478
2342
|
"""
|
|
2479
2343
|
GetDllLibXls().XlsRange_get_HasExternalFormula.argtypes=[c_void_p]
|
|
2480
2344
|
GetDllLibXls().XlsRange_get_HasExternalFormula.restype=c_bool
|
|
@@ -2484,9 +2348,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2484
2348
|
@property
|
|
2485
2349
|
def HasFormula(self)->bool:
|
|
2486
2350
|
"""
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
</summary>
|
|
2351
|
+
True if all cells in the range contain formulas;
|
|
2352
|
+
|
|
2490
2353
|
"""
|
|
2491
2354
|
GetDllLibXls().XlsRange_get_HasFormula.argtypes=[c_void_p]
|
|
2492
2355
|
GetDllLibXls().XlsRange_get_HasFormula.restype=c_bool
|
|
@@ -2496,9 +2359,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2496
2359
|
@property
|
|
2497
2360
|
def HasFormulaArray(self)->bool:
|
|
2498
2361
|
"""
|
|
2499
|
-
<summary>
|
|
2500
2362
|
Determines if all cells in the range contain array-entered formula.
|
|
2501
|
-
|
|
2363
|
+
|
|
2502
2364
|
"""
|
|
2503
2365
|
GetDllLibXls().XlsRange_get_HasFormulaArray.argtypes=[c_void_p]
|
|
2504
2366
|
GetDllLibXls().XlsRange_get_HasFormulaArray.restype=c_bool
|
|
@@ -2508,9 +2370,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2508
2370
|
@property
|
|
2509
2371
|
def HasFormulaBoolValue(self)->bool:
|
|
2510
2372
|
"""
|
|
2511
|
-
<summary>
|
|
2512
2373
|
Determines if all cells in the range contain formula bool value..
|
|
2513
|
-
|
|
2374
|
+
|
|
2514
2375
|
"""
|
|
2515
2376
|
GetDllLibXls().XlsRange_get_HasFormulaBoolValue.argtypes=[c_void_p]
|
|
2516
2377
|
GetDllLibXls().XlsRange_get_HasFormulaBoolValue.restype=c_bool
|
|
@@ -2520,9 +2381,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2520
2381
|
@property
|
|
2521
2382
|
def HasFormulaDateTime(self)->bool:
|
|
2522
2383
|
"""
|
|
2523
|
-
<summary>
|
|
2524
2384
|
Indicates if current range has formula value formatted as DateTime. Read-only.
|
|
2525
|
-
|
|
2385
|
+
|
|
2526
2386
|
"""
|
|
2527
2387
|
GetDllLibXls().XlsRange_get_HasFormulaDateTime.argtypes=[c_void_p]
|
|
2528
2388
|
GetDllLibXls().XlsRange_get_HasFormulaDateTime.restype=c_bool
|
|
@@ -2532,9 +2392,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2532
2392
|
@property
|
|
2533
2393
|
def HasFormulaErrorValue(self)->bool:
|
|
2534
2394
|
"""
|
|
2535
|
-
<summary>
|
|
2536
2395
|
Determines if all cells in the range contain error value.
|
|
2537
|
-
|
|
2396
|
+
|
|
2538
2397
|
"""
|
|
2539
2398
|
GetDllLibXls().XlsRange_get_HasFormulaErrorValue.argtypes=[c_void_p]
|
|
2540
2399
|
GetDllLibXls().XlsRange_get_HasFormulaErrorValue.restype=c_bool
|
|
@@ -2544,9 +2403,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2544
2403
|
@property
|
|
2545
2404
|
def HasFormulaNumberValue(self)->bool:
|
|
2546
2405
|
"""
|
|
2547
|
-
<summary>
|
|
2548
2406
|
Indicates whether current range has formula number value.
|
|
2549
|
-
|
|
2407
|
+
|
|
2550
2408
|
"""
|
|
2551
2409
|
GetDllLibXls().XlsRange_get_HasFormulaNumberValue.argtypes=[c_void_p]
|
|
2552
2410
|
GetDllLibXls().XlsRange_get_HasFormulaNumberValue.restype=c_bool
|
|
@@ -2566,22 +2424,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2566
2424
|
@property
|
|
2567
2425
|
def HasMerged(self)->bool:
|
|
2568
2426
|
"""
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
</code>
|
|
2583
|
-
</example>
|
|
2584
|
-
</summary>
|
|
2427
|
+
Indicates whether this range is part of merged range.
|
|
2428
|
+
Example::
|
|
2429
|
+
|
|
2430
|
+
#Create worksheet
|
|
2431
|
+
workbook = Workbook()
|
|
2432
|
+
worksheet = workbook.Worksheets[0]
|
|
2433
|
+
#Set text
|
|
2434
|
+
worksheet["A1"].Text = "Sample text in cell"
|
|
2435
|
+
#Set merge
|
|
2436
|
+
worksheet["A1:B1"].Merge()
|
|
2437
|
+
#Check merge
|
|
2438
|
+
Console.Write(worksheet["A1:B1"].HasMerged)
|
|
2439
|
+
|
|
2585
2440
|
"""
|
|
2586
2441
|
GetDllLibXls().XlsRange_get_HasMerged.argtypes=[c_void_p]
|
|
2587
2442
|
GetDllLibXls().XlsRange_get_HasMerged.restype=c_bool
|
|
@@ -2591,22 +2446,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2591
2446
|
@property
|
|
2592
2447
|
def HasNumber(self)->bool:
|
|
2593
2448
|
"""
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
</code>
|
|
2608
|
-
</example>
|
|
2609
|
-
</summary>
|
|
2449
|
+
Determines if any one cell in the range contain number.
|
|
2450
|
+
Example::
|
|
2451
|
+
|
|
2452
|
+
#Create worksheet
|
|
2453
|
+
workbook = Workbook()
|
|
2454
|
+
worksheet = workbook.Worksheets[0]
|
|
2455
|
+
#Assigning Value2 property of the Range
|
|
2456
|
+
worksheet["A2"].Value2 = 45
|
|
2457
|
+
#Checking Range types
|
|
2458
|
+
isNumber = worksheet["A2"].HasNumber
|
|
2459
|
+
#Save to file
|
|
2460
|
+
workbook.SaveToFile("HasNumber.xlsx")
|
|
2461
|
+
|
|
2610
2462
|
"""
|
|
2611
2463
|
GetDllLibXls().XlsRange_get_HasNumber.argtypes=[c_void_p]
|
|
2612
2464
|
GetDllLibXls().XlsRange_get_HasNumber.restype=c_bool
|
|
@@ -2616,9 +2468,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2616
2468
|
@property
|
|
2617
2469
|
def HasPictures(self)->bool:
|
|
2618
2470
|
"""
|
|
2619
|
-
<summary>
|
|
2620
2471
|
Indicates whether the range is blank.
|
|
2621
|
-
|
|
2472
|
+
|
|
2622
2473
|
"""
|
|
2623
2474
|
GetDllLibXls().XlsRange_get_HasPictures.argtypes=[c_void_p]
|
|
2624
2475
|
GetDllLibXls().XlsRange_get_HasPictures.restype=c_bool
|
|
@@ -2628,28 +2479,25 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2628
2479
|
@property
|
|
2629
2480
|
def HasRichText(self)->bool:
|
|
2630
2481
|
"""
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
</code>
|
|
2651
|
-
</example>
|
|
2652
|
-
</summary>
|
|
2482
|
+
Determines if all cells in the range contain rich text string.
|
|
2483
|
+
Example::
|
|
2484
|
+
|
|
2485
|
+
#Create worksheet
|
|
2486
|
+
workbook = Workbook()
|
|
2487
|
+
worksheet = workbook.Worksheets[0]
|
|
2488
|
+
#Create style
|
|
2489
|
+
style = workbook.Styles.Add("CustomStyle")
|
|
2490
|
+
#Set rich text
|
|
2491
|
+
richText = worksheet["C2"].RichText
|
|
2492
|
+
richText.Text = "Sample"
|
|
2493
|
+
font = style.Font
|
|
2494
|
+
font.Color = Color.Red
|
|
2495
|
+
richText.SetFont(0, 5, font)
|
|
2496
|
+
#Check HasRichText
|
|
2497
|
+
Console.Write(worksheet["C2"].HasRichText)
|
|
2498
|
+
#Save to file
|
|
2499
|
+
workbook.SaveToFile("HasRichText.xlsx")
|
|
2500
|
+
|
|
2653
2501
|
"""
|
|
2654
2502
|
GetDllLibXls().XlsRange_get_HasRichText.argtypes=[c_void_p]
|
|
2655
2503
|
GetDllLibXls().XlsRange_get_HasRichText.restype=c_bool
|
|
@@ -2659,9 +2507,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2659
2507
|
@property
|
|
2660
2508
|
def HasString(self)->bool:
|
|
2661
2509
|
"""
|
|
2662
|
-
<summary>
|
|
2663
2510
|
Determines if all cells in the range contain string.
|
|
2664
|
-
|
|
2511
|
+
|
|
2665
2512
|
"""
|
|
2666
2513
|
GetDllLibXls().XlsRange_get_HasString.argtypes=[c_void_p]
|
|
2667
2514
|
GetDllLibXls().XlsRange_get_HasString.restype=c_bool
|
|
@@ -2671,25 +2518,22 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2671
2518
|
@property
|
|
2672
2519
|
def HasStyle(self)->bool:
|
|
2673
2520
|
"""
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
</code>
|
|
2691
|
-
</example>
|
|
2692
|
-
</summary>
|
|
2521
|
+
Determines if all cells in the range contain differs from default style.
|
|
2522
|
+
Example::
|
|
2523
|
+
|
|
2524
|
+
#Create worksheet
|
|
2525
|
+
workbook = Workbook()
|
|
2526
|
+
worksheet = workbook.Worksheets[0]
|
|
2527
|
+
#Add style
|
|
2528
|
+
style = workbook.Styles.Add("CustomStyle")
|
|
2529
|
+
#Set color and style
|
|
2530
|
+
style.Color = Color.Red
|
|
2531
|
+
worksheet["C2"].Style = style
|
|
2532
|
+
#Check HasStyle
|
|
2533
|
+
Console.Write(worksheet["C2"].HasStyle)
|
|
2534
|
+
#Save to file
|
|
2535
|
+
workbook.SaveToFile("HasStyle.xlsx")
|
|
2536
|
+
|
|
2693
2537
|
"""
|
|
2694
2538
|
GetDllLibXls().XlsRange_get_HasStyle.argtypes=[c_void_p]
|
|
2695
2539
|
GetDllLibXls().XlsRange_get_HasStyle.restype=c_bool
|
|
@@ -2700,22 +2544,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2700
2544
|
|
|
2701
2545
|
def HorizontalAlignment(self)->'HorizontalAlignType':
|
|
2702
2546
|
"""
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
</code>
|
|
2717
|
-
</example>
|
|
2718
|
-
</summary>
|
|
2547
|
+
Returns or sets the horizontal alignment for the specified object.
|
|
2548
|
+
Example::
|
|
2549
|
+
|
|
2550
|
+
#Create worksheet
|
|
2551
|
+
workbook = Workbook()
|
|
2552
|
+
worksheet = workbook.Worksheets[0]
|
|
2553
|
+
#Set text
|
|
2554
|
+
worksheet["A1"].Text = "Test"
|
|
2555
|
+
#Set alignment
|
|
2556
|
+
worksheet["A1"].HorizontalAlignment = HorizontalAlignType.Right
|
|
2557
|
+
#Save to file
|
|
2558
|
+
workbook.SaveToFile("HorizontalAlignment.xlsx")
|
|
2559
|
+
|
|
2719
2560
|
"""
|
|
2720
2561
|
GetDllLibXls().XlsRange_get_HorizontalAlignment.argtypes=[c_void_p]
|
|
2721
2562
|
GetDllLibXls().XlsRange_get_HorizontalAlignment.restype=c_int
|
|
@@ -2732,9 +2573,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2732
2573
|
|
|
2733
2574
|
def Hyperlinks(self)->'IHyperLinks':
|
|
2734
2575
|
"""
|
|
2735
|
-
<summary>
|
|
2736
2576
|
Returns hyperlinks for this range.
|
|
2737
|
-
|
|
2577
|
+
|
|
2738
2578
|
"""
|
|
2739
2579
|
GetDllLibXls().XlsRange_get_Hyperlinks.argtypes=[c_void_p]
|
|
2740
2580
|
GetDllLibXls().XlsRange_get_Hyperlinks.restype=c_void_p
|
|
@@ -2747,9 +2587,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2747
2587
|
|
|
2748
2588
|
def IgnoreErrorOptions(self)->'IgnoreErrorType':
|
|
2749
2589
|
"""
|
|
2750
|
-
<summary>
|
|
2751
2590
|
Represents ignore error options. If not single cell returs concatenateed flags.
|
|
2752
|
-
|
|
2591
|
+
|
|
2753
2592
|
"""
|
|
2754
2593
|
GetDllLibXls().XlsRange_get_IgnoreErrorOptions.argtypes=[c_void_p]
|
|
2755
2594
|
GetDllLibXls().XlsRange_get_IgnoreErrorOptions.restype=c_int
|
|
@@ -2765,22 +2604,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2765
2604
|
@property
|
|
2766
2605
|
def IndentLevel(self)->int:
|
|
2767
2606
|
"""
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
</code>
|
|
2782
|
-
</example>
|
|
2783
|
-
</summary>
|
|
2607
|
+
Returns or sets the indent level for the cell or range. value should be 0 between 15.
|
|
2608
|
+
Example::
|
|
2609
|
+
|
|
2610
|
+
#Create worksheet
|
|
2611
|
+
workbook = Workbook()
|
|
2612
|
+
worksheet = workbook.Worksheets[0]
|
|
2613
|
+
#Set text
|
|
2614
|
+
worksheet["C2"].Text = "Sample"
|
|
2615
|
+
#Set indent level
|
|
2616
|
+
worksheet["C2"].IndentLevel = 2
|
|
2617
|
+
#Save to file
|
|
2618
|
+
workbook.SaveToFile("IndentLevel.xlsx")
|
|
2619
|
+
|
|
2784
2620
|
"""
|
|
2785
2621
|
GetDllLibXls().XlsRange_get_IndentLevel.argtypes=[c_void_p]
|
|
2786
2622
|
GetDllLibXls().XlsRange_get_IndentLevel.restype=c_int
|
|
@@ -2795,9 +2631,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2795
2631
|
@property
|
|
2796
2632
|
def IsAllNumber(self)->bool:
|
|
2797
2633
|
"""
|
|
2798
|
-
<summary>
|
|
2799
2634
|
Determines if all cells in the range contain number.
|
|
2800
|
-
|
|
2635
|
+
|
|
2801
2636
|
"""
|
|
2802
2637
|
GetDllLibXls().XlsRange_get_IsAllNumber.argtypes=[c_void_p]
|
|
2803
2638
|
GetDllLibXls().XlsRange_get_IsAllNumber.restype=c_bool
|
|
@@ -2807,9 +2642,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2807
2642
|
@property
|
|
2808
2643
|
def IsBlank(self)->bool:
|
|
2809
2644
|
"""
|
|
2810
|
-
<summary>
|
|
2811
2645
|
Indicates whether the range is blank.
|
|
2812
|
-
|
|
2646
|
+
|
|
2813
2647
|
"""
|
|
2814
2648
|
GetDllLibXls().XlsRange_get_IsBlank.argtypes=[c_void_p]
|
|
2815
2649
|
GetDllLibXls().XlsRange_get_IsBlank.restype=c_bool
|
|
@@ -2819,9 +2653,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2819
2653
|
@property
|
|
2820
2654
|
def IsFormulaHidden(self)->bool:
|
|
2821
2655
|
"""
|
|
2822
|
-
<summary>
|
|
2823
2656
|
Determines if the formula will be hidden when the worksheet is protected.
|
|
2824
|
-
|
|
2657
|
+
|
|
2825
2658
|
"""
|
|
2826
2659
|
GetDllLibXls().XlsRange_get_IsFormulaHidden.argtypes=[c_void_p]
|
|
2827
2660
|
GetDllLibXls().XlsRange_get_IsFormulaHidden.restype=c_bool
|
|
@@ -2836,9 +2669,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2836
2669
|
@property
|
|
2837
2670
|
def IsGroupedByColumn(self)->bool:
|
|
2838
2671
|
"""
|
|
2839
|
-
<summary>
|
|
2840
2672
|
Indicates whether this range is grouped by column.
|
|
2841
|
-
|
|
2673
|
+
|
|
2842
2674
|
"""
|
|
2843
2675
|
GetDllLibXls().XlsRange_get_IsGroupedByColumn.argtypes=[c_void_p]
|
|
2844
2676
|
GetDllLibXls().XlsRange_get_IsGroupedByColumn.restype=c_bool
|
|
@@ -2848,9 +2680,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2848
2680
|
@property
|
|
2849
2681
|
def IsGroupedByRow(self)->bool:
|
|
2850
2682
|
"""
|
|
2851
|
-
<summary>
|
|
2852
2683
|
Indicates whether this range is grouped by row.
|
|
2853
|
-
|
|
2684
|
+
|
|
2854
2685
|
"""
|
|
2855
2686
|
GetDllLibXls().XlsRange_get_IsGroupedByRow.argtypes=[c_void_p]
|
|
2856
2687
|
GetDllLibXls().XlsRange_get_IsGroupedByRow.restype=c_bool
|
|
@@ -2860,9 +2691,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2860
2691
|
@property
|
|
2861
2692
|
def IsInitialized(self)->bool:
|
|
2862
2693
|
"""
|
|
2863
|
-
<summary>
|
|
2864
2694
|
Indicates whether range has been initialized.
|
|
2865
|
-
|
|
2695
|
+
|
|
2866
2696
|
"""
|
|
2867
2697
|
GetDllLibXls().XlsRange_get_IsInitialized.argtypes=[c_void_p]
|
|
2868
2698
|
GetDllLibXls().XlsRange_get_IsInitialized.restype=c_bool
|
|
@@ -2873,9 +2703,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2873
2703
|
|
|
2874
2704
|
def IsStringsPreserved(self)->bool:
|
|
2875
2705
|
"""
|
|
2876
|
-
<summary>
|
|
2877
2706
|
Indicates whether all values in the range are preserved as strings.
|
|
2878
|
-
|
|
2707
|
+
|
|
2879
2708
|
"""
|
|
2880
2709
|
GetDllLibXls().XlsRange_get_IsStringsPreserved.argtypes=[c_void_p]
|
|
2881
2710
|
GetDllLibXls().XlsRange_get_IsStringsPreserved.restype=c_bool
|
|
@@ -2892,22 +2721,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2892
2721
|
@property
|
|
2893
2722
|
def IsWrapText(self)->bool:
|
|
2894
2723
|
"""
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
</code>
|
|
2909
|
-
</example>
|
|
2910
|
-
</summary>
|
|
2724
|
+
Determines if Microsoft Excel wraps the text in the object.
|
|
2725
|
+
Example::
|
|
2726
|
+
|
|
2727
|
+
#Create worksheet
|
|
2728
|
+
workbook = Workbook()
|
|
2729
|
+
worksheet = workbook.Worksheets[0]
|
|
2730
|
+
#Set text
|
|
2731
|
+
worksheet["A1"].Text = "This cell contains sample text"
|
|
2732
|
+
#Set wrap text
|
|
2733
|
+
worksheet["A1"].IsWrapText = true
|
|
2734
|
+
#Save to file
|
|
2735
|
+
workbook.SaveToFile("IsWrapText.xlsx")
|
|
2736
|
+
|
|
2911
2737
|
"""
|
|
2912
2738
|
GetDllLibXls().XlsRange_get_IsWrapText.argtypes=[c_void_p]
|
|
2913
2739
|
GetDllLibXls().XlsRange_get_IsWrapText.restype=c_bool
|
|
@@ -2922,9 +2748,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2922
2748
|
@property
|
|
2923
2749
|
def LastColumn(self)->int:
|
|
2924
2750
|
"""
|
|
2925
|
-
<summary>
|
|
2926
2751
|
Gets or sets last column of the range.
|
|
2927
|
-
|
|
2752
|
+
|
|
2928
2753
|
"""
|
|
2929
2754
|
GetDllLibXls().XlsRange_get_LastColumn.argtypes=[c_void_p]
|
|
2930
2755
|
GetDllLibXls().XlsRange_get_LastColumn.restype=c_int
|
|
@@ -2939,9 +2764,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2939
2764
|
@property
|
|
2940
2765
|
def LastRow(self)->int:
|
|
2941
2766
|
"""
|
|
2942
|
-
<summary>
|
|
2943
2767
|
Gets or sets last row of the range.
|
|
2944
|
-
|
|
2768
|
+
|
|
2945
2769
|
"""
|
|
2946
2770
|
GetDllLibXls().XlsRange_get_LastRow.argtypes=[c_void_p]
|
|
2947
2771
|
GetDllLibXls().XlsRange_get_LastRow.restype=c_int
|
|
@@ -2970,9 +2794,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2970
2794
|
|
|
2971
2795
|
def DisplayedText(self)->str:
|
|
2972
2796
|
"""
|
|
2973
|
-
<summary>
|
|
2974
2797
|
Gets cell displayed text.
|
|
2975
|
-
|
|
2798
|
+
|
|
2976
2799
|
"""
|
|
2977
2800
|
GetDllLibXls().XlsRange_get_DisplayedText.argtypes=[c_void_p]
|
|
2978
2801
|
GetDllLibXls().XlsRange_get_DisplayedText.restype=c_void_p
|
|
@@ -2983,9 +2806,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2983
2806
|
@property
|
|
2984
2807
|
def HasConditionFormats(self)->bool:
|
|
2985
2808
|
"""
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
</summary>
|
|
2809
|
+
Indicates whether each cell of the range has some conditional formatting.
|
|
2810
|
+
|
|
2989
2811
|
"""
|
|
2990
2812
|
GetDllLibXls().XlsRange_get_HasConditionFormats.argtypes=[c_void_p]
|
|
2991
2813
|
GetDllLibXls().XlsRange_get_HasConditionFormats.restype=c_bool
|
|
@@ -2996,22 +2818,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2996
2818
|
|
|
2997
2819
|
def NumberFormat(self)->str:
|
|
2998
2820
|
"""
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
</code>
|
|
3013
|
-
</example>
|
|
3014
|
-
</summary>
|
|
2821
|
+
Returns or sets the format code for the object.
|
|
2822
|
+
Example::
|
|
2823
|
+
|
|
2824
|
+
#Create worksheet
|
|
2825
|
+
workbook = Workbook()
|
|
2826
|
+
worksheet = workbook.Worksheets[0]
|
|
2827
|
+
#Set data
|
|
2828
|
+
worksheet["C2"].Value = "3100.23"
|
|
2829
|
+
#Set number format
|
|
2830
|
+
worksheet["C2"].NumberFormat = "#,#1.#"
|
|
2831
|
+
#Save to file
|
|
2832
|
+
workbook.SaveToFile("NumberFormat.xlsx")
|
|
2833
|
+
|
|
3015
2834
|
"""
|
|
3016
2835
|
GetDllLibXls().XlsRange_get_NumberFormat.argtypes=[c_void_p]
|
|
3017
2836
|
GetDllLibXls().XlsRange_get_NumberFormat.restype=c_void_p
|
|
@@ -3028,23 +2847,20 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
3028
2847
|
|
|
3029
2848
|
def NumberText(self)->str:
|
|
3030
2849
|
"""
|
|
3031
|
-
<summary>
|
|
3032
2850
|
Returns cell text for number format.
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
</example>
|
|
3047
|
-
</summary>
|
|
2851
|
+
Example::
|
|
2852
|
+
|
|
2853
|
+
#Create worksheet
|
|
2854
|
+
workbook = Workbook()
|
|
2855
|
+
worksheet = workbook.Worksheets[0]
|
|
2856
|
+
#Gets cell value with its number format
|
|
2857
|
+
XlsRange range= worksheet.Range[3, 1]
|
|
2858
|
+
range.Value = "1/1/2015"
|
|
2859
|
+
range.NumberFormat = "dd-MMM-yyyy"
|
|
2860
|
+
numberText = range.NumberText
|
|
2861
|
+
#Save to file
|
|
2862
|
+
workbook.SaveToFile("NumberText.xlsx")
|
|
2863
|
+
|
|
3048
2864
|
"""
|
|
3049
2865
|
GetDllLibXls().XlsRange_get_NumberText.argtypes=[c_void_p]
|
|
3050
2866
|
GetDllLibXls().XlsRange_get_NumberText.restype=c_void_p
|
|
@@ -3055,9 +2871,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
3055
2871
|
@property
|
|
3056
2872
|
def NumberValue(self)->float:
|
|
3057
2873
|
"""
|
|
3058
|
-
<summary>
|
|
3059
2874
|
Gets or sets number value of the range.
|
|
3060
|
-
|
|
2875
|
+
|
|
3061
2876
|
"""
|
|
3062
2877
|
GetDllLibXls().XlsRange_get_NumberValue.argtypes=[c_void_p]
|
|
3063
2878
|
GetDllLibXls().XlsRange_get_NumberValue.restype=c_double
|
|
@@ -3086,19 +2901,15 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
3086
2901
|
|
|
3087
2902
|
def RangeAddress(self)->str:
|
|
3088
2903
|
"""
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
string address = worksheet.Range[3, 4].RangeAddress;
|
|
3099
|
-
</code>
|
|
3100
|
-
</example>
|
|
3101
|
-
</summary>
|
|
2904
|
+
Returns the range reference in the language of the macro. Read-only String.
|
|
2905
|
+
Example::
|
|
2906
|
+
|
|
2907
|
+
#Create worksheet
|
|
2908
|
+
workbook = Workbook()
|
|
2909
|
+
worksheet = workbook.Worksheets[0]
|
|
2910
|
+
#Get RangeAddress
|
|
2911
|
+
address = worksheet.Range[3, 4].RangeAddress
|
|
2912
|
+
|
|
3102
2913
|
"""
|
|
3103
2914
|
GetDllLibXls().XlsRange_get_RangeAddress.argtypes=[c_void_p]
|
|
3104
2915
|
GetDllLibXls().XlsRange_get_RangeAddress.restype=c_void_p
|
|
@@ -3110,18 +2921,15 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
3110
2921
|
|
|
3111
2922
|
def RangeAddressLocal(self)->str:
|
|
3112
2923
|
"""
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
</code>
|
|
3123
|
-
</example>
|
|
3124
|
-
</summary>
|
|
2924
|
+
Returns the range reference for the specified range in the language of the user.
|
|
2925
|
+
Example::
|
|
2926
|
+
|
|
2927
|
+
#Create worksheet
|
|
2928
|
+
workbook = Workbook()
|
|
2929
|
+
worksheet = workbook.Worksheets[0]
|
|
2930
|
+
#Get RangeAddressLocal
|
|
2931
|
+
address = worksheet.Range[3, 4].RangeAddressLocal
|
|
2932
|
+
|
|
3125
2933
|
"""
|
|
3126
2934
|
GetDllLibXls().XlsRange_get_RangeAddressLocal.argtypes=[c_void_p]
|
|
3127
2935
|
GetDllLibXls().XlsRange_get_RangeAddressLocal.restype=c_void_p
|
|
@@ -3133,9 +2941,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
3133
2941
|
|
|
3134
2942
|
def RangeGlobalAddressWithoutSheetName(self)->str:
|
|
3135
2943
|
"""
|
|
3136
|
-
<summary>
|
|
3137
2944
|
Return global address without worksheet name.
|
|
3138
|
-
|
|
2945
|
+
|
|
3139
2946
|
"""
|
|
3140
2947
|
GetDllLibXls().XlsRange_get_RangeGlobalAddressWithoutSheetName.argtypes=[c_void_p]
|
|
3141
2948
|
GetDllLibXls().XlsRange_get_RangeGlobalAddressWithoutSheetName.restype=c_void_p
|
|
@@ -3147,18 +2954,15 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
3147
2954
|
|
|
3148
2955
|
def RangeGlobalAddress(self)->str:
|
|
3149
2956
|
"""
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
</code>
|
|
3160
|
-
</example>
|
|
3161
|
-
</summary>
|
|
2957
|
+
Returns the range reference in the language of the macro.
|
|
2958
|
+
Example::
|
|
2959
|
+
|
|
2960
|
+
#Create worksheet
|
|
2961
|
+
workbook = Workbook()
|
|
2962
|
+
worksheet = workbook.Worksheets[0]
|
|
2963
|
+
#Get RangeAddress
|
|
2964
|
+
address = worksheet.Range[3, 4].RangeGlobalAddress
|
|
2965
|
+
|
|
3162
2966
|
"""
|
|
3163
2967
|
GetDllLibXls().XlsRange_get_RangeGlobalAddress.argtypes=[c_void_p]
|
|
3164
2968
|
GetDllLibXls().XlsRange_get_RangeGlobalAddress.restype=c_void_p
|