spire-xls 15.5.0__py3-none-win_amd64.whl → 15.11.1__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- spire/xls/AddtionalFormatWrapper.py +116 -132
- spire/xls/Average.py +18 -4
- spire/xls/CellBaseStyle.py +13 -6
- spire/xls/CellBorder.py +25 -20
- spire/xls/CellRange.py +315 -277
- spire/xls/CellStyle.py +26 -12
- spire/xls/CellStyleFlag.py +187 -57
- spire/xls/CellStyleObject.py +55 -79
- spire/xls/CellValueChangedEventArgs.py +3 -9
- spire/xls/ColorScale.py +31 -39
- spire/xls/CommentsRange.py +185 -95
- spire/xls/CommonWrapper.py +23 -8
- spire/xls/ConverterSetting.py +34 -36
- spire/xls/DBConnection.py +41 -8
- spire/xls/DVAspect.py +8 -2
- spire/xls/DataBar.py +29 -28
- spire/xls/DocumentProperty.py +87 -39
- spire/xls/Excel2016Charttype.py +14 -2
- spire/xls/ExcelComment.py +1 -2
- spire/xls/ExcelCommentObject.py +212 -122
- spire/xls/ExcelFont.py +94 -73
- spire/xls/ExcelGradient.py +70 -24
- spire/xls/ExcelInterior.py +43 -27
- spire/xls/ExportTableOptions.py +38 -9
- spire/xls/ExternalConnection.py +85 -20
- spire/xls/ExternalLink.py +26 -10
- spire/xls/FileFormat.py +32 -4
- spire/xls/Font.py +165 -112
- spire/xls/FontArrayWrapper.py +135 -36
- spire/xls/FontWrapper.py +207 -103
- spire/xls/Format3D.py +130 -30
- spire/xls/GeomertyAdjustValue.py +22 -10
- spire/xls/GetText.py +8 -2
- spire/xls/GoalSeek.py +44 -14
- spire/xls/GoalSeekResult.py +36 -3
- spire/xls/GradientArrayWrapper.py +92 -28
- spire/xls/GradientStops.py +75 -25
- spire/xls/GradientType.py +10 -2
- spire/xls/GroupShape.py +1 -2
- spire/xls/HPageBreak.py +2 -2
- spire/xls/HTMLOptions.py +7 -19
- spire/xls/HyperLink.py +2 -2
- spire/xls/LOGFONT.py +78 -30
- spire/xls/MsoTextFrame.py +102 -0
- spire/xls/OColor.py +62 -29
- spire/xls/OdsPageBackground.py +5 -10
- spire/xls/PageColRow.py +21 -10
- spire/xls/PageSetup.py +2 -3
- spire/xls/PaperSizeEntry.py +6 -0
- spire/xls/PicStretch.py +47 -14
- spire/xls/PicTile.py +35 -10
- spire/xls/QueryTableXls.py +19 -6
- spire/xls/RTFCommentArray.py +59 -22
- spire/xls/RTFStringArray.py +59 -22
- spire/xls/RangeRichTextString.py +22 -10
- spire/xls/ReferRangeArea.py +33 -18
- spire/xls/RichText.py +11 -9
- spire/xls/RichTextObject.py +63 -32
- spire/xls/RichTextShape.py +90 -33
- spire/xls/RichTextString.py +62 -24
- spire/xls/RtfTextWriter.py +68 -22
- spire/xls/SaveShapeTypeOption.py +19 -37
- spire/xls/ShapeGlow.py +35 -15
- spire/xls/ShapeReflection.py +55 -18
- spire/xls/StyleArrayWrapper.py +169 -78
- spire/xls/TextBoxShapeBase.py +63 -30
- spire/xls/TextSaveOptions.py +39 -17
- spire/xls/TopBottom.py +18 -6
- spire/xls/VPageBreak.py +4 -5
- spire/xls/Validation.py +12 -6
- spire/xls/WebQueryConnection.py +52 -20
- spire/xls/Workbook.py +884 -916
- spire/xls/Worksheet.py +507 -421
- spire/xls/WriteProtection.py +3 -6
- spire/xls/XlsAddInFunction.py +36 -22
- spire/xls/XlsArcShape.py +157 -41
- spire/xls/XlsBitmapShape.py +141 -43
- spire/xls/XlsBorder.py +73 -31
- spire/xls/XlsBorderArrayWrapper.py +50 -14
- spire/xls/XlsButtonShape.py +59 -17
- spire/xls/XlsCheckBoxShape.py +72 -18
- spire/xls/XlsComboBoxShape.py +53 -16
- spire/xls/XlsComment.py +109 -31
- spire/xls/XlsDataValidationTable.py +46 -17
- spire/xls/XlsDocumentProperty.py +163 -44
- spire/xls/XlsEventArgs.py +33 -24
- spire/xls/XlsEventHandler.py +10 -4
- spire/xls/XlsFill.py +64 -20
- spire/xls/XlsFont.py +202 -66
- spire/xls/XlsGradient.py +90 -26
- spire/xls/XlsGradientStop.py +57 -12
- spire/xls/XlsGroupBoxShape.py +36 -10
- spire/xls/XlsHPageBreak.py +47 -24
- spire/xls/XlsHyperLink.py +111 -42
- spire/xls/XlsLabelShape.py +27 -8
- spire/xls/XlsLineShape.py +188 -48
- spire/xls/XlsListBoxShape.py +63 -14
- spire/xls/XlsName.py +779 -331
- spire/xls/XlsObject.py +2 -4
- spire/xls/XlsOvalShape.py +79 -21
- spire/xls/XlsPageSetup.py +71 -32
- spire/xls/XlsPageSetupBase.py +29 -58
- spire/xls/XlsPrstGeomShape.py +29 -10
- spire/xls/XlsRadioButtonShape.py +84 -42
- spire/xls/XlsRange.py +907 -1087
- spire/xls/XlsRectangleShape.py +70 -23
- spire/xls/XlsScrollBarShape.py +78 -18
- spire/xls/XlsShape.py +396 -183
- spire/xls/XlsShapeFill.py +401 -92
- spire/xls/XlsShapeLineFormat.py +201 -44
- spire/xls/XlsSpinnerShape.py +57 -14
- spire/xls/XlsStyle.py +54 -23
- spire/xls/XlsTextBoxShape.py +263 -60
- spire/xls/XlsVPageBreak.py +9 -14
- spire/xls/XlsValidation.py +325 -72
- spire/xls/XlsValidationWrapper.py +217 -49
- spire/xls/XlsWorkbook.py +573 -88
- spire/xls/XlsWorksheet.py +1312 -1232
- spire/xls/XlsWorksheetBase.py +279 -185
- spire/xls/__init__.py +531 -529
- spire/xls/autofilter/AutoFitterOptions.py +91 -0
- spire/xls/autofilter/ColorFilter.py +61 -0
- spire/xls/autofilter/CustomFilter.py +207 -0
- spire/xls/autofilter/CustomFilterCollection.py +146 -0
- spire/xls/autofilter/DateTimeGroupItem.py +196 -0
- spire/xls/autofilter/DynamicFilter.py +89 -0
- spire/xls/autofilter/FilterColumn.py +289 -0
- spire/xls/autofilter/MultipleFilterCollection.py +218 -0
- spire/xls/autofilter/Top10Filter.py +109 -0
- spire/xls/autofilter/XlsAutoFiltersCollection.py +146 -0
- spire/xls/charts/Chart.py +369 -0
- spire/xls/charts/ChartArea.py +58 -0
- spire/xls/charts/ChartBackgroundMode.py +17 -0
- spire/xls/charts/ChartCategoryAxis.py +88 -0
- spire/xls/charts/ChartDataLabels.py +40 -0
- spire/xls/charts/ChartDataPoint.py +40 -0
- spire/xls/charts/ChartFormat.py +68 -0
- spire/xls/charts/ChartGridLine.py +26 -0
- spire/xls/charts/ChartLegend.py +40 -0
- spire/xls/charts/ChartLegendEntriesColl.py +165 -0
- spire/xls/charts/ChartLegendEntry.py +26 -0
- spire/xls/charts/ChartPlotArea.py +60 -0
- spire/xls/charts/ChartSerie.py +147 -0
- spire/xls/charts/ChartSerieDataFormat.py +54 -0
- spire/xls/charts/ChartSeriesAxis.py +68 -0
- spire/xls/charts/ChartShadow.py +288 -0
- spire/xls/charts/ChartSheet.py +269 -0
- spire/xls/charts/ChartTextArea.py +898 -0
- spire/xls/charts/ChartValueAxis.py +90 -0
- spire/xls/charts/HistogramAxisFormat.py +32 -0
- spire/xls/charts/XlsChart.py +1667 -0
- spire/xls/charts/XlsChartAxis.py +596 -0
- spire/xls/charts/XlsChartBorder.py +180 -0
- spire/xls/charts/XlsChartCategoryAxis.py +640 -0
- spire/xls/charts/XlsChartDataLabelArea.py +368 -0
- spire/xls/charts/XlsChartDataLabels.py +702 -0
- spire/xls/charts/XlsChartDataPoint.py +105 -0
- spire/xls/charts/XlsChartDataTable.py +373 -0
- spire/xls/charts/XlsChartDropBar.py +295 -0
- spire/xls/charts/XlsChartFill.py +659 -0
- spire/xls/charts/XlsChartFormat.py +1229 -0
- spire/xls/charts/XlsChartFrameFormat.py +613 -0
- spire/xls/charts/XlsChartGridLine.py +167 -0
- spire/xls/charts/XlsChartInterior.py +229 -0
- spire/xls/charts/XlsChartLegend.py +334 -0
- spire/xls/charts/XlsChartLegendArea.py +418 -0
- spire/xls/charts/XlsChartLegendEntry.py +152 -0
- spire/xls/charts/XlsChartSerie.py +607 -0
- spire/xls/charts/XlsChartSerieDataFormat.py +1070 -0
- spire/xls/charts/XlsChartSeriesAxis.py +306 -0
- spire/xls/charts/XlsChartShape.py +1256 -0
- spire/xls/charts/XlsChartTitleArea.py +399 -0
- spire/xls/charts/XlsChartValueAxis.py +344 -0
- spire/xls/charts/XlsChartWallOrFloor.py +349 -0
- spire/xls/charts/__init__.py +0 -0
- spire/xls/collection/AddInFunctionsCollection.py +31 -0
- spire/xls/collection/ArcShapeCollection.py +94 -0
- spire/xls/collection/AutoFiltersCollection.py +539 -0
- spire/xls/collection/BordersCollection.py +196 -0
- spire/xls/collection/BordersCollectionArrayWrapper.py +129 -0
- spire/xls/collection/BuiltInDocumentProperties.py +12 -0
- spire/xls/collection/ButtonShapeCollection.py +70 -0
- spire/xls/collection/ChartDataPointsCollection.py +72 -0
- spire/xls/collection/ChartFormatCollection.py +58 -0
- spire/xls/collection/ChartSeries.py +187 -0
- spire/xls/collection/ChartsCollection.py +119 -0
- spire/xls/collection/CollectionBase.py +201 -0
- spire/xls/collection/CollectionExtended.py +96 -0
- spire/xls/collection/ComboBoxCollection.py +89 -0
- spire/xls/collection/CommentsCollection.py +134 -0
- spire/xls/collection/DataConnections.py +25 -0
- spire/xls/collection/ExternalLinkCollection.py +26 -0
- spire/xls/collection/GroupBoxCollection.py +70 -0
- spire/xls/collection/GroupShapeCollection.py +45 -0
- spire/xls/collection/HPageBreaksCollection.py +116 -0
- spire/xls/collection/HyperLinksCollection.py +72 -0
- spire/xls/collection/ListObjectCollection.py +48 -0
- spire/xls/collection/OvalShapeCollection.py +89 -0
- spire/xls/collection/PicturesCollection.py +574 -0
- spire/xls/collection/PrstGeomShapeCollection.py +128 -0
- spire/xls/collection/QueryTableCollection.py +25 -0
- spire/xls/collection/RadioButtonCollection.py +139 -0
- spire/xls/collection/RangesCollection.py +556 -0
- spire/xls/collection/ShapeCollectionBase.py +87 -0
- spire/xls/collection/StylesCollection.py +140 -0
- spire/xls/collection/VPageBreaksCollection.py +95 -0
- spire/xls/collection/WorksheetsCollection.py +363 -0
- spire/xls/collection/XlsAddInFunctionsCollection.py +108 -0
- spire/xls/collection/XlsBordersCollection.py +98 -0
- spire/xls/collection/XlsBuiltInDocumentProperties.py +611 -0
- spire/xls/collection/XlsChartDataPointsCollection.py +119 -0
- spire/xls/collection/XlsChartFormatCollection.py +160 -0
- spire/xls/collection/XlsChartsCollection.py +91 -0
- spire/xls/collection/XlsCommentsCollection.py +116 -0
- spire/xls/collection/XlsDataValidationCollection.py +157 -0
- spire/xls/collection/XlsFontsCollection.py +52 -0
- spire/xls/collection/XlsHPageBreaksCollection.py +87 -0
- spire/xls/collection/XlsHyperLinksCollection.py +104 -0
- spire/xls/collection/XlsRangesCollection.py +1641 -0
- spire/xls/collection/XlsStylesCollection.py +74 -0
- spire/xls/collection/XlsVPageBreaksCollection.py +81 -0
- spire/xls/collection/XlsWorkbookObjectsCollection.py +95 -0
- spire/xls/collection/XlsWorksheetsCollection.py +423 -0
- spire/xls/collection/__init__.py +0 -0
- spire/xls/collection/pivot_table/PivotConditionalFormatCollection.py +38 -0
- spire/xls/collection/pivot_table/PivotTableFields.py +108 -0
- spire/xls/collection/pivot_table/XlsPivotCachesCollection.py +124 -0
- spire/xls/collection/pivot_table/XlsPivotTablesCollection.py +132 -0
- spire/xls/collection/pivot_table/__init__.py +0 -0
- spire/xls/conditional_formatting/ColorConditionValue.py +102 -0
- spire/xls/conditional_formatting/CondFormatCollectionWrapper.py +153 -0
- spire/xls/conditional_formatting/ConditionValue.py +83 -0
- spire/xls/conditional_formatting/ConditionValuePosition.py +16 -0
- spire/xls/conditional_formatting/ConditionalFormat.py +13 -0
- spire/xls/conditional_formatting/ConditionalFormatScope.py +16 -0
- spire/xls/conditional_formatting/ConditionalFormatWrapper.py +1271 -0
- spire/xls/conditional_formatting/ConditionalFormats.py +65 -0
- spire/xls/conditional_formatting/DataBarBorder.py +51 -0
- spire/xls/conditional_formatting/NegativeBarFormat.py +90 -0
- spire/xls/conditional_formatting/XlsConditionValue.py +134 -0
- spire/xls/conditional_formatting/XlsConditionalFormat.py +1163 -0
- spire/xls/conditional_formatting/XlsConditionalFormats.py +684 -0
- spire/xls/conditional_formatting/__init__.py +0 -0
- spire/xls/enums/AlertStyleType.py +17 -0
- spire/xls/enums/AutoFormatOptions.py +22 -0
- spire/xls/enums/AutoFormatType.py +31 -0
- spire/xls/enums/AverageType.py +24 -0
- spire/xls/enums/AxisLineIdentifierType.py +18 -0
- spire/xls/enums/AxisTextDirectionType.py +17 -0
- spire/xls/enums/AxisType.py +17 -0
- spire/xls/enums/BaseFormatType.py +16 -0
- spire/xls/enums/BordersLineType.py +22 -0
- spire/xls/enums/BubbleSizeType.py +16 -0
- spire/xls/enums/BuiltInPropertyType.py +49 -0
- spire/xls/enums/BuiltInStyles.py +65 -0
- spire/xls/enums/CategoryType.py +17 -0
- spire/xls/enums/CellDataType.py +22 -0
- spire/xls/enums/CellFormatType.py +20 -0
- spire/xls/enums/ChartBaseUnitType.py +17 -0
- spire/xls/enums/ChartDisplayUnitType.py +25 -0
- spire/xls/enums/ChartLinePatternType.py +23 -0
- spire/xls/enums/ChartLineWeightType.py +18 -0
- spire/xls/enums/ChartMarkerType.py +26 -0
- spire/xls/enums/ChartParagraphType.py +17 -0
- spire/xls/enums/ChartPieType.py +17 -0
- spire/xls/enums/ChartPlotEmptyType.py +17 -0
- spire/xls/enums/CheckState.py +17 -0
- spire/xls/enums/ColorType.py +17 -0
- spire/xls/enums/CommentHAlignType.py +20 -0
- spire/xls/enums/CommentVAlignType.py +19 -0
- spire/xls/enums/ComparisonOperatorType.py +23 -0
- spire/xls/enums/ConditionalFormatType.py +32 -0
- spire/xls/enums/DataLabelPositionType.py +25 -0
- spire/xls/enums/DataSourceType.py +18 -0
- spire/xls/enums/DropLineStyleType.py +17 -0
- spire/xls/enums/ErrorBarIncludeType.py +18 -0
- spire/xls/enums/ErrorBarType.py +19 -0
- spire/xls/enums/ExcelCalculationMode.py +17 -0
- spire/xls/enums/ExcelChartType.py +95 -0
- spire/xls/enums/ExcelColors.py +120 -0
- spire/xls/enums/ExcelComboType.py +21 -0
- spire/xls/enums/ExcelHorizontalAlignment.py +20 -0
- spire/xls/enums/ExcelPatternType.py +51 -0
- spire/xls/enums/ExcelQuartileCalculation.py +16 -0
- spire/xls/enums/ExcelShapeType.py +40 -0
- spire/xls/enums/ExcelSheetType.py +19 -0
- spire/xls/enums/ExcelTreeMapLabelOption.py +17 -0
- spire/xls/enums/ExcelVersion.py +23 -0
- spire/xls/enums/ExcelVerticalAlignment.py +20 -0
- spire/xls/enums/ExpandCollapseFlags.py +17 -0
- spire/xls/enums/FilterConditionType.py +20 -0
- spire/xls/enums/FilterDataType.py +21 -0
- spire/xls/enums/FontUnderlineType.py +19 -0
- spire/xls/enums/FontVertialAlignmentType.py +17 -0
- spire/xls/enums/GradientColorType.py +17 -0
- spire/xls/enums/GradientPatternType.py +63 -0
- spire/xls/enums/GradientPresetType.py +38 -0
- spire/xls/enums/GradientStyleType.py +20 -0
- spire/xls/enums/GradientTextureType.py +39 -0
- spire/xls/enums/GradientVariantsType.py +18 -0
- spire/xls/enums/HorizontalAlignType.py +22 -0
- spire/xls/enums/HyperLinkType.py +19 -0
- spire/xls/enums/IgnoreErrorType.py +23 -0
- spire/xls/enums/ImageFormatType.py +17 -0
- spire/xls/enums/ImageType.py +16 -0
- spire/xls/enums/LegendPositionType.py +20 -0
- spire/xls/enums/LegendSpacingType.py +17 -0
- spire/xls/enums/LineStyleType.py +28 -0
- spire/xls/enums/OleObjectType.py +50 -0
- spire/xls/enums/OrderBy.py +18 -0
- spire/xls/enums/OrderType.py +16 -0
- spire/xls/enums/PageBreakExtentType.py +16 -0
- spire/xls/enums/PageBreakType.py +17 -0
- spire/xls/enums/PageOrientationType.py +16 -0
- spire/xls/enums/PagesOrderType.py +16 -0
- spire/xls/enums/PaperSizeType.py +134 -0
- spire/xls/enums/PivotGroupByTypes.py +22 -0
- spire/xls/enums/PrintCommentType.py +17 -0
- spire/xls/enums/PrintErrorsType.py +18 -0
- spire/xls/enums/ReadingOrderType.py +17 -0
- spire/xls/enums/RectangleStyleType.py +16 -0
- spire/xls/enums/ResizeBehaveType.py +17 -0
- spire/xls/enums/ShapeArrowLengthType.py +17 -0
- spire/xls/enums/ShapeArrowStyleType.py +20 -0
- spire/xls/enums/ShapeArrowWidthType.py +17 -0
- spire/xls/enums/ShapeDashLineStyleType.py +22 -0
- spire/xls/enums/ShapeFillType.py +21 -0
- spire/xls/enums/ShapeLayerChangeType.py +18 -0
- spire/xls/enums/ShapeLineStyleType.py +19 -0
- spire/xls/enums/SheetProtectionType.py +32 -0
- spire/xls/enums/SortComparsionType.py +18 -0
- spire/xls/enums/SortOrientationType.py +16 -0
- spire/xls/enums/SortedWayType.py +17 -0
- spire/xls/enums/SparklineType.py +17 -0
- spire/xls/enums/SplitType.py +18 -0
- spire/xls/enums/TextDirection.py +19 -0
- spire/xls/enums/TextRotationType.py +18 -0
- spire/xls/enums/ThemeColorType.py +26 -0
- spire/xls/enums/TickLabelPositionType.py +18 -0
- spire/xls/enums/TickMarkType.py +18 -0
- spire/xls/enums/TopBottomType.py +18 -0
- spire/xls/enums/TopFormatType.py +17 -0
- spire/xls/enums/TrendLineType.py +20 -0
- spire/xls/enums/UnknownVariableAction.py +17 -0
- spire/xls/enums/ValidationComparisonOperator.py +22 -0
- spire/xls/enums/VariableTypeAction.py +17 -0
- spire/xls/enums/VerticalAlignType.py +19 -0
- spire/xls/enums/ViewMode.py +17 -0
- spire/xls/enums/WorksheetVisibility.py +17 -0
- spire/xls/enums/XLSXBorderJoinType.py +18 -0
- spire/xls/enums/XLSXChartMaterialType.py +31 -0
- spire/xls/enums/XLSXChartPrespectiveType.py +20 -0
- spire/xls/enums/XLSXChartShadowInnerType.py +24 -0
- spire/xls/enums/XLSXChartShadowOuterType.py +24 -0
- spire/xls/enums/__init__.py +1 -0
- spire/xls/interfaces/IArcShape.py +285 -0
- spire/xls/interfaces/IChart.py +1597 -0
- spire/xls/interfaces/IChartAxis.py +786 -0
- spire/xls/interfaces/IChartBorder.py +203 -0
- spire/xls/interfaces/IChartCategoryAxis.py +522 -0
- spire/xls/interfaces/IChartDataLabels.py +419 -0
- spire/xls/interfaces/IChartDataPoint.py +114 -0
- spire/xls/interfaces/IChartDataTable.py +184 -0
- spire/xls/interfaces/IChartErrorBars.py +340 -0
- spire/xls/interfaces/IChartFillBorder.py +268 -0
- spire/xls/interfaces/IChartFormat.py +521 -0
- spire/xls/interfaces/IChartFrameFormat.py +85 -0
- spire/xls/interfaces/IChartGridLine.py +100 -0
- spire/xls/interfaces/IChartInterior.py +259 -0
- spire/xls/interfaces/IChartLegend.py +453 -0
- spire/xls/interfaces/IChartLegendEntry.py +167 -0
- spire/xls/interfaces/IChartPageSetup.py +51 -0
- spire/xls/interfaces/IChartSerie.py +727 -0
- spire/xls/interfaces/IChartSerieDataFormat.py +519 -0
- spire/xls/interfaces/IChartSeriesAxis.py +118 -0
- spire/xls/interfaces/IChartShape.py +88 -0
- spire/xls/interfaces/IChartTextArea.py +181 -0
- spire/xls/interfaces/IChartTrendLine.py +502 -0
- spire/xls/interfaces/IChartValueAxis.py +586 -0
- spire/xls/interfaces/IChartWallOrFloor.py +40 -0
- spire/xls/interfaces/ICheckBox.py +120 -0
- spire/xls/interfaces/ICloneParent.py +29 -0
- spire/xls/interfaces/IColorConditionValue.py +44 -0
- spire/xls/interfaces/IColorScale.py +39 -0
- spire/xls/interfaces/ICombinedRange.py +109 -0
- spire/xls/interfaces/IComboBoxShape.py +120 -0
- spire/xls/interfaces/IComment.py +110 -0
- spire/xls/interfaces/ICommentShape.py +20 -0
- spire/xls/interfaces/IConditionValue.py +83 -0
- spire/xls/interfaces/IConditionalFormat.py +757 -0
- spire/xls/interfaces/IConditionalFormats.py +66 -0
- spire/xls/interfaces/ICustomDocumentProperties.py +168 -0
- spire/xls/interfaces/IDataBar.py +127 -0
- spire/xls/interfaces/IDataValidation.py +506 -0
- spire/xls/interfaces/IDataValidationTable.py +84 -0
- spire/xls/interfaces/IDigitalSignature.py +111 -0
- spire/xls/interfaces/IDigitalSignatures.py +33 -0
- spire/xls/interfaces/IDocumentProperty.py +276 -0
- spire/xls/interfaces/IErrorIndicator.py +38 -0
- spire/xls/interfaces/IExtendIndex.py +26 -0
- spire/xls/interfaces/IExtendedFormat.py +631 -0
- spire/xls/interfaces/IFont.py +313 -0
- spire/xls/interfaces/IFormat3D.py +307 -0
- spire/xls/interfaces/IGeomPath.py +27 -0
- spire/xls/interfaces/IGeomPathInfo.py +141 -0
- spire/xls/interfaces/IGeomPathShape.py +40 -0
- spire/xls/interfaces/IGlow.py +104 -0
- spire/xls/interfaces/IGradient.py +203 -0
- spire/xls/interfaces/IGroupBox.py +82 -0
- spire/xls/interfaces/IHPageBreak.py +26 -0
- spire/xls/interfaces/IHyperLink.py +137 -0
- spire/xls/interfaces/IIconSet.py +115 -0
- spire/xls/interfaces/IInterior.py +137 -0
- spire/xls/interfaces/IInternalAddtionalFormat.py +277 -0
- spire/xls/interfaces/IInternalFont.py +38 -0
- spire/xls/interfaces/ILabelShape.py +60 -0
- spire/xls/interfaces/ILineShape.py +334 -0
- spire/xls/interfaces/IListObject.py +443 -0
- spire/xls/interfaces/IListObjectColumn.py +196 -0
- spire/xls/interfaces/IMarkersDesigner.py +133 -0
- spire/xls/interfaces/IMigrantRange.py +28 -0
- spire/xls/interfaces/INamedObject.py +27 -0
- spire/xls/interfaces/INamedRange.py +246 -0
- spire/xls/interfaces/INumberFormat.py +90 -0
- spire/xls/interfaces/IOleObject.py +225 -0
- spire/xls/interfaces/IOptimizedUpdate.py +35 -0
- spire/xls/interfaces/IOvalShape.py +201 -0
- spire/xls/interfaces/IPageSetup.py +260 -0
- spire/xls/interfaces/IPageSetupBase.py +849 -0
- spire/xls/interfaces/IPictureShape.py +118 -0
- spire/xls/interfaces/IPropertyData.py +100 -0
- spire/xls/interfaces/IPrstGeomShape.py +103 -0
- spire/xls/interfaces/IRadioButton.py +159 -0
- spire/xls/interfaces/IRectangleShape.py +90 -0
- spire/xls/interfaces/IReflectionEffect.py +217 -0
- spire/xls/interfaces/IScrollBarShape.py +139 -0
- spire/xls/interfaces/IShadow.py +385 -0
- spire/xls/interfaces/IShape.py +620 -0
- spire/xls/interfaces/IShapeFill.py +767 -0
- spire/xls/interfaces/IShapeLineFormat.py +488 -0
- spire/xls/interfaces/ISortColumn.py +138 -0
- spire/xls/interfaces/ISortColumns.py +106 -0
- spire/xls/interfaces/ISortedRule.py +154 -0
- spire/xls/interfaces/ISpinnerShape.py +124 -0
- spire/xls/interfaces/IStyle.py +60 -0
- spire/xls/interfaces/ITabSheet.py +364 -0
- spire/xls/interfaces/ITextBox.py +140 -0
- spire/xls/interfaces/ITextBoxLinkShape.py +48 -0
- spire/xls/interfaces/ITextBoxShape.py +27 -0
- spire/xls/interfaces/ITextFrame.py +146 -0
- spire/xls/interfaces/IVPageBreak.py +26 -0
- spire/xls/interfaces/IWorkbook.py +1736 -0
- spire/xls/interfaces/IWorksheet.py +2638 -0
- spire/xls/interfaces/IXLSRange.py +2241 -0
- spire/xls/interfaces/IXLSRanges.py +40 -0
- spire/xls/interfaces/IconSet.py +125 -0
- spire/xls/interfaces/ImageLocationTypes.py +17 -0
- spire/xls/interfaces/ImportObjectOptions.py +143 -0
- spire/xls/interfaces/InsertMoveOption.py +17 -0
- spire/xls/interfaces/InteriorArrayWrapper.py +181 -0
- spire/xls/interfaces/__init__.py +0 -0
- spire/xls/interfaces/collections/IDataValidationCollection.py +128 -0
- spire/xls/interfaces/collections/IHPageBreaks.py +37 -0
- spire/xls/interfaces/collections/IListObjects.py +34 -0
- spire/xls/interfaces/collections/IOleObjects.py +44 -0
- spire/xls/interfaces/collections/IPrstGeomShapes.py +87 -0
- spire/xls/interfaces/collections/IShapes.py +273 -0
- spire/xls/interfaces/collections/ITextBoxes.py +67 -0
- spire/xls/interfaces/collections/IVPageBreaks.py +37 -0
- spire/xls/interfaces/collections/__init__.py +0 -0
- spire/xls/interfaces/pivot_table/IPivotCache.py +50 -0
- spire/xls/interfaces/pivot_table/IPivotCaches.py +52 -0
- spire/xls/interfaces/pivot_table/IPivotCalculatedFields.py +69 -0
- spire/xls/interfaces/pivot_table/IPivotField.py +372 -0
- spire/xls/interfaces/pivot_table/IPivotTable.py +509 -0
- spire/xls/interfaces/pivot_table/IPivotTableOptions.py +507 -0
- spire/xls/interfaces/pivot_table/__init__.py +0 -0
- spire/xls/interfaces/sorting/__init__.py +0 -0
- spire/xls/lib/Spire.Xls.Base.dll +0 -0
- spire/xls/lib/_init_.py +0 -0
- spire/xls/license/LicenseProvider.py +107 -0
- spire/xls/license/__init__.py +0 -0
- spire/xls/pivot_tables/AutoSortScope.py +29 -0
- spire/xls/pivot_tables/PivotConditionalFormat.py +71 -0
- spire/xls/pivot_tables/PivotDataField.py +163 -0
- spire/xls/pivot_tables/PivotItem.py +228 -0
- spire/xls/pivot_tables/PivotReportFilter.py +199 -0
- spire/xls/pivot_tables/PivotReportFilters.py +95 -0
- spire/xls/pivot_tables/PivotStyle.py +105 -0
- spire/xls/pivot_tables/PivotTableStyle.py +83 -0
- spire/xls/pivot_tables/XlsPivotCache.py +506 -0
- spire/xls/pivot_tables/XlsPivotCacheField.py +276 -0
- spire/xls/pivot_tables/XlsPivotField.py +975 -0
- spire/xls/pivot_tables/XlsPivotTable.py +1189 -0
- spire/xls/pivot_tables/__init__.py +0 -0
- spire/xls/security/__init__.py +0 -0
- spire/xls/sorting/DataSorter.py +152 -0
- spire/xls/sorting/SortColumn.py +115 -0
- spire/xls/sorting/SortColumns.py +194 -0
- spire/xls/sorting/__init__.py +0 -0
- spire/xls/sparkline/ISparklines.py +72 -0
- spire/xls/sparkline/Sparkline.py +89 -0
- spire/xls/sparkline/SparklineCollection.py +107 -0
- spire/xls/sparkline/SparklineGroup.py +592 -0
- spire/xls/sparkline/SparklineGroupCollection.py +67 -0
- spire/xls/sparkline/__init__.py +0 -0
- spire/xls/template_markers/MarkerDesigner.py +171 -0
- spire/xls/template_markers/__init__.py +0 -0
- spire_xls-15.11.1.dist-info/METADATA +197 -0
- spire_xls-15.11.1.dist-info/RECORD +721 -0
- spire/xls/AddInFunctionsCollection.py +0 -29
- spire/xls/AlertStyleType.py +0 -18
- spire/xls/ArcShapeCollection.py +0 -70
- spire/xls/AutoFiltersCollection.py +0 -527
- spire/xls/AutoFitterOptions.py +0 -66
- spire/xls/AutoFormatOptions.py +0 -23
- spire/xls/AutoFormatType.py +0 -32
- spire/xls/AutoSortScope.py +0 -25
- spire/xls/AverageType.py +0 -25
- spire/xls/AxisLineIdentifierType.py +0 -19
- spire/xls/AxisTextDirectionType.py +0 -18
- spire/xls/AxisType.py +0 -18
- spire/xls/BaseFormatType.py +0 -17
- spire/xls/BordersCollection.py +0 -158
- spire/xls/BordersCollectionArrayWrapper.py +0 -95
- spire/xls/BordersLineType.py +0 -23
- spire/xls/BubbleSizeType.py +0 -17
- spire/xls/BuiltInDocumentProperties.py +0 -12
- spire/xls/BuiltInPropertyType.py +0 -50
- spire/xls/BuiltInStyles.py +0 -66
- spire/xls/ButtonShapeCollection.py +0 -70
- spire/xls/CategoryType.py +0 -18
- spire/xls/CellDataType.py +0 -23
- spire/xls/CellFormatType.py +0 -21
- spire/xls/Chart.py +0 -404
- spire/xls/ChartArea.py +0 -61
- spire/xls/ChartBackgroundMode.py +0 -18
- spire/xls/ChartBaseUnitType.py +0 -18
- spire/xls/ChartCategoryAxis.py +0 -93
- spire/xls/ChartDataLabels.py +0 -42
- spire/xls/ChartDataPoint.py +0 -42
- spire/xls/ChartDataPointsCollection.py +0 -75
- spire/xls/ChartDisplayUnitType.py +0 -26
- spire/xls/ChartFormat.py +0 -72
- spire/xls/ChartFormatCollection.py +0 -59
- spire/xls/ChartGridLine.py +0 -27
- spire/xls/ChartLegend.py +0 -42
- spire/xls/ChartLegendEntriesColl.py +0 -128
- spire/xls/ChartLegendEntry.py +0 -27
- spire/xls/ChartLinePatternType.py +0 -24
- spire/xls/ChartLineWeightType.py +0 -19
- spire/xls/ChartMarkerType.py +0 -27
- spire/xls/ChartParagraphType.py +0 -18
- spire/xls/ChartPieType.py +0 -18
- spire/xls/ChartPlotArea.py +0 -53
- spire/xls/ChartPlotEmptyType.py +0 -18
- spire/xls/ChartSerie.py +0 -142
- spire/xls/ChartSerieDataFormat.py +0 -56
- spire/xls/ChartSeries.py +0 -154
- spire/xls/ChartSeriesAxis.py +0 -72
- spire/xls/ChartShadow.py +0 -235
- spire/xls/ChartSheet.py +0 -285
- spire/xls/ChartTextArea.py +0 -782
- spire/xls/ChartValueAxis.py +0 -92
- spire/xls/ChartsCollection.py +0 -113
- spire/xls/CheckState.py +0 -18
- spire/xls/CollectionBase.py +0 -184
- spire/xls/CollectionExtended.py +0 -92
- spire/xls/ColorConditionValue.py +0 -91
- spire/xls/ColorFilter.py +0 -45
- spire/xls/ColorType.py +0 -18
- spire/xls/ComboBoxCollection.py +0 -70
- spire/xls/CommentHAlignType.py +0 -21
- spire/xls/CommentVAlignType.py +0 -20
- spire/xls/CommentsCollection.py +0 -109
- spire/xls/ComparisonOperatorType.py +0 -24
- spire/xls/CondFormatCollectionWrapper.py +0 -125
- spire/xls/ConditionValue.py +0 -82
- spire/xls/ConditionValuePosition.py +0 -16
- spire/xls/ConditionalFormat.py +0 -14
- spire/xls/ConditionalFormatScope.py +0 -16
- spire/xls/ConditionalFormatType.py +0 -33
- spire/xls/ConditionalFormatWrapper.py +0 -986
- spire/xls/ConditionalFormats.py +0 -55
- spire/xls/CustomFilter.py +0 -147
- spire/xls/CustomFilterCollection.py +0 -113
- spire/xls/DataBarBorder.py +0 -47
- spire/xls/DataConnections.py +0 -25
- spire/xls/DataLabelPositionType.py +0 -26
- spire/xls/DataSorter.py +0 -154
- spire/xls/DataSourceType.py +0 -19
- spire/xls/DateTimeGroupItem.py +0 -132
- spire/xls/DropLineStyleType.py +0 -18
- spire/xls/DynamicFilter.py +0 -71
- spire/xls/ErrorBarIncludeType.py +0 -19
- spire/xls/ErrorBarType.py +0 -20
- spire/xls/ExcelCalculationMode.py +0 -18
- spire/xls/ExcelChartType.py +0 -96
- spire/xls/ExcelColors.py +0 -121
- spire/xls/ExcelComboType.py +0 -22
- spire/xls/ExcelHorizontalAlignment.py +0 -21
- spire/xls/ExcelPatternType.py +0 -52
- spire/xls/ExcelQuartileCalculation.py +0 -17
- spire/xls/ExcelShapeType.py +0 -41
- spire/xls/ExcelSheetType.py +0 -20
- spire/xls/ExcelTreeMapLabelOption.py +0 -18
- spire/xls/ExcelVersion.py +0 -24
- spire/xls/ExcelVerticalAlignment.py +0 -21
- spire/xls/ExpandCollapseFlags.py +0 -18
- spire/xls/ExternalLinkCollection.py +0 -25
- spire/xls/FilterColumn.py +0 -258
- spire/xls/FilterConditionType.py +0 -21
- spire/xls/FilterDataType.py +0 -22
- spire/xls/FontUnderlineType.py +0 -20
- spire/xls/FontVertialAlignmentType.py +0 -20
- spire/xls/GradientColorType.py +0 -18
- spire/xls/GradientPatternType.py +0 -64
- spire/xls/GradientPresetType.py +0 -39
- spire/xls/GradientStyleType.py +0 -21
- spire/xls/GradientTextureType.py +0 -40
- spire/xls/GradientVariantsType.py +0 -19
- spire/xls/GroupBoxCollection.py +0 -70
- spire/xls/GroupShapeCollection.py +0 -46
- spire/xls/HPageBreaksCollection.py +0 -108
- spire/xls/HistogramAxisFormat.py +0 -30
- spire/xls/HorizontalAlignType.py +0 -23
- spire/xls/HyperLinkType.py +0 -20
- spire/xls/HyperLinksCollection.py +0 -72
- spire/xls/IArcShape.py +0 -259
- spire/xls/IChart.py +0 -1368
- spire/xls/IChartAxis.py +0 -722
- spire/xls/IChartBorder.py +0 -220
- spire/xls/IChartCategoryAxis.py +0 -410
- spire/xls/IChartDataLabels.py +0 -457
- spire/xls/IChartDataPoint.py +0 -131
- spire/xls/IChartDataTable.py +0 -197
- spire/xls/IChartErrorBars.py +0 -373
- spire/xls/IChartFillBorder.py +0 -303
- spire/xls/IChartFormat.py +0 -571
- spire/xls/IChartFrameFormat.py +0 -93
- spire/xls/IChartGridLine.py +0 -107
- spire/xls/IChartInterior.py +0 -278
- spire/xls/IChartLegend.py +0 -499
- spire/xls/IChartLegendEntry.py +0 -178
- spire/xls/IChartPageSetup.py +0 -56
- spire/xls/IChartSerie.py +0 -779
- spire/xls/IChartSerieDataFormat.py +0 -566
- spire/xls/IChartSeriesAxis.py +0 -128
- spire/xls/IChartShape.py +0 -92
- spire/xls/IChartTextArea.py +0 -197
- spire/xls/IChartTrendLine.py +0 -548
- spire/xls/IChartValueAxis.py +0 -518
- spire/xls/IChartWallOrFloor.py +0 -32
- spire/xls/ICheckBox.py +0 -96
- spire/xls/ICloneParent.py +0 -28
- spire/xls/IColorConditionValue.py +0 -31
- spire/xls/IColorScale.py +0 -32
- spire/xls/ICombinedRange.py +0 -87
- spire/xls/IComboBoxShape.py +0 -95
- spire/xls/IComment.py +0 -85
- spire/xls/ICommentShape.py +0 -12
- spire/xls/IConditionValue.py +0 -68
- spire/xls/IConditionalFormat.py +0 -606
- spire/xls/IConditionalFormats.py +0 -48
- spire/xls/ICustomDocumentProperties.py +0 -128
- spire/xls/IDataBar.py +0 -105
- spire/xls/IDataValidation.py +0 -421
- spire/xls/IDataValidationCollection.py +0 -132
- spire/xls/IDataValidationTable.py +0 -68
- spire/xls/IDigitalSignature.py +0 -99
- spire/xls/IDigitalSignatures.py +0 -29
- spire/xls/IDocumentProperty.py +0 -226
- spire/xls/IErrorIndicator.py +0 -31
- spire/xls/IExtendIndex.py +0 -21
- spire/xls/IExtendedFormat.py +0 -530
- spire/xls/IFont.py +0 -271
- spire/xls/IFormat3D.py +0 -252
- spire/xls/IGeomPath.py +0 -23
- spire/xls/IGeomPathInfo.py +0 -112
- spire/xls/IGeomPathShape.py +0 -30
- spire/xls/IGlow.py +0 -85
- spire/xls/IGradient.py +0 -174
- spire/xls/IGroupBox.py +0 -67
- spire/xls/IHPageBreak.py +0 -22
- spire/xls/IHPageBreaks.py +0 -31
- spire/xls/IHyperLink.py +0 -118
- spire/xls/IIconSet.py +0 -96
- spire/xls/IInterior.py +0 -117
- spire/xls/IInternalAddtionalFormat.py +0 -238
- spire/xls/IInternalFont.py +0 -31
- spire/xls/ILabelShape.py +0 -49
- spire/xls/ILineShape.py +0 -305
- spire/xls/IListObject.py +0 -493
- spire/xls/IListObjectColumn.py +0 -222
- spire/xls/IListObjects.py +0 -31
- spire/xls/IMarkersDesigner.py +0 -113
- spire/xls/IMigrantRange.py +0 -21
- spire/xls/INamedObject.py +0 -22
- spire/xls/INamedRange.py +0 -162
- spire/xls/INumberFormat.py +0 -77
- spire/xls/IOleObject.py +0 -176
- spire/xls/IOleObjects.py +0 -32
- spire/xls/IOptimizedUpdate.py +0 -28
- spire/xls/IOvalShape.py +0 -154
- spire/xls/IPageSetup.py +0 -195
- spire/xls/IPageSetupBase.py +0 -642
- spire/xls/IPictureShape.py +0 -99
- spire/xls/IPivotCache.py +0 -41
- spire/xls/IPivotCaches.py +0 -39
- spire/xls/IPivotCalculatedFields.py +0 -50
- spire/xls/IPivotField.py +0 -291
- spire/xls/IPivotTable.py +0 -393
- spire/xls/IPivotTableOptions.py +0 -428
- spire/xls/IPropertyData.py +0 -70
- spire/xls/IPrstGeomShape.py +0 -71
- spire/xls/IPrstGeomShapes.py +0 -81
- spire/xls/IRadioButton.py +0 -105
- spire/xls/IRectangleShape.py +0 -60
- spire/xls/IReflectionEffect.py +0 -138
- spire/xls/IScrollBarShape.py +0 -140
- spire/xls/IShadow.py +0 -244
- spire/xls/IShape.py +0 -409
- spire/xls/IShapeFill.py +0 -522
- spire/xls/IShapeLineFormat.py +0 -331
- spire/xls/IShapes.py +0 -270
- spire/xls/ISortColumn.py +0 -96
- spire/xls/ISortColumns.py +0 -70
- spire/xls/ISortedRule.py +0 -112
- spire/xls/ISparklines.py +0 -72
- spire/xls/ISpinnerShape.py +0 -102
- spire/xls/IStyle.py +0 -50
- spire/xls/ITabSheet.py +0 -302
- spire/xls/ITextBox.py +0 -116
- spire/xls/ITextBoxLinkShape.py +0 -40
- spire/xls/ITextBoxShape.py +0 -22
- spire/xls/ITextBoxes.py +0 -61
- spire/xls/ITextFrame.py +0 -120
- spire/xls/IVPageBreak.py +0 -22
- spire/xls/IVPageBreaks.py +0 -31
- spire/xls/IWorkbook.py +0 -1806
- spire/xls/IWorksheet.py +0 -2694
- spire/xls/IXLSRange.py +0 -2479
- spire/xls/IXLSRanges.py +0 -35
- spire/xls/IconSet.py +0 -103
- spire/xls/IgnoreErrorType.py +0 -24
- spire/xls/ImageFormatType.py +0 -18
- spire/xls/ImageLocationTypes.py +0 -15
- spire/xls/ImageType.py +0 -17
- spire/xls/ImportObjectOptions.py +0 -89
- spire/xls/InsertMoveOption.py +0 -15
- spire/xls/InteriorArrayWrapper.py +0 -126
- spire/xls/LegendPositionType.py +0 -21
- spire/xls/LegendSpacingType.py +0 -18
- spire/xls/LineStyleType.py +0 -29
- spire/xls/ListObjectCollection.py +0 -45
- spire/xls/MarkerDesigner.py +0 -172
- spire/xls/MultipleFilterCollection.py +0 -166
- spire/xls/NegativeBarFormat.py +0 -82
- spire/xls/OleObjectType.py +0 -51
- spire/xls/OrderBy.py +0 -19
- spire/xls/OrderType.py +0 -17
- spire/xls/OvalShapeCollection.py +0 -70
- spire/xls/PageBreakExtentType.py +0 -17
- spire/xls/PageBreakType.py +0 -18
- spire/xls/PageOrientationType.py +0 -17
- spire/xls/PagesOrderType.py +0 -17
- spire/xls/PaperSizeType.py +0 -135
- spire/xls/PicturesCollection.py +0 -532
- spire/xls/PivotConditionalFormat.py +0 -54
- spire/xls/PivotConditionalFormatCollection.py +0 -38
- spire/xls/PivotDataField.py +0 -118
- spire/xls/PivotGroupByTypes.py +0 -23
- spire/xls/PivotItem.py +0 -161
- spire/xls/PivotReportFilter.py +0 -92
- spire/xls/PivotReportFilters.py +0 -63
- spire/xls/PivotStyle.py +0 -79
- spire/xls/PivotTableFields.py +0 -85
- spire/xls/PivotTableStyle.py +0 -63
- spire/xls/PrintCommentType.py +0 -18
- spire/xls/PrintErrorsType.py +0 -19
- spire/xls/PrstGeomShapeCollection.py +0 -126
- spire/xls/QueryTableCollection.py +0 -25
- spire/xls/RadioButtonCollection.py +0 -137
- spire/xls/RangesCollection.py +0 -537
- spire/xls/ReadingOrderType.py +0 -18
- spire/xls/RectangleStyleType.py +0 -17
- spire/xls/ResizeBehaveType.py +0 -18
- spire/xls/ShapeArrowLengthType.py +0 -18
- spire/xls/ShapeArrowStyleType.py +0 -21
- spire/xls/ShapeArrowWidthType.py +0 -18
- spire/xls/ShapeCollectionBase.py +0 -87
- spire/xls/ShapeDashLineStyleType.py +0 -23
- spire/xls/ShapeFillType.py +0 -22
- spire/xls/ShapeLayerChangeType.py +0 -19
- spire/xls/ShapeLineStyleType.py +0 -20
- spire/xls/SheetProtectionType.py +0 -33
- spire/xls/SortColumn.py +0 -120
- spire/xls/SortColumns.py +0 -185
- spire/xls/SortComparsionType.py +0 -19
- spire/xls/SortOrientationType.py +0 -17
- spire/xls/SortedWayType.py +0 -18
- spire/xls/Sparkline.py +0 -70
- spire/xls/SparklineCollection.py +0 -112
- spire/xls/SparklineGroup.py +0 -523
- spire/xls/SparklineGroupCollection.py +0 -71
- spire/xls/SparklineType.py +0 -18
- spire/xls/SplitType.py +0 -19
- spire/xls/StylesCollection.py +0 -141
- spire/xls/TextDirection.py +0 -20
- spire/xls/TextRotationType.py +0 -19
- spire/xls/ThemeColorType.py +0 -27
- spire/xls/TickLabelPositionType.py +0 -19
- spire/xls/TickMarkType.py +0 -19
- spire/xls/Top10Filter.py +0 -75
- spire/xls/TopBottomType.py +0 -19
- spire/xls/TopFormatType.py +0 -18
- spire/xls/TrendLineType.py +0 -21
- spire/xls/UnknownVariableAction.py +0 -18
- spire/xls/VPageBreaksCollection.py +0 -96
- spire/xls/ValidationComparisonOperator.py +0 -23
- spire/xls/VariableTypeAction.py +0 -19
- spire/xls/VerticalAlignType.py +0 -20
- spire/xls/ViewMode.py +0 -18
- spire/xls/WorksheetVisibility.py +0 -18
- spire/xls/WorksheetsCollection.py +0 -341
- spire/xls/XLSXBorderJoinType.py +0 -19
- spire/xls/XLSXChartMaterialType.py +0 -32
- spire/xls/XLSXChartPrespectiveType.py +0 -21
- spire/xls/XLSXChartShadowInnerType.py +0 -25
- spire/xls/XLSXChartShadowOuterType.py +0 -25
- spire/xls/XlsAddInFunctionsCollection.py +0 -101
- spire/xls/XlsAutoFiltersCollection.py +0 -119
- spire/xls/XlsBordersCollection.py +0 -101
- spire/xls/XlsBuiltInDocumentProperties.py +0 -639
- spire/xls/XlsChart.py +0 -1510
- spire/xls/XlsChartAxis.py +0 -564
- spire/xls/XlsChartBorder.py +0 -165
- spire/xls/XlsChartCategoryAxis.py +0 -656
- spire/xls/XlsChartDataLabelArea.py +0 -387
- spire/xls/XlsChartDataLabels.py +0 -811
- spire/xls/XlsChartDataPoint.py +0 -108
- spire/xls/XlsChartDataPointsCollection.py +0 -120
- spire/xls/XlsChartDataTable.py +0 -393
- spire/xls/XlsChartDropBar.py +0 -301
- spire/xls/XlsChartFill.py +0 -571
- spire/xls/XlsChartFormat.py +0 -1069
- spire/xls/XlsChartFormatCollection.py +0 -162
- spire/xls/XlsChartFrameFormat.py +0 -614
- spire/xls/XlsChartGridLine.py +0 -171
- spire/xls/XlsChartInterior.py +0 -240
- spire/xls/XlsChartLegend.py +0 -355
- spire/xls/XlsChartLegendArea.py +0 -419
- spire/xls/XlsChartLegendEntry.py +0 -156
- spire/xls/XlsChartSerie.py +0 -589
- spire/xls/XlsChartSerieDataFormat.py +0 -1008
- spire/xls/XlsChartSeriesAxis.py +0 -212
- spire/xls/XlsChartShape.py +0 -1142
- spire/xls/XlsChartTitleArea.py +0 -392
- spire/xls/XlsChartValueAxis.py +0 -317
- spire/xls/XlsChartWallOrFloor.py +0 -319
- spire/xls/XlsChartsCollection.py +0 -89
- spire/xls/XlsCommentsCollection.py +0 -87
- spire/xls/XlsConditionValue.py +0 -111
- spire/xls/XlsConditionalFormat.py +0 -1119
- spire/xls/XlsConditionalFormats.py +0 -590
- spire/xls/XlsDataValidationCollection.py +0 -159
- spire/xls/XlsFontsCollection.py +0 -51
- spire/xls/XlsHPageBreaksCollection.py +0 -85
- spire/xls/XlsHyperLinksCollection.py +0 -102
- spire/xls/XlsPivotCache.py +0 -401
- spire/xls/XlsPivotCacheField.py +0 -209
- spire/xls/XlsPivotCachesCollection.py +0 -124
- spire/xls/XlsPivotField.py +0 -885
- spire/xls/XlsPivotTable.py +0 -905
- spire/xls/XlsPivotTablesCollection.py +0 -131
- spire/xls/XlsRangesCollection.py +0 -1566
- spire/xls/XlsStylesCollection.py +0 -73
- spire/xls/XlsVPageBreaksCollection.py +0 -84
- spire/xls/XlsWorkbookObjectsCollection.py +0 -94
- spire/xls/XlsWorksheetsCollection.py +0 -416
- spire_xls-15.5.0.dist-info/METADATA +0 -197
- spire_xls-15.5.0.dist-info/RECORD +0 -703
- /spire/xls/{lib → autofilter}/__init__.py +0 -0
- /spire/xls/{ChartBorder.py → charts/ChartBorder.py} +0 -0
- /spire/xls/{ChartDataTable.py → charts/ChartDataTable.py} +0 -0
- /spire/xls/{ChartDropBar.py → charts/ChartDropBar.py} +0 -0
- /spire/xls/{ChartInterior.py → charts/ChartInterior.py} +0 -0
- /spire/xls/{ChartPageSetup.py → charts/ChartPageSetup.py} +0 -0
- /spire/xls/{ChartTitle.py → charts/ChartTitle.py} +0 -0
- /spire/xls/{ChartWallOrFloor.py → charts/ChartWallOrFloor.py} +0 -0
- /spire/xls/{XlsChartPageSetup.py → charts/XlsChartPageSetup.py} +0 -0
- /spire/xls/{XlsChartPlotArea.py → charts/XlsChartPlotArea.py} +0 -0
- /spire/xls/{CheckBoxCollection.py → collection/CheckBoxCollection.py} +0 -0
- /spire/xls/{CollectionChangeEventArgs.py → collection/CollectionChangeEventArgs.py} +0 -0
- /spire/xls/{FontsCollection.py → collection/FontsCollection.py} +0 -0
- /spire/xls/{GeomertyAdjustValuesCollection.py → collection/GeomertyAdjustValuesCollection.py} +0 -0
- /spire/xls/{LabelShapeCollection.py → collection/LabelShapeCollection.py} +0 -0
- /spire/xls/{LineCollection.py → collection/LineCollection.py} +0 -0
- /spire/xls/{ListBoxCollection.py → collection/ListBoxCollection.py} +0 -0
- /spire/xls/{RectangleCollection.py → collection/RectangleCollection.py} +0 -0
- /spire/xls/{ScrollBarCollection.py → collection/ScrollBarCollection.py} +0 -0
- /spire/xls/{SpinnerShapeCollection.py → collection/SpinnerShapeCollection.py} +0 -0
- /spire/xls/{TextBoxCollection.py → collection/TextBoxCollection.py} +0 -0
- /spire/xls/{WorkbookObjectsCollection.py → collection/WorkbookObjectsCollection.py} +0 -0
- /spire/xls/{WorksheetChartsCollection.py → collection/WorksheetChartsCollection.py} +0 -0
- /spire/xls/{WorksheetConditionalFormats.py → collection/WorksheetConditionalFormats.py} +0 -0
- /spire/xls/{XlsChartSeries.py → collection/XlsChartSeries.py} +0 -0
- /spire/xls/{XlsHeaderFooterShapeCollection.py → collection/XlsHeaderFooterShapeCollection.py} +0 -0
- /spire/xls/{XlsPicturesCollection.py → collection/XlsPicturesCollection.py} +0 -0
- /spire/xls/{XlsWorksheetChartsCollection.py → collection/XlsWorksheetChartsCollection.py} +0 -0
- /spire/xls/{XlsWorksheetConditionalFormats.py → collection/XlsWorksheetConditionalFormats.py} +0 -0
- /spire/xls/{PivotCachesCollection.py → collection/pivot_table/PivotCachesCollection.py} +0 -0
- /spire/xls/{PivotCalculatedFieldsCollection.py → collection/pivot_table/PivotCalculatedFieldsCollection.py} +0 -0
- /spire/xls/{PivotDataFields.py → collection/pivot_table/PivotDataFields.py} +0 -0
- /spire/xls/{PivotTablesCollection.py → collection/pivot_table/PivotTablesCollection.py} +0 -0
- /spire/xls/{AxisTypes.py → enums/AxisTypes.py} +0 -0
- /spire/xls/{CompoundLineType.py → enums/CompoundLineType.py} +0 -0
- /spire/xls/{ConditionValueType.py → enums/ConditionValueType.py} +0 -0
- /spire/xls/{ConditionalTopNType.py → enums/ConditionalTopNType.py} +0 -0
- /spire/xls/{ConnectionDataSourceType.py → enums/ConnectionDataSourceType.py} +0 -0
- /spire/xls/{CopyRangeOptions.py → enums/CopyRangeOptions.py} +0 -0
- /spire/xls/{DataBarAxisPosition.py → enums/DataBarAxisPosition.py} +0 -0
- /spire/xls/{DataBarBorderType.py → enums/DataBarBorderType.py} +0 -0
- /spire/xls/{DataBarFillType.py → enums/DataBarFillType.py} +0 -0
- /spire/xls/{DataBarNegativeColorType.py → enums/DataBarNegativeColorType.py} +0 -0
- /spire/xls/{DataMarkerDirection.py → enums/DataMarkerDirection.py} +0 -0
- /spire/xls/{DateTimeGroupingType.py → enums/DateTimeGroupingType.py} +0 -0
- /spire/xls/{DeleteOption.py → enums/DeleteOption.py} +0 -0
- /spire/xls/{DynamicFilterType.py → enums/DynamicFilterType.py} +0 -0
- /spire/xls/{ExcelClearOptions.py → enums/ExcelClearOptions.py} +0 -0
- /spire/xls/{ExcelFindOptions.py → enums/ExcelFindOptions.py} +0 -0
- /spire/xls/{ExcelSaveType.py → enums/ExcelSaveType.py} +0 -0
- /spire/xls/{ExcelTotalsCalculation.py → enums/ExcelTotalsCalculation.py} +0 -0
- /spire/xls/{FillPictureType.py → enums/FillPictureType.py} +0 -0
- /spire/xls/{FilterOperatorType.py → enums/FilterOperatorType.py} +0 -0
- /spire/xls/{FilterType.py → enums/FilterType.py} +0 -0
- /spire/xls/{FindType.py → enums/FindType.py} +0 -0
- /spire/xls/{GeomertyAdjustValueFormulaType.py → enums/GeomertyAdjustValueFormulaType.py} +0 -0
- /spire/xls/{GroupByType.py → enums/GroupByType.py} +0 -0
- /spire/xls/{HttpContentType.py → enums/HttpContentType.py} +0 -0
- /spire/xls/{IconSetType.py → enums/IconSetType.py} +0 -0
- /spire/xls/{InsertOptionsType.py → enums/InsertOptionsType.py} +0 -0
- /spire/xls/{LineShapeType.py → enums/LineShapeType.py} +0 -0
- /spire/xls/{MeasureUnits.py → enums/MeasureUnits.py} +0 -0
- /spire/xls/{MsoPathType.py → enums/MsoPathType.py} +0 -0
- /spire/xls/{OLEDBCommandType.py → enums/OLEDBCommandType.py} +0 -0
- /spire/xls/{OdsPageBackgroundImagePositionType.py → enums/OdsPageBackgroundImagePositionType.py} +0 -0
- /spire/xls/{OdsPageBackgroundImageType.py → enums/OdsPageBackgroundImageType.py} +0 -0
- /spire/xls/{OdsPageBackgroundType.py → enums/OdsPageBackgroundType.py} +0 -0
- /spire/xls/{OleLinkType.py → enums/OleLinkType.py} +0 -0
- /spire/xls/{PathFillMode.py → enums/PathFillMode.py} +0 -0
- /spire/xls/{PdfConformanceLevel.py → enums/PdfConformanceLevel.py} +0 -0
- /spire/xls/{PivotAutoFomatTypes.py → enums/PivotAutoFomatTypes.py} +0 -0
- /spire/xls/{PivotBuiltInStyles.py → enums/PivotBuiltInStyles.py} +0 -0
- /spire/xls/{PivotDataType.py → enums/PivotDataType.py} +0 -0
- /spire/xls/{PivotFieldFormatType.py → enums/PivotFieldFormatType.py} +0 -0
- /spire/xls/{PivotFieldSortType.py → enums/PivotFieldSortType.py} +0 -0
- /spire/xls/{PivotItemType.py → enums/PivotItemType.py} +0 -0
- /spire/xls/{PivotLabelFilterType.py → enums/PivotLabelFilterType.py} +0 -0
- /spire/xls/{PivotPageAreaFieldsOrderType.py → enums/PivotPageAreaFieldsOrderType.py} +0 -0
- /spire/xls/{PivotTableElement.py → enums/PivotTableElement.py} +0 -0
- /spire/xls/{PivotTableLayoutType.py → enums/PivotTableLayoutType.py} +0 -0
- /spire/xls/{PivotValueFilterType.py → enums/PivotValueFilterType.py} +0 -0
- /spire/xls/{PresetTextEffect.py → enums/PresetTextEffect.py} +0 -0
- /spire/xls/{PrintingPageType.py → enums/PrintingPageType.py} +0 -0
- /spire/xls/{PropertyType.py → enums/PropertyType.py} +0 -0
- /spire/xls/{PrstGeomShapeType.py → enums/PrstGeomShapeType.py} +0 -0
- /spire/xls/{RectangleShapeType.py → enums/RectangleShapeType.py} +0 -0
- /spire/xls/{RelationShip.py → enums/RelationShip.py} +0 -0
- /spire/xls/{RenameStrategy.py → enums/RenameStrategy.py} +0 -0
- /spire/xls/{RtfTags.py → enums/RtfTags.py} +0 -0
- /spire/xls/{SelectionType.py → enums/SelectionType.py} +0 -0
- /spire/xls/{SparklineEmptyCells.py → enums/SparklineEmptyCells.py} +0 -0
- /spire/xls/{SpartlineVerticalAxisType.py → enums/SpartlineVerticalAxisType.py} +0 -0
- /spire/xls/{StrikeThroughStyle.py → enums/StrikeThroughStyle.py} +0 -0
- /spire/xls/{StyleDefineType.py → enums/StyleDefineType.py} +0 -0
- /spire/xls/{SubtotalTypes.py → enums/SubtotalTypes.py} +0 -0
- /spire/xls/{TRangeValueType.py → enums/TRangeValueType.py} +0 -0
- /spire/xls/{TableBuiltInStyles.py → enums/TableBuiltInStyles.py} +0 -0
- /spire/xls/{TextDirectionType.py → enums/TextDirectionType.py} +0 -0
- /spire/xls/{TextVerticalValue.py → enums/TextVerticalValue.py} +0 -0
- /spire/xls/{TimePeriodType.py → enums/TimePeriodType.py} +0 -0
- /spire/xls/{UnderlineStyle.py → enums/UnderlineStyle.py} +0 -0
- /spire/xls/{WorksheetCopyType.py → enums/WorksheetCopyType.py} +0 -0
- /spire/xls/{XLSXChartBevelType.py → enums/XLSXChartBevelType.py} +0 -0
- /spire/xls/{XLSXChartLightingType.py → enums/XLSXChartLightingType.py} +0 -0
- /spire/xls/{XLSXPivotItemType.py → enums/XLSXPivotItemType.py} +0 -0
- /spire/xls/{XmlOpenType.py → enums/XmlOpenType.py} +0 -0
- /spire/xls/{IAddInFunction.py → interfaces/IAddInFunction.py} +0 -0
- /spire/xls/{IAutoFilter.py → interfaces/IAutoFilter.py} +0 -0
- /spire/xls/{IAutoFilterCondition.py → interfaces/IAutoFilterCondition.py} +0 -0
- /spire/xls/{IAutoFilters.py → interfaces/IAutoFilters.py} +0 -0
- /spire/xls/{IBorder.py → interfaces/IBorder.py} +0 -0
- /spire/xls/{IBuiltInDocumentProperties.py → interfaces/IBuiltInDocumentProperties.py} +0 -0
- /spire/xls/{IButtonShape.py → interfaces/IButtonShape.py} +0 -0
- /spire/xls/{IChartDropBar.py → interfaces/IChartDropBar.py} +0 -0
- /spire/xls/{IExcelApplication.py → interfaces/IExcelApplication.py} +0 -0
- /spire/xls/{IInternalWorksheet.py → interfaces/IInternalWorksheet.py} +0 -0
- /spire/xls/{IListBox.py → interfaces/IListBox.py} +0 -0
- /spire/xls/{IRichTextString.py → interfaces/IRichTextString.py} +0 -0
- /spire/xls/{IAddInFunctions.py → interfaces/collections/IAddInFunctions.py} +0 -0
- /spire/xls/{IArcShapes.py → interfaces/collections/IArcShapes.py} +0 -0
- /spire/xls/{IBorders.py → interfaces/collections/IBorders.py} +0 -0
- /spire/xls/{IButtonShapes.py → interfaces/collections/IButtonShapes.py} +0 -0
- /spire/xls/{IChartDataPoints.py → interfaces/collections/IChartDataPoints.py} +0 -0
- /spire/xls/{IChartLegendEntries.py → interfaces/collections/IChartLegendEntries.py} +0 -0
- /spire/xls/{IChartSeries.py → interfaces/collections/IChartSeries.py} +0 -0
- /spire/xls/{IChartShapes.py → interfaces/collections/IChartShapes.py} +0 -0
- /spire/xls/{IChartTrendLines.py → interfaces/collections/IChartTrendLines.py} +0 -0
- /spire/xls/{ICharts.py → interfaces/collections/ICharts.py} +0 -0
- /spire/xls/{ICheckBoxes.py → interfaces/collections/ICheckBoxes.py} +0 -0
- /spire/xls/{IComboBoxes.py → interfaces/collections/IComboBoxes.py} +0 -0
- /spire/xls/{IComments.py → interfaces/collections/IComments.py} +0 -0
- /spire/xls/{IConditionalFormatsCollection.py → interfaces/collections/IConditionalFormatsCollection.py} +0 -0
- /spire/xls/{IGroupBoxes.py → interfaces/collections/IGroupBoxes.py} +0 -0
- /spire/xls/{IHyperLinks.py → interfaces/collections/IHyperLinks.py} +0 -0
- /spire/xls/{ILabelShapes.py → interfaces/collections/ILabelShapes.py} +0 -0
- /spire/xls/{ILines.py → interfaces/collections/ILines.py} +0 -0
- /spire/xls/{IListBoxes.py → interfaces/collections/IListBoxes.py} +0 -0
- /spire/xls/{INameRanges.py → interfaces/collections/INameRanges.py} +0 -0
- /spire/xls/{IOvalShapes.py → interfaces/collections/IOvalShapes.py} +0 -0
- /spire/xls/{IPictures.py → interfaces/collections/IPictures.py} +0 -0
- /spire/xls/{IRadioButtons.py → interfaces/collections/IRadioButtons.py} +0 -0
- /spire/xls/{IRectangleShapes.py → interfaces/collections/IRectangleShapes.py} +0 -0
- /spire/xls/{IScrollBarShapes.py → interfaces/collections/IScrollBarShapes.py} +0 -0
- /spire/xls/{ISpinnerShapes.py → interfaces/collections/ISpinnerShapes.py} +0 -0
- /spire/xls/{IStyles.py → interfaces/collections/IStyles.py} +0 -0
- /spire/xls/{ITabSheets.py → interfaces/collections/ITabSheets.py} +0 -0
- /spire/xls/{IWorksheetGroup.py → interfaces/collections/IWorksheetGroup.py} +0 -0
- /spire/xls/{IWorksheets.py → interfaces/collections/IWorksheets.py} +0 -0
- /spire/xls/{IPivotDataField.py → interfaces/pivot_table/IPivotDataField.py} +0 -0
- /spire/xls/{IPivotDataFields.py → interfaces/pivot_table/IPivotDataFields.py} +0 -0
- /spire/xls/{IPivotFields.py → interfaces/pivot_table/IPivotFields.py} +0 -0
- /spire/xls/{IPivotTables.py → interfaces/pivot_table/IPivotTables.py} +0 -0
- /spire/xls/{IDataSort.py → interfaces/sorting/IDataSort.py} +0 -0
- /spire/xls/{PivotCache.py → pivot_tables/PivotCache.py} +0 -0
- /spire/xls/{PivotField.py → pivot_tables/PivotField.py} +0 -0
- /spire/xls/{PivotTable.py → pivot_tables/PivotTable.py} +0 -0
- /spire/xls/{EncryptedKeyInfo.py → security/EncryptedKeyInfo.py} +0 -0
- /spire/xls/{ISparkline.py → sparkline/ISparkline.py} +0 -0
- /spire/xls/{ISparklineGroup.py → sparkline/ISparklineGroup.py} +0 -0
- {spire_xls-15.5.0.dist-info → spire_xls-15.11.1.dist-info}/WHEEL +0 -0
- {spire_xls-15.5.0.dist-info → spire_xls-15.11.1.dist-info}/top_level.txt +0 -0
spire/xls/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)
|
|
@@ -315,7 +310,7 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
315
310
|
"""
|
|
316
311
|
|
|
317
312
|
"""
|
|
318
|
-
|
|
313
|
+
from spire.xls.XlsComment import XlsComment
|
|
319
314
|
GetDllLibXls().XlsRange_AddComment.argtypes=[c_void_p ,c_bool]
|
|
320
315
|
GetDllLibXls().XlsRange_AddComment.restype=c_void_p
|
|
321
316
|
intPtr = CallCFunction(GetDllLibXls().XlsRange_AddComment, self.Ptr, bIsParseOptions)
|
|
@@ -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]
|
|
@@ -488,6 +489,7 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
488
489
|
|
|
489
490
|
"""
|
|
490
491
|
intPtrrange:c_void_p = range.Ptr
|
|
492
|
+
from spire.xls.collection.RangesCollection import RangesCollection
|
|
491
493
|
|
|
492
494
|
GetDllLibXls().XlsRange_Union.argtypes=[c_void_p ,c_void_p]
|
|
493
495
|
GetDllLibXls().XlsRange_Union.restype=c_void_p
|
|
@@ -545,13 +547,14 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
545
547
|
|
|
546
548
|
def UpdateRange(self ,startRow:int,startColumn:int,endRow:int,endColumn:int):
|
|
547
549
|
"""
|
|
548
|
-
<summary>
|
|
549
550
|
Update region of range
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
551
|
+
|
|
552
|
+
Args:
|
|
553
|
+
startRow: first Row
|
|
554
|
+
startColumn: first Column
|
|
555
|
+
endRow: last Row
|
|
556
|
+
endColumn: last Column
|
|
557
|
+
|
|
555
558
|
"""
|
|
556
559
|
|
|
557
560
|
GetDllLibXls().XlsRange_UpdateRange.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
|
|
@@ -559,9 +562,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
559
562
|
|
|
560
563
|
def ConvertToNumber(self):
|
|
561
564
|
"""
|
|
562
|
-
<summary>
|
|
563
565
|
Convert number that stored as text to number
|
|
564
|
-
|
|
566
|
+
|
|
565
567
|
"""
|
|
566
568
|
GetDllLibXls().XlsRange_ConvertToNumber.argtypes=[c_void_p]
|
|
567
569
|
CallCFunction(GetDllLibXls().XlsRange_ConvertToNumber, self.Ptr)
|
|
@@ -578,11 +580,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
578
580
|
|
|
579
581
|
def GetConditionFormatsStyle(self)->'CellStyle':
|
|
580
582
|
"""
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
If style of every cell is not same, return null.
|
|
584
|
-
If current range without condition format, return null.
|
|
585
|
-
</summary>
|
|
583
|
+
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.
|
|
584
|
+
|
|
586
585
|
"""
|
|
587
586
|
GetDllLibXls().XlsRange_GetConditionFormatsStyle.argtypes=[c_void_p]
|
|
588
587
|
GetDllLibXls().XlsRange_GetConditionFormatsStyle.restype=c_void_p
|
|
@@ -595,18 +594,15 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
595
594
|
|
|
596
595
|
def RangeR1C1Address(self)->str:
|
|
597
596
|
"""
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
</code>
|
|
608
|
-
</example>
|
|
609
|
-
</summary>
|
|
597
|
+
Returns the range reference using R1C1 notation.
|
|
598
|
+
Example::
|
|
599
|
+
|
|
600
|
+
#Create worksheet
|
|
601
|
+
workbook = Workbook()
|
|
602
|
+
worksheet = workbook.Worksheets[0]
|
|
603
|
+
#Get RangeR1C1Address
|
|
604
|
+
address = worksheet.Range[3, 4].RangeR1C1Address
|
|
605
|
+
|
|
610
606
|
"""
|
|
611
607
|
GetDllLibXls().XlsRange_get_RangeR1C1Address.argtypes=[c_void_p]
|
|
612
608
|
GetDllLibXls().XlsRange_get_RangeR1C1Address.restype=c_void_p
|
|
@@ -618,18 +614,15 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
618
614
|
|
|
619
615
|
def RangeR1C1AddressLocal(self)->str:
|
|
620
616
|
"""
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
</code>
|
|
631
|
-
</example>
|
|
632
|
-
</summary>
|
|
617
|
+
Returns the range reference using R1C1 notation.
|
|
618
|
+
Example::
|
|
619
|
+
|
|
620
|
+
#Create worksheet
|
|
621
|
+
workbook = Workbook()
|
|
622
|
+
worksheet = workbook.Worksheets[0]
|
|
623
|
+
#Get RangeR1C1AddressLocal
|
|
624
|
+
address = worksheet.Range[3, 4].RangeR1C1Address
|
|
625
|
+
|
|
633
626
|
"""
|
|
634
627
|
GetDllLibXls().XlsRange_get_RangeR1C1AddressLocal.argtypes=[c_void_p]
|
|
635
628
|
GetDllLibXls().XlsRange_get_RangeR1C1AddressLocal.restype=c_void_p
|
|
@@ -643,11 +636,14 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
643
636
|
"""
|
|
644
637
|
|
|
645
638
|
"""
|
|
646
|
-
from spire.xls.
|
|
639
|
+
from spire.xls.RangeRichTextString import RangeRichTextString
|
|
640
|
+
from spire.xls.RTFStringArray import RTFStringArray
|
|
647
641
|
GetDllLibXls().XlsRange_get_RichText.argtypes=[c_void_p]
|
|
648
642
|
GetDllLibXls().XlsRange_get_RichText.restype=c_void_p
|
|
649
643
|
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_RichText, self.Ptr)
|
|
650
|
-
|
|
644
|
+
if intPtr==None:
|
|
645
|
+
return None
|
|
646
|
+
ret = RangeRichTextString(intPtr) if self.__Is_Single_Cell__() else RTFStringArray(intPtr)
|
|
651
647
|
return ret
|
|
652
648
|
|
|
653
649
|
|
|
@@ -655,9 +651,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
655
651
|
|
|
656
652
|
def HtmlString(self)->str:
|
|
657
653
|
"""
|
|
658
|
-
<summary>
|
|
659
654
|
Gets and sets the html string which contains data and some formattings in this cell.
|
|
660
|
-
|
|
655
|
+
|
|
661
656
|
"""
|
|
662
657
|
GetDllLibXls().XlsRange_get_HtmlString.argtypes=[c_void_p]
|
|
663
658
|
GetDllLibXls().XlsRange_get_HtmlString.restype=c_void_p
|
|
@@ -673,9 +668,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
673
668
|
@property
|
|
674
669
|
def Row(self)->int:
|
|
675
670
|
"""
|
|
676
|
-
<summary>
|
|
677
671
|
Returns the number of the first row of the first area in the range.
|
|
678
|
-
|
|
672
|
+
|
|
679
673
|
"""
|
|
680
674
|
GetDllLibXls().XlsRange_get_Row.argtypes=[c_void_p]
|
|
681
675
|
GetDllLibXls().XlsRange_get_Row.restype=c_int
|
|
@@ -685,14 +679,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
685
679
|
@property
|
|
686
680
|
def RowGroupLevel(self)->int:
|
|
687
681
|
"""
|
|
688
|
-
<summary>
|
|
689
682
|
Row group level.
|
|
690
|
-
|
|
691
|
-
<remarks>
|
|
692
|
-
-1 - column group is not same.
|
|
693
|
-
0 - Not group
|
|
694
|
-
1 - 7 - group level.
|
|
695
|
-
</remarks>
|
|
683
|
+
|
|
696
684
|
"""
|
|
697
685
|
GetDllLibXls().XlsRange_get_RowGroupLevel.argtypes=[c_void_p]
|
|
698
686
|
GetDllLibXls().XlsRange_get_RowGroupLevel.restype=c_int
|
|
@@ -702,22 +690,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
702
690
|
@property
|
|
703
691
|
def RowHeight(self)->float:
|
|
704
692
|
"""
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
</code>
|
|
719
|
-
</example>
|
|
720
|
-
</summary>
|
|
693
|
+
Returns the height of all the rows in the range specified, measured in points.
|
|
694
|
+
Example::
|
|
695
|
+
|
|
696
|
+
#Create worksheet
|
|
697
|
+
workbook = Workbook()
|
|
698
|
+
worksheet = workbook.Worksheets[0]
|
|
699
|
+
#Set text
|
|
700
|
+
worksheet["A1"].Text = "Test"
|
|
701
|
+
#Set row height
|
|
702
|
+
worksheet["A1"].RowHeight = 30
|
|
703
|
+
#Save to file
|
|
704
|
+
workbook.SaveToFile("RowHeight.xlsx")
|
|
705
|
+
|
|
721
706
|
"""
|
|
722
707
|
GetDllLibXls().XlsRange_get_RowHeight.argtypes=[c_void_p]
|
|
723
708
|
GetDllLibXls().XlsRange_get_RowHeight.restype=c_double
|
|
@@ -744,21 +729,25 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
744
729
|
|
|
745
730
|
@property
|
|
746
731
|
|
|
747
|
-
def ExtendedFormatIndex(self)->
|
|
732
|
+
def ExtendedFormatIndex(self)->int:
|
|
748
733
|
"""
|
|
749
734
|
|
|
750
735
|
"""
|
|
751
736
|
GetDllLibXls().XlsRange_get_ExtendedFormatIndex.argtypes=[c_void_p]
|
|
752
737
|
GetDllLibXls().XlsRange_get_ExtendedFormatIndex.restype=c_void_p
|
|
753
738
|
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_ExtendedFormatIndex, self.Ptr)
|
|
754
|
-
|
|
739
|
+
if intPtr == None:
|
|
740
|
+
return None
|
|
741
|
+
dlllib.UInt16_Value.argtypes=[c_void_p]
|
|
742
|
+
dlllib.UInt16_Value.restype=c_int
|
|
743
|
+
ret = CallCFunction(dlllib.UInt16_Value, intPtr)
|
|
755
744
|
return ret
|
|
756
745
|
|
|
757
746
|
|
|
758
747
|
@ExtendedFormatIndex.setter
|
|
759
|
-
def ExtendedFormatIndex(self, value:
|
|
760
|
-
GetDllLibXls().
|
|
761
|
-
CallCFunction(GetDllLibXls().
|
|
748
|
+
def ExtendedFormatIndex(self, value:int):
|
|
749
|
+
GetDllLibXls().XlsRange_SetExtendedFormatIndex.argtypes=[c_void_p, c_int]
|
|
750
|
+
CallCFunction(GetDllLibXls().XlsRange_SetExtendedFormatIndex, self.Ptr, value)
|
|
762
751
|
|
|
763
752
|
|
|
764
753
|
def SetExtendedFormatIndex(self ,index:int):
|
|
@@ -811,9 +800,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
811
800
|
|
|
812
801
|
def Text(self)->str:
|
|
813
802
|
"""
|
|
814
|
-
<summary>
|
|
815
803
|
Gets / sets text of range.
|
|
816
|
-
|
|
804
|
+
|
|
817
805
|
"""
|
|
818
806
|
GetDllLibXls().XlsRange_get_Text.argtypes=[c_void_p]
|
|
819
807
|
GetDllLibXls().XlsRange_get_Text.restype=c_void_p
|
|
@@ -896,9 +884,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
896
884
|
|
|
897
885
|
def TimeSpanValue(self)->'TimeSpan':
|
|
898
886
|
"""
|
|
899
|
-
<summary>
|
|
900
887
|
Gets or sets timespan value of cell.
|
|
901
|
-
|
|
888
|
+
|
|
902
889
|
"""
|
|
903
890
|
GetDllLibXls().XlsRange_get_TimeSpanValue.argtypes=[c_void_p]
|
|
904
891
|
GetDllLibXls().XlsRange_get_TimeSpanValue.restype=c_void_p
|
|
@@ -916,21 +903,18 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
916
903
|
|
|
917
904
|
def Value(self)->str:
|
|
918
905
|
"""
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
</code>
|
|
932
|
-
</example>
|
|
933
|
-
</summary>
|
|
906
|
+
Returns or sets the value of the specified range.
|
|
907
|
+
Example::
|
|
908
|
+
|
|
909
|
+
#Create worksheet
|
|
910
|
+
workbook = Workbook()
|
|
911
|
+
worksheet = workbook.Worksheets[0]
|
|
912
|
+
#Set value of the range
|
|
913
|
+
XlsRange range= worksheet.Range[3, 1]
|
|
914
|
+
range.Value = "1/1/2015"
|
|
915
|
+
#Save to file
|
|
916
|
+
workbook.SaveToFile("Value.xlsx")
|
|
917
|
+
|
|
934
918
|
"""
|
|
935
919
|
GetDllLibXls().XlsRange_get_Value.argtypes=[c_void_p]
|
|
936
920
|
GetDllLibXls().XlsRange_get_Value.restype=c_void_p
|
|
@@ -946,23 +930,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
946
930
|
@property
|
|
947
931
|
def Value2(self)->'SpireObject':
|
|
948
932
|
"""
|
|
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>
|
|
933
|
+
Returns or sets the cell value. It's not use for current and datetime types.
|
|
934
|
+
Example::
|
|
935
|
+
|
|
936
|
+
#Create worksheet
|
|
937
|
+
workbook = Workbook()
|
|
938
|
+
worksheet = workbook.Worksheets[0]
|
|
939
|
+
#Assigning Value2 property of the Range
|
|
940
|
+
worksheet["A1"].Value2 = DateTime.Now
|
|
941
|
+
worksheet["A3"].Value2 = false
|
|
942
|
+
#Checking Range types
|
|
943
|
+
print(worksheet["A1"].HasDateTime)
|
|
944
|
+
print(worksheet["A3"].HasBoolean)
|
|
945
|
+
|
|
966
946
|
"""
|
|
967
947
|
GetDllLibXls().XlsRange_get_Value2.argtypes=[c_void_p]
|
|
968
948
|
GetDllLibXls().XlsRange_get_Value2.restype=c_void_p
|
|
@@ -980,22 +960,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
980
960
|
|
|
981
961
|
def VerticalAlignment(self)->'VerticalAlignType':
|
|
982
962
|
"""
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
</code>
|
|
997
|
-
</example>
|
|
998
|
-
</summary>
|
|
963
|
+
Returns or sets the vertical alignment of the specified object.
|
|
964
|
+
Example::
|
|
965
|
+
|
|
966
|
+
#Create worksheet
|
|
967
|
+
workbook = Workbook()
|
|
968
|
+
worksheet = workbook.Worksheets[0]
|
|
969
|
+
#Set text
|
|
970
|
+
worksheet["A1"].Text = "Test"
|
|
971
|
+
#Set alignment
|
|
972
|
+
worksheet["A1"].VerticalAlignment = VerticalAlignType.Top
|
|
973
|
+
#Save to file
|
|
974
|
+
workbook.SaveToFile("VerticalAlignment.xlsx")
|
|
975
|
+
|
|
999
976
|
"""
|
|
1000
977
|
GetDllLibXls().XlsRange_get_VerticalAlignment.argtypes=[c_void_p]
|
|
1001
978
|
GetDllLibXls().XlsRange_get_VerticalAlignment.restype=c_int
|
|
@@ -1012,11 +989,10 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1012
989
|
|
|
1013
990
|
def Worksheet(self)->'IWorksheet':
|
|
1014
991
|
"""
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
containing the specified range.
|
|
1018
|
-
</summary>
|
|
992
|
+
Returns a worksheet object that represents the worksheet containing the specified range.
|
|
993
|
+
|
|
1019
994
|
"""
|
|
995
|
+
from spire.xls.XlsWorksheet import XlsWorksheet
|
|
1020
996
|
GetDllLibXls().XlsRange_get_Worksheet.argtypes=[c_void_p]
|
|
1021
997
|
GetDllLibXls().XlsRange_get_Worksheet.restype=c_void_p
|
|
1022
998
|
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Worksheet, self.Ptr)
|
|
@@ -1058,9 +1034,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1058
1034
|
|
|
1059
1035
|
def ClearConditionalFormats(self):
|
|
1060
1036
|
"""
|
|
1061
|
-
<summary>
|
|
1062
1037
|
Clears conditional formats.
|
|
1063
|
-
|
|
1038
|
+
|
|
1064
1039
|
"""
|
|
1065
1040
|
GetDllLibXls().XlsRange_ClearConditionalFormats.argtypes=[c_void_p]
|
|
1066
1041
|
CallCFunction(GetDllLibXls().XlsRange_ClearConditionalFormats, self.Ptr)
|
|
@@ -1068,24 +1043,26 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1068
1043
|
|
|
1069
1044
|
def GetRectangles(self)->List['Rectangle']:
|
|
1070
1045
|
"""
|
|
1071
|
-
<summary>
|
|
1072
1046
|
Gets rectangle information of current range.
|
|
1073
|
-
|
|
1074
|
-
|
|
1047
|
+
|
|
1048
|
+
Returns:
|
|
1049
|
+
Rectangles information
|
|
1050
|
+
|
|
1075
1051
|
"""
|
|
1076
1052
|
GetDllLibXls().XlsRange_GetRectangles.argtypes=[c_void_p]
|
|
1077
1053
|
GetDllLibXls().XlsRange_GetRectangles.restype=IntPtrArray
|
|
1078
1054
|
intPtrArray = CallCFunction(GetDllLibXls().XlsRange_GetRectangles, self.Ptr)
|
|
1079
|
-
ret =
|
|
1055
|
+
ret = GetObjVectorFromArray(intPtrArray, Rectangle)
|
|
1080
1056
|
return ret
|
|
1081
1057
|
|
|
1082
1058
|
|
|
1083
1059
|
def GetRectanglesCount(self)->int:
|
|
1084
1060
|
"""
|
|
1085
|
-
<summary>
|
|
1086
1061
|
Returns number of rectangles..
|
|
1087
|
-
|
|
1088
|
-
|
|
1062
|
+
|
|
1063
|
+
Returns:
|
|
1064
|
+
Number of rectangles.
|
|
1065
|
+
|
|
1089
1066
|
"""
|
|
1090
1067
|
GetDllLibXls().XlsRange_GetRectanglesCount.argtypes=[c_void_p]
|
|
1091
1068
|
GetDllLibXls().XlsRange_GetRectanglesCount.restype=c_int
|
|
@@ -1096,9 +1073,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1096
1073
|
|
|
1097
1074
|
def WorksheetName(self)->str:
|
|
1098
1075
|
"""
|
|
1099
|
-
<summary>
|
|
1100
1076
|
Returns name of the parent worksheet.
|
|
1101
|
-
|
|
1077
|
+
|
|
1102
1078
|
"""
|
|
1103
1079
|
GetDllLibXls().XlsRange_get_WorksheetName.argtypes=[c_void_p]
|
|
1104
1080
|
GetDllLibXls().XlsRange_get_WorksheetName.restype=c_void_p
|
|
@@ -1109,9 +1085,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1109
1085
|
@property
|
|
1110
1086
|
def CellsCount(self)->int:
|
|
1111
1087
|
"""
|
|
1112
|
-
<summary>
|
|
1113
1088
|
Gets number of cells.
|
|
1114
|
-
|
|
1089
|
+
|
|
1115
1090
|
"""
|
|
1116
1091
|
GetDllLibXls().XlsRange_get_CellsCount.argtypes=[c_void_p]
|
|
1117
1092
|
GetDllLibXls().XlsRange_get_CellsCount.restype=c_int
|
|
@@ -1122,9 +1097,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1122
1097
|
|
|
1123
1098
|
def RangeGlobalAddress2007(self)->str:
|
|
1124
1099
|
"""
|
|
1125
|
-
<summary>
|
|
1126
1100
|
Gets address global in the format required by Excel 2007.
|
|
1127
|
-
|
|
1101
|
+
|
|
1128
1102
|
"""
|
|
1129
1103
|
GetDllLibXls().XlsRange_get_RangeGlobalAddress2007.argtypes=[c_void_p]
|
|
1130
1104
|
GetDllLibXls().XlsRange_get_RangeGlobalAddress2007.restype=c_void_p
|
|
@@ -1134,9 +1108,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1134
1108
|
|
|
1135
1109
|
def CalculateAllValue(self):
|
|
1136
1110
|
"""
|
|
1137
|
-
<summary>
|
|
1138
1111
|
Caculate all formula for the specified range
|
|
1139
|
-
|
|
1112
|
+
|
|
1140
1113
|
"""
|
|
1141
1114
|
GetDllLibXls().XlsRange_CalculateAllValue.argtypes=[c_void_p]
|
|
1142
1115
|
CallCFunction(GetDllLibXls().XlsRange_CalculateAllValue, self.Ptr)
|
|
@@ -1145,23 +1118,23 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1145
1118
|
|
|
1146
1119
|
def Activate(self ,scroll:bool)->IXLSRange:
|
|
1147
1120
|
"""
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1121
|
+
Activates a single cell, scroll to it and activates the corresponding sheet. To select a range of cells, use the Select method.
|
|
1122
|
+
|
|
1123
|
+
Args:
|
|
1124
|
+
scroll: True to scroll to the cell
|
|
1125
|
+
|
|
1126
|
+
Returns:
|
|
1127
|
+
Returns the active cell.
|
|
1128
|
+
Example::
|
|
1129
|
+
|
|
1130
|
+
#Create worksheet
|
|
1131
|
+
workbook = Workbook()
|
|
1132
|
+
worksheet = workbook.Worksheets[0]
|
|
1133
|
+
#Activates 'F1' cell.
|
|
1134
|
+
worksheet.Range["F1"].Activate(true)
|
|
1135
|
+
#Save to file
|
|
1136
|
+
workbook.SaveToFile("Activate.xlsx")
|
|
1137
|
+
|
|
1165
1138
|
"""
|
|
1166
1139
|
|
|
1167
1140
|
GetDllLibXls().XlsRange_Activate.argtypes=[c_void_p ,c_bool]
|
|
@@ -1175,10 +1148,11 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1175
1148
|
|
|
1176
1149
|
def Activate(self)->IXLSRange:
|
|
1177
1150
|
"""
|
|
1178
|
-
<summary>
|
|
1179
1151
|
Active single cell in the worksheet
|
|
1180
|
-
|
|
1181
|
-
|
|
1152
|
+
|
|
1153
|
+
Returns:
|
|
1154
|
+
Returns the active cell.
|
|
1155
|
+
|
|
1182
1156
|
"""
|
|
1183
1157
|
GetDllLibXls().XlsRange_Activate1.argtypes=[c_void_p]
|
|
1184
1158
|
GetDllLibXls().XlsRange_Activate1.restype=c_void_p
|
|
@@ -1191,11 +1165,13 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1191
1165
|
|
|
1192
1166
|
def AddComment(self)->ICommentShape:
|
|
1193
1167
|
"""
|
|
1194
|
-
<summary>
|
|
1195
1168
|
Adds a comment to the range.
|
|
1196
|
-
|
|
1197
|
-
|
|
1169
|
+
|
|
1170
|
+
Returns:
|
|
1171
|
+
Created comment or exists one.
|
|
1172
|
+
|
|
1198
1173
|
"""
|
|
1174
|
+
from spire.xls.XlsComment import XlsComment
|
|
1199
1175
|
GetDllLibXls().XlsRange_AddComment1.argtypes=[c_void_p]
|
|
1200
1176
|
GetDllLibXls().XlsRange_AddComment1.restype=c_void_p
|
|
1201
1177
|
intPtr = CallCFunction(GetDllLibXls().XlsRange_AddComment1, self.Ptr)
|
|
@@ -1205,43 +1181,37 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1205
1181
|
|
|
1206
1182
|
def AutoFitColumns(self):
|
|
1207
1183
|
"""
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
</code>
|
|
1221
|
-
</example>
|
|
1222
|
-
</summary>
|
|
1184
|
+
Changes the width of the columns in the range in the range to achieve the best fit.
|
|
1185
|
+
Example::
|
|
1186
|
+
|
|
1187
|
+
#Create worksheet
|
|
1188
|
+
workbook = Workbook()
|
|
1189
|
+
worksheet = workbook.Worksheets[0]
|
|
1190
|
+
#Auto-fit columns
|
|
1191
|
+
worksheet.Range["B4"].Text = "Fit the content to column"
|
|
1192
|
+
worksheet.Range["B4"].AutoFitColumns()
|
|
1193
|
+
#Save to file
|
|
1194
|
+
workbook.SaveToFile("AutoFitRows.xlsx")
|
|
1195
|
+
|
|
1223
1196
|
"""
|
|
1224
1197
|
GetDllLibXls().XlsRange_AutoFitColumns.argtypes=[c_void_p]
|
|
1225
1198
|
CallCFunction(GetDllLibXls().XlsRange_AutoFitColumns, self.Ptr)
|
|
1226
1199
|
|
|
1227
1200
|
def AutoFitRows(self):
|
|
1228
1201
|
"""
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
</code>
|
|
1243
|
-
</example>
|
|
1244
|
-
</summary>
|
|
1202
|
+
Changes the width of the height of the rows in the range to achieve the best fit.
|
|
1203
|
+
Example::
|
|
1204
|
+
|
|
1205
|
+
#Create worksheet
|
|
1206
|
+
workbook = Workbook()
|
|
1207
|
+
worksheet = workbook.Worksheets[0]
|
|
1208
|
+
#Auto-fit rows
|
|
1209
|
+
worksheet.Range["A2"].Text = "Fit the content to row"
|
|
1210
|
+
worksheet.Range["A2"].IsWrapText = true
|
|
1211
|
+
worksheet.Range["A2"].AutoFitRows()
|
|
1212
|
+
#Save to file
|
|
1213
|
+
workbook.SaveToFile("AutoFitRows.xlsx")
|
|
1214
|
+
|
|
1245
1215
|
"""
|
|
1246
1216
|
GetDllLibXls().XlsRange_AutoFitRows.argtypes=[c_void_p]
|
|
1247
1217
|
CallCFunction(GetDllLibXls().XlsRange_AutoFitRows, self.Ptr)
|
|
@@ -1249,25 +1219,22 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1249
1219
|
@dispatch
|
|
1250
1220
|
def BorderAround(self):
|
|
1251
1221
|
"""
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
</code>
|
|
1269
|
-
</example>
|
|
1270
|
-
</summary>
|
|
1222
|
+
Sets around border for current range.
|
|
1223
|
+
Example::
|
|
1224
|
+
|
|
1225
|
+
#Create worksheet
|
|
1226
|
+
workbook = Workbook()
|
|
1227
|
+
worksheet = workbook.Worksheets[0]
|
|
1228
|
+
#Set text
|
|
1229
|
+
worksheet["C2"].Text = "Sample"
|
|
1230
|
+
worksheet["D2"].Text = "text"
|
|
1231
|
+
worksheet["C3"].Text = "in"
|
|
1232
|
+
worksheet["D3"].Text = "cell"
|
|
1233
|
+
#Set border
|
|
1234
|
+
worksheet["C2:D3"].BorderAround()
|
|
1235
|
+
#Save to file
|
|
1236
|
+
workbook.SaveToFile("BorderAround.xlsx")
|
|
1237
|
+
|
|
1271
1238
|
"""
|
|
1272
1239
|
GetDllLibXls().XlsRange_BorderAround.argtypes=[c_void_p]
|
|
1273
1240
|
CallCFunction(GetDllLibXls().XlsRange_BorderAround, self.Ptr)
|
|
@@ -1276,26 +1243,25 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1276
1243
|
|
|
1277
1244
|
def BorderAround(self ,borderLine:LineStyleType):
|
|
1278
1245
|
"""
|
|
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>
|
|
1246
|
+
Sets around border for current range.
|
|
1247
|
+
|
|
1248
|
+
Args:
|
|
1249
|
+
borderLine: Represents border line.
|
|
1250
|
+
Example::
|
|
1251
|
+
|
|
1252
|
+
#Create worksheet
|
|
1253
|
+
workbook = Workbook()
|
|
1254
|
+
worksheet = workbook.Worksheets[0]
|
|
1255
|
+
#Set text
|
|
1256
|
+
worksheet["C2"].Text = "Sample"
|
|
1257
|
+
worksheet["D2"].Text = "text"
|
|
1258
|
+
worksheet["C3"].Text = "in"
|
|
1259
|
+
worksheet["D3"].Text = "cell"
|
|
1260
|
+
#Set border
|
|
1261
|
+
worksheet["C2:D3"].BorderAround(LineStyleType.Thick)
|
|
1262
|
+
#Save to file
|
|
1263
|
+
workbook.SaveToFile("BorderAround.xlsx")
|
|
1264
|
+
|
|
1299
1265
|
"""
|
|
1300
1266
|
enumborderLine:c_int = borderLine.value
|
|
1301
1267
|
|
|
@@ -1306,27 +1272,26 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1306
1272
|
|
|
1307
1273
|
def BorderAround(self ,borderLine:LineStyleType,borderColor:Color):
|
|
1308
1274
|
"""
|
|
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>
|
|
1275
|
+
Sets around border for current range.
|
|
1276
|
+
|
|
1277
|
+
Args:
|
|
1278
|
+
borderLine: Represents border line.
|
|
1279
|
+
borderColor: Represents border color.
|
|
1280
|
+
Example::
|
|
1281
|
+
|
|
1282
|
+
#Create worksheet
|
|
1283
|
+
workbook = Workbook()
|
|
1284
|
+
worksheet = workbook.Worksheets[0]
|
|
1285
|
+
#Set text
|
|
1286
|
+
worksheet["C2"].Text = "Sample"
|
|
1287
|
+
worksheet["D2"].Text = "text"
|
|
1288
|
+
worksheet["C3"].Text = "in"
|
|
1289
|
+
worksheet["D3"].Text = "cell"
|
|
1290
|
+
#Set border
|
|
1291
|
+
worksheet["C2:D3"].BorderAround(LineStyleType.Thick , Color.Red)
|
|
1292
|
+
#Save to file
|
|
1293
|
+
workbook.SaveToFile("BorderAround.xlsx")
|
|
1294
|
+
|
|
1330
1295
|
"""
|
|
1331
1296
|
enumborderLine:c_int = borderLine.value
|
|
1332
1297
|
intPtrborderColor:c_void_p = borderColor.Ptr
|
|
@@ -1338,27 +1303,26 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1338
1303
|
|
|
1339
1304
|
def BorderAround(self ,borderLine:LineStyleType,borderColor:ExcelColors):
|
|
1340
1305
|
"""
|
|
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>
|
|
1306
|
+
Sets around border for current range.
|
|
1307
|
+
|
|
1308
|
+
Args:
|
|
1309
|
+
borderLine: Represents border line.
|
|
1310
|
+
borderColor: Represents border color as ExcelColors.
|
|
1311
|
+
Example::
|
|
1312
|
+
|
|
1313
|
+
#Create worksheet
|
|
1314
|
+
workbook = Workbook()
|
|
1315
|
+
worksheet = workbook.Worksheets[0]
|
|
1316
|
+
#Set text
|
|
1317
|
+
worksheet["C2"].Text = "Sample"
|
|
1318
|
+
worksheet["D2"].Text = "text"
|
|
1319
|
+
worksheet["C3"].Text = "in"
|
|
1320
|
+
worksheet["D3"].Text = "cell"
|
|
1321
|
+
#Set border
|
|
1322
|
+
worksheet["C2:D3"].BorderAround(LineStyleType.Thick , ExcelColors.Red)
|
|
1323
|
+
#Save to file
|
|
1324
|
+
workbook.SaveToFile("BorderAround.xlsx")
|
|
1325
|
+
|
|
1362
1326
|
"""
|
|
1363
1327
|
enumborderLine:c_int = borderLine.value
|
|
1364
1328
|
enumborderColor:c_int = borderColor.value
|
|
@@ -1369,25 +1333,22 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1369
1333
|
@dispatch
|
|
1370
1334
|
def BorderInside(self):
|
|
1371
1335
|
"""
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
</code>
|
|
1389
|
-
</example>
|
|
1390
|
-
</summary>
|
|
1336
|
+
Sets inside border for current range.
|
|
1337
|
+
Example::
|
|
1338
|
+
|
|
1339
|
+
#Create worksheet
|
|
1340
|
+
workbook = Workbook()
|
|
1341
|
+
worksheet = workbook.Worksheets[0]
|
|
1342
|
+
#Set text
|
|
1343
|
+
worksheet["C2"].Text = "Sample"
|
|
1344
|
+
worksheet["D2"].Text = "text"
|
|
1345
|
+
worksheet["C3"].Text = "in"
|
|
1346
|
+
worksheet["D3"].Text = "cell"
|
|
1347
|
+
#Set border
|
|
1348
|
+
worksheet["C2:D3"].BorderInside()
|
|
1349
|
+
#Save to file
|
|
1350
|
+
workbook.SaveToFile("BorderInside.xlsx")
|
|
1351
|
+
|
|
1391
1352
|
"""
|
|
1392
1353
|
GetDllLibXls().XlsRange_BorderInside.argtypes=[c_void_p]
|
|
1393
1354
|
CallCFunction(GetDllLibXls().XlsRange_BorderInside, self.Ptr)
|
|
@@ -1396,26 +1357,25 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1396
1357
|
|
|
1397
1358
|
def BorderInside(self ,borderLine:LineStyleType):
|
|
1398
1359
|
"""
|
|
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>
|
|
1360
|
+
Sets inside border for current range.
|
|
1361
|
+
|
|
1362
|
+
Args:
|
|
1363
|
+
borderLine: Represents border line.
|
|
1364
|
+
Example::
|
|
1365
|
+
|
|
1366
|
+
#Create worksheet
|
|
1367
|
+
workbook = Workbook()
|
|
1368
|
+
worksheet = workbook.Worksheets[0]
|
|
1369
|
+
#Set text
|
|
1370
|
+
worksheet["C2"].Text = "Sample"
|
|
1371
|
+
worksheet["D2"].Text = "text"
|
|
1372
|
+
worksheet["C3"].Text = "in"
|
|
1373
|
+
worksheet["D3"].Text = "cell"
|
|
1374
|
+
#Set border
|
|
1375
|
+
worksheet["C2:D3"].BorderInside(LineStyleType.Thick)
|
|
1376
|
+
#Save to file
|
|
1377
|
+
workbook.SaveToFile("BorderInside.xlsx")
|
|
1378
|
+
|
|
1419
1379
|
"""
|
|
1420
1380
|
enumborderLine:c_int = borderLine.value
|
|
1421
1381
|
|
|
@@ -1426,27 +1386,26 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1426
1386
|
|
|
1427
1387
|
def BorderInside(self ,borderLine:LineStyleType,borderColor:Color):
|
|
1428
1388
|
"""
|
|
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>
|
|
1389
|
+
Sets inside border for current range.
|
|
1390
|
+
|
|
1391
|
+
Args:
|
|
1392
|
+
borderLine: Represents border line.
|
|
1393
|
+
borderColor: Represents border color.
|
|
1394
|
+
Example::
|
|
1395
|
+
|
|
1396
|
+
#Create worksheet
|
|
1397
|
+
workbook = Workbook()
|
|
1398
|
+
worksheet = workbook.Worksheets[0]
|
|
1399
|
+
#Set text
|
|
1400
|
+
worksheet["C2"].Text = "Sample"
|
|
1401
|
+
worksheet["D2"].Text = "text"
|
|
1402
|
+
worksheet["C3"].Text = "in"
|
|
1403
|
+
worksheet["D3"].Text = "cell"
|
|
1404
|
+
#Set border
|
|
1405
|
+
worksheet["C2:D3"].BorderInside(LineStyleType.Thick , Color.Red)
|
|
1406
|
+
#Save to file
|
|
1407
|
+
workbook.SaveToFile("BorderInside.xlsx")
|
|
1408
|
+
|
|
1450
1409
|
"""
|
|
1451
1410
|
enumborderLine:c_int = borderLine.value
|
|
1452
1411
|
intPtrborderColor:c_void_p = borderColor.Ptr
|
|
@@ -1458,27 +1417,26 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1458
1417
|
|
|
1459
1418
|
def BorderInside(self ,borderLine:LineStyleType,borderColor:ExcelColors):
|
|
1460
1419
|
"""
|
|
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>
|
|
1420
|
+
Sets inside border for current range.
|
|
1421
|
+
|
|
1422
|
+
Args:
|
|
1423
|
+
borderLine: Represents border line.
|
|
1424
|
+
borderColor: Represents border color as ExcelColors.
|
|
1425
|
+
Example::
|
|
1426
|
+
|
|
1427
|
+
#Create worksheet
|
|
1428
|
+
workbook = Workbook()
|
|
1429
|
+
worksheet = workbook.Worksheets[0]
|
|
1430
|
+
#Set text
|
|
1431
|
+
worksheet["C2"].Text = "Sample"
|
|
1432
|
+
worksheet["D2"].Text = "text"
|
|
1433
|
+
worksheet["C3"].Text = "in"
|
|
1434
|
+
worksheet["D3"].Text = "cell"
|
|
1435
|
+
#Set border
|
|
1436
|
+
worksheet["C2:D3"].BorderInside(LineStyleType.Thick , ExcelColors.Red)
|
|
1437
|
+
#Save to file
|
|
1438
|
+
workbook.SaveToFile("BorderInside.xlsx")
|
|
1439
|
+
|
|
1482
1440
|
"""
|
|
1483
1441
|
enumborderLine:c_int = borderLine.value
|
|
1484
1442
|
enumborderColor:c_int = borderColor.value
|
|
@@ -1488,21 +1446,18 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1488
1446
|
|
|
1489
1447
|
def BorderNone(self):
|
|
1490
1448
|
"""
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
</code>
|
|
1504
|
-
</example>
|
|
1505
|
-
</summary>
|
|
1449
|
+
Sets none border for current range.
|
|
1450
|
+
Example::
|
|
1451
|
+
|
|
1452
|
+
#Create worksheet
|
|
1453
|
+
workbook = Workbook()
|
|
1454
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1455
|
+
worksheet = workbook.Worksheets[0]
|
|
1456
|
+
#Remove borders
|
|
1457
|
+
worksheet["C2"].BorderNone()
|
|
1458
|
+
#Save to file
|
|
1459
|
+
workbook.SaveToFile("BorderNone.xlsx")
|
|
1460
|
+
|
|
1506
1461
|
"""
|
|
1507
1462
|
GetDllLibXls().XlsRange_BorderNone.argtypes=[c_void_p]
|
|
1508
1463
|
CallCFunction(GetDllLibXls().XlsRange_BorderNone, self.Ptr)
|
|
@@ -1510,22 +1465,21 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1510
1465
|
|
|
1511
1466
|
def Clear(self ,option:'ExcelClearOptions'):
|
|
1512
1467
|
"""
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
<param name="option">Represents the clear options.</param>
|
|
1468
|
+
Clears the cell based on clear options.
|
|
1469
|
+
|
|
1470
|
+
Args:
|
|
1471
|
+
option: Represents the clear options.
|
|
1472
|
+
Example::
|
|
1473
|
+
|
|
1474
|
+
#Create worksheet
|
|
1475
|
+
workbook = Workbook()
|
|
1476
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1477
|
+
worksheet = workbook.Worksheets[0]
|
|
1478
|
+
#Clears the Range C2 with its clear options
|
|
1479
|
+
worksheet.Range["C2"].Clear(ExcelClearOptions.ClearAll)
|
|
1480
|
+
#Save to file
|
|
1481
|
+
workbook.SaveToFile("ClearContents.xlsx")
|
|
1482
|
+
|
|
1529
1483
|
"""
|
|
1530
1484
|
enumoption:c_int = option.value
|
|
1531
1485
|
|
|
@@ -1534,30 +1488,26 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1534
1488
|
|
|
1535
1489
|
def ClearAll(self):
|
|
1536
1490
|
"""
|
|
1537
|
-
<summary>
|
|
1538
1491
|
Clears the entire object.
|
|
1539
|
-
|
|
1492
|
+
|
|
1540
1493
|
"""
|
|
1541
1494
|
GetDllLibXls().XlsRange_ClearAll.argtypes=[c_void_p]
|
|
1542
1495
|
CallCFunction(GetDllLibXls().XlsRange_ClearAll, self.Ptr)
|
|
1543
1496
|
|
|
1544
1497
|
def ClearContents(self):
|
|
1545
1498
|
"""
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
</code>
|
|
1559
|
-
</example>
|
|
1560
|
-
</summary>
|
|
1499
|
+
Clear the contents of the Range.
|
|
1500
|
+
Example::
|
|
1501
|
+
|
|
1502
|
+
#Create worksheet
|
|
1503
|
+
workbook = Workbook()
|
|
1504
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1505
|
+
worksheet = workbook.Worksheets[0]
|
|
1506
|
+
#Clears the Range C2
|
|
1507
|
+
worksheet.Range["C2"].ClearContents()
|
|
1508
|
+
#Save to file
|
|
1509
|
+
workbook.SaveToFile("ClearContents.xlsx")
|
|
1510
|
+
|
|
1561
1511
|
"""
|
|
1562
1512
|
GetDllLibXls().XlsRange_ClearContents.argtypes=[c_void_p]
|
|
1563
1513
|
CallCFunction(GetDllLibXls().XlsRange_ClearContents, self.Ptr)
|
|
@@ -1565,11 +1515,11 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1565
1515
|
|
|
1566
1516
|
def GroupByColumns(self ,isCollapsed:bool)->'XlsRange':
|
|
1567
1517
|
"""
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1518
|
+
Groups columns.
|
|
1519
|
+
|
|
1520
|
+
Args:
|
|
1521
|
+
isCollapsed: Indicates whether group should be collapsed.
|
|
1522
|
+
|
|
1573
1523
|
"""
|
|
1574
1524
|
|
|
1575
1525
|
GetDllLibXls().XlsRange_GroupByColumns.argtypes=[c_void_p ,c_bool]
|
|
@@ -1582,11 +1532,11 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1582
1532
|
|
|
1583
1533
|
def GroupByRows(self ,isCollapsed:bool)->'XlsRange':
|
|
1584
1534
|
"""
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1535
|
+
Groups row.
|
|
1536
|
+
|
|
1537
|
+
Args:
|
|
1538
|
+
isCollapsed: Indicates whether group should be collapsed.
|
|
1539
|
+
|
|
1590
1540
|
"""
|
|
1591
1541
|
|
|
1592
1542
|
GetDllLibXls().XlsRange_GroupByRows.argtypes=[c_void_p ,c_bool]
|
|
@@ -1599,10 +1549,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1599
1549
|
|
|
1600
1550
|
def UngroupByColumns(self)->'XlsRange':
|
|
1601
1551
|
"""
|
|
1602
|
-
<summary>
|
|
1603
1552
|
Ungroups column.
|
|
1604
|
-
|
|
1605
|
-
<returns></returns>
|
|
1553
|
+
|
|
1606
1554
|
"""
|
|
1607
1555
|
GetDllLibXls().XlsRange_UngroupByColumns.argtypes=[c_void_p]
|
|
1608
1556
|
GetDllLibXls().XlsRange_UngroupByColumns.restype=c_void_p
|
|
@@ -1614,10 +1562,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1614
1562
|
|
|
1615
1563
|
def UngroupByRows(self)->'XlsRange':
|
|
1616
1564
|
"""
|
|
1617
|
-
<summary>
|
|
1618
1565
|
Ungroups row.
|
|
1619
|
-
|
|
1620
|
-
<returns></returns>
|
|
1566
|
+
|
|
1621
1567
|
"""
|
|
1622
1568
|
GetDllLibXls().XlsRange_UngroupByRows.argtypes=[c_void_p]
|
|
1623
1569
|
GetDllLibXls().XlsRange_UngroupByRows.restype=c_void_p
|
|
@@ -1629,24 +1575,21 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1629
1575
|
|
|
1630
1576
|
def CollapseGroup(self ,groupBy:'GroupByType'):
|
|
1631
1577
|
"""
|
|
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>
|
|
1578
|
+
Collapses current group.
|
|
1579
|
+
|
|
1580
|
+
Args:
|
|
1581
|
+
groupBy:
|
|
1582
|
+
Example::
|
|
1583
|
+
|
|
1584
|
+
#Create worksheet
|
|
1585
|
+
workbook = Workbook()
|
|
1586
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1587
|
+
worksheet = workbook.Worksheets[0]
|
|
1588
|
+
#Collapse group
|
|
1589
|
+
worksheet.Range["A5:A15"].CollapseGroup(GroupByType.ByRows)
|
|
1590
|
+
#Save to file
|
|
1591
|
+
workbook.SaveToFile("CollapseGroup.xlsx")
|
|
1592
|
+
|
|
1650
1593
|
"""
|
|
1651
1594
|
enumgroupBy:c_int = groupBy.value
|
|
1652
1595
|
|
|
@@ -1671,24 +1614,21 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1671
1614
|
|
|
1672
1615
|
def ExpandGroup(self ,groupBy:GroupByType):
|
|
1673
1616
|
"""
|
|
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>
|
|
1617
|
+
Expands current group.
|
|
1618
|
+
|
|
1619
|
+
Args:
|
|
1620
|
+
groupBy:
|
|
1621
|
+
Example::
|
|
1622
|
+
|
|
1623
|
+
#Create worksheet
|
|
1624
|
+
workbook = Workbook()
|
|
1625
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1626
|
+
worksheet = workbook.Worksheets[0]
|
|
1627
|
+
#Expand group with flag set to expand parent
|
|
1628
|
+
worksheet.Range["A5:A15"].ExpandGroup(GroupByType.ByRows)
|
|
1629
|
+
#Save to file
|
|
1630
|
+
workbook.SaveToFile("ExpandGroup.xlsx")
|
|
1631
|
+
|
|
1692
1632
|
"""
|
|
1693
1633
|
enumgroupBy:c_int = groupBy.value
|
|
1694
1634
|
|
|
@@ -1699,25 +1639,22 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1699
1639
|
|
|
1700
1640
|
def ExpandGroup(self ,groupBy:GroupByType,flags:ExpandCollapseFlags):
|
|
1701
1641
|
"""
|
|
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>
|
|
1642
|
+
Expands current group.
|
|
1643
|
+
|
|
1644
|
+
Args:
|
|
1645
|
+
groupBy:
|
|
1646
|
+
flags: Additional option flags.
|
|
1647
|
+
Example::
|
|
1648
|
+
|
|
1649
|
+
#Create worksheet
|
|
1650
|
+
workbook = Workbook()
|
|
1651
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
1652
|
+
worksheet = workbook.Worksheets[0]
|
|
1653
|
+
#Expand group with flag set to expand parent
|
|
1654
|
+
worksheet.Range["A5:A15"].ExpandGroup(GroupByType.ByRows, ExpandCollapseFlags.ExpandParent)
|
|
1655
|
+
#Save to file
|
|
1656
|
+
workbook.SaveToFile("ExpandGroup.xlsx")
|
|
1657
|
+
|
|
1721
1658
|
"""
|
|
1722
1659
|
enumgroupBy:c_int = groupBy.value
|
|
1723
1660
|
enumflags:c_int = flags.value
|
|
@@ -1727,20 +1664,17 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1727
1664
|
|
|
1728
1665
|
def FreezePanes(self):
|
|
1729
1666
|
"""
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
</code>
|
|
1742
|
-
</example>
|
|
1743
|
-
</summary>
|
|
1667
|
+
Freezes panes at the current range in the worksheet. current range should be single cell range.
|
|
1668
|
+
Example::
|
|
1669
|
+
|
|
1670
|
+
#Create worksheet
|
|
1671
|
+
workbook = Workbook()
|
|
1672
|
+
worksheet = workbook.Worksheets[0]
|
|
1673
|
+
#Applying Freeze Pane to the sheet by specifying a cell
|
|
1674
|
+
worksheet.Range["B2"].FreezePanes()
|
|
1675
|
+
#Save to file
|
|
1676
|
+
workbook.SaveToFile("FreezePanes.xlsx")
|
|
1677
|
+
|
|
1744
1678
|
"""
|
|
1745
1679
|
GetDllLibXls().XlsRange_FreezePanes.argtypes=[c_void_p]
|
|
1746
1680
|
CallCFunction(GetDllLibXls().XlsRange_FreezePanes, self.Ptr)
|
|
@@ -1748,19 +1682,16 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1748
1682
|
@property
|
|
1749
1683
|
def BooleanValue(self)->bool:
|
|
1750
1684
|
"""
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
</code>
|
|
1762
|
-
</example>
|
|
1763
|
-
</summary>
|
|
1685
|
+
Returns or sets the bool value of the specified range.
|
|
1686
|
+
Example::
|
|
1687
|
+
|
|
1688
|
+
#Create worksheet
|
|
1689
|
+
workbook = Workbook()
|
|
1690
|
+
worksheet = workbook.Worksheets[0]
|
|
1691
|
+
#Set and get BooleanValue
|
|
1692
|
+
worksheet.Range[2, 4].BooleanValue = true
|
|
1693
|
+
boolean = worksheet.Range[2, 4].BooleanValue
|
|
1694
|
+
|
|
1764
1695
|
"""
|
|
1765
1696
|
GetDllLibXls().XlsRange_get_BooleanValue.argtypes=[c_void_p]
|
|
1766
1697
|
GetDllLibXls().XlsRange_get_BooleanValue.restype=c_bool
|
|
@@ -1778,7 +1709,7 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1778
1709
|
"""
|
|
1779
1710
|
|
|
1780
1711
|
"""
|
|
1781
|
-
from spire.xls.XlsBordersCollection import XlsBordersCollection
|
|
1712
|
+
from spire.xls.collection.XlsBordersCollection import XlsBordersCollection
|
|
1782
1713
|
GetDllLibXls().XlsRange_get_Borders.argtypes=[c_void_p]
|
|
1783
1714
|
GetDllLibXls().XlsRange_get_Borders.restype=c_void_p
|
|
1784
1715
|
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Borders, self.Ptr)
|
|
@@ -1790,22 +1721,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1790
1721
|
|
|
1791
1722
|
def BuiltInStyle(self)->BuiltInStyles:
|
|
1792
1723
|
"""
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
</code>
|
|
1807
|
-
</example>
|
|
1808
|
-
</summary>
|
|
1724
|
+
Gets/sets built in style.
|
|
1725
|
+
Example::
|
|
1726
|
+
|
|
1727
|
+
#Create worksheet
|
|
1728
|
+
workbook = Workbook()
|
|
1729
|
+
worksheet = workbook.Worksheets[0]
|
|
1730
|
+
#Set text
|
|
1731
|
+
worksheet["C2"].Text = "Sample"
|
|
1732
|
+
#Set built in style
|
|
1733
|
+
worksheet["C2"].BuiltInStyle = BuiltInStyles.Accent3
|
|
1734
|
+
#Save to file
|
|
1735
|
+
workbook.SaveToFile("BuiltInStyle.xlsx")
|
|
1736
|
+
|
|
1809
1737
|
"""
|
|
1810
1738
|
GetDllLibXls().XlsRange_get_BuiltInStyle.argtypes=[c_void_p]
|
|
1811
1739
|
GetDllLibXls().XlsRange_get_BuiltInStyle.restype=c_int
|
|
@@ -1852,21 +1780,18 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1852
1780
|
|
|
1853
1781
|
def CellStyleName(self)->str:
|
|
1854
1782
|
"""
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
</code>
|
|
1868
|
-
</example>
|
|
1869
|
-
</summary>
|
|
1783
|
+
Gets/sets name of the style for the current range.
|
|
1784
|
+
Example::
|
|
1785
|
+
|
|
1786
|
+
#Create worksheet
|
|
1787
|
+
workbook = Workbook()
|
|
1788
|
+
worksheet = workbook.Worksheets[0]
|
|
1789
|
+
#Add and set style
|
|
1790
|
+
style = workbook.Styles.Add("CustomStyle")
|
|
1791
|
+
worksheet["C2"].Style = style
|
|
1792
|
+
#Check Style name
|
|
1793
|
+
Console.Write(worksheet["C2"].CellStyleName)
|
|
1794
|
+
|
|
1870
1795
|
"""
|
|
1871
1796
|
GetDllLibXls().XlsRange_get_CellStyleName.argtypes=[c_void_p]
|
|
1872
1797
|
GetDllLibXls().XlsRange_get_CellStyleName.restype=c_void_p
|
|
@@ -1882,18 +1807,15 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1882
1807
|
@property
|
|
1883
1808
|
def Column(self)->int:
|
|
1884
1809
|
"""
|
|
1885
|
-
<summary>
|
|
1886
1810
|
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>
|
|
1811
|
+
Example::
|
|
1812
|
+
|
|
1813
|
+
#Create worksheet
|
|
1814
|
+
workbook = Workbook()
|
|
1815
|
+
worksheet = workbook.Worksheets[0]
|
|
1816
|
+
#Get specified column
|
|
1817
|
+
firstColumn = worksheet["E1:R3"].Column
|
|
1818
|
+
|
|
1897
1819
|
"""
|
|
1898
1820
|
GetDllLibXls().XlsRange_get_Column.argtypes=[c_void_p]
|
|
1899
1821
|
GetDllLibXls().XlsRange_get_Column.restype=c_int
|
|
@@ -1903,14 +1825,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1903
1825
|
@property
|
|
1904
1826
|
def ColumnGroupLevel(self)->int:
|
|
1905
1827
|
"""
|
|
1906
|
-
<summary>
|
|
1907
1828
|
Column group level.
|
|
1908
|
-
|
|
1909
|
-
<remarks>
|
|
1910
|
-
-1 - column group is not same.
|
|
1911
|
-
0 - Not group
|
|
1912
|
-
1 - 7 - group level.
|
|
1913
|
-
</remarks>
|
|
1829
|
+
|
|
1914
1830
|
"""
|
|
1915
1831
|
GetDllLibXls().XlsRange_get_ColumnGroupLevel.argtypes=[c_void_p]
|
|
1916
1832
|
GetDllLibXls().XlsRange_get_ColumnGroupLevel.restype=c_int
|
|
@@ -1933,21 +1849,18 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1933
1849
|
@property
|
|
1934
1850
|
def ColumnWidth(self)->float:
|
|
1935
1851
|
"""
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
</code>
|
|
1949
|
-
</example>
|
|
1950
|
-
</summary>
|
|
1852
|
+
Returns or sets the width of all columns in the specified range.
|
|
1853
|
+
Example::
|
|
1854
|
+
|
|
1855
|
+
#Create worksheet
|
|
1856
|
+
workbook = Workbook()
|
|
1857
|
+
worksheet = workbook.Worksheets[0]
|
|
1858
|
+
#Set the ColumnWidth
|
|
1859
|
+
worksheet["A1"].Text = "This cell contains sample text"
|
|
1860
|
+
worksheet["A1"].ColumnWidth = 25
|
|
1861
|
+
#Save to file
|
|
1862
|
+
workbook.SaveToFile("ColumnWidth.xlsx")
|
|
1863
|
+
|
|
1951
1864
|
"""
|
|
1952
1865
|
GetDllLibXls().XlsRange_get_ColumnWidth.argtypes=[c_void_p]
|
|
1953
1866
|
GetDllLibXls().XlsRange_get_ColumnWidth.restype=c_double
|
|
@@ -1963,16 +1876,21 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1963
1876
|
|
|
1964
1877
|
def Comment(self)->'ICommentShape':
|
|
1965
1878
|
"""
|
|
1966
|
-
<summary>
|
|
1967
1879
|
Returns a Comment object that represents the comment associated with the cell in the upper-left corner of the range.
|
|
1968
|
-
|
|
1880
|
+
|
|
1969
1881
|
"""
|
|
1882
|
+
from spire.xls.XlsComment import XlsComment
|
|
1883
|
+
from spire.xls.CommentsRange import CommentsRange
|
|
1970
1884
|
GetDllLibXls().XlsRange_get_Comment.argtypes=[c_void_p]
|
|
1971
1885
|
GetDllLibXls().XlsRange_get_Comment.restype=c_void_p
|
|
1972
1886
|
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Comment, self.Ptr)
|
|
1973
|
-
|
|
1887
|
+
if intPtr==None:
|
|
1888
|
+
return None
|
|
1889
|
+
ret = XlsComment(intPtr) if self.__Is_Single_Cell__() else CommentsRange(intPtr)
|
|
1974
1890
|
return ret
|
|
1975
1891
|
|
|
1892
|
+
def __Is_Single_Cell__(self)->bool:
|
|
1893
|
+
return self.Row == self.LastRow and self.Column == self.LastColumn
|
|
1976
1894
|
|
|
1977
1895
|
@property
|
|
1978
1896
|
|
|
@@ -1990,9 +1908,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
1990
1908
|
@property
|
|
1991
1909
|
def Count(self)->int:
|
|
1992
1910
|
"""
|
|
1993
|
-
<summary>
|
|
1994
1911
|
Returns the number of objects in the collection.
|
|
1995
|
-
|
|
1912
|
+
|
|
1996
1913
|
"""
|
|
1997
1914
|
GetDllLibXls().XlsRange_get_Count.argtypes=[c_void_p]
|
|
1998
1915
|
GetDllLibXls().XlsRange_get_Count.restype=c_int
|
|
@@ -2003,9 +1920,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2003
1920
|
|
|
2004
1921
|
def CurrentRegion(self)->'IXLSRange':
|
|
2005
1922
|
"""
|
|
2006
|
-
<summary>
|
|
2007
1923
|
Get the range associated with a range.
|
|
2008
|
-
|
|
1924
|
+
|
|
2009
1925
|
"""
|
|
2010
1926
|
GetDllLibXls().XlsRange_get_CurrentRegion.argtypes=[c_void_p]
|
|
2011
1927
|
GetDllLibXls().XlsRange_get_CurrentRegion.restype=c_void_p
|
|
@@ -2018,25 +1934,22 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2018
1934
|
|
|
2019
1935
|
def DataValidation(self)->'Validation':
|
|
2020
1936
|
"""
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
</code>
|
|
2038
|
-
</example>
|
|
2039
|
-
</summary>
|
|
1937
|
+
Get dataValidation of the sheet. Read Only.
|
|
1938
|
+
Example::
|
|
1939
|
+
|
|
1940
|
+
#Create worksheet
|
|
1941
|
+
workbook = Workbook()
|
|
1942
|
+
worksheet = workbook.Worksheets[0]
|
|
1943
|
+
#Data validation for number
|
|
1944
|
+
validation = worksheet.Range["A3"].DataValidation
|
|
1945
|
+
validation.AllowType = CellDataType.Integer
|
|
1946
|
+
#Value between 0 to 10
|
|
1947
|
+
validation.CompareOperator = ValidationComparisonOperator.Between
|
|
1948
|
+
validation.Formula1 = "0"
|
|
1949
|
+
validation.Formula2 = "10"
|
|
1950
|
+
#Save to file
|
|
1951
|
+
workbook.SaveToFile("DataValidation.xlsx")
|
|
1952
|
+
|
|
2040
1953
|
"""
|
|
2041
1954
|
GetDllLibXls().XlsRange_get_DataValidation.argtypes=[c_void_p]
|
|
2042
1955
|
GetDllLibXls().XlsRange_get_DataValidation.restype=c_void_p
|
|
@@ -2049,21 +1962,18 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2049
1962
|
|
|
2050
1963
|
def DateTimeValue(self)->'DateTime':
|
|
2051
1964
|
"""
|
|
2052
|
-
<summary>
|
|
2053
1965
|
Gets/sets DateTime value of the range.
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
</example>
|
|
2066
|
-
</summary>
|
|
1966
|
+
Example::
|
|
1967
|
+
|
|
1968
|
+
#Create worksheet
|
|
1969
|
+
workbook = Workbook()
|
|
1970
|
+
worksheet = workbook.Worksheets[0]
|
|
1971
|
+
#Set and get the DateTimeValue of specified range
|
|
1972
|
+
worksheet.Range[2, 4].DateTimeValue = DateTime.Now
|
|
1973
|
+
dateTime = worksheet.Range[2, 4].DateTimeValue
|
|
1974
|
+
#Save to file
|
|
1975
|
+
workbook.SaveToFile("DateTimeValue.xlsx")
|
|
1976
|
+
|
|
2067
1977
|
"""
|
|
2068
1978
|
GetDllLibXls().XlsRange_get_DateTimeValue.argtypes=[c_void_p]
|
|
2069
1979
|
GetDllLibXls().XlsRange_get_DateTimeValue.restype=c_void_p
|
|
@@ -2107,10 +2017,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2107
2017
|
|
|
2108
2018
|
def EntireRow(self)->'IXLSRange':
|
|
2109
2019
|
"""
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
rows) that contains the specified range. Read-only.
|
|
2113
|
-
</summary>
|
|
2020
|
+
Returns a Range object that represents the entire row (or rows) that contains the specified range. Read-only.
|
|
2021
|
+
|
|
2114
2022
|
"""
|
|
2115
2023
|
GetDllLibXls().XlsRange_get_EntireRow.argtypes=[c_void_p]
|
|
2116
2024
|
GetDllLibXls().XlsRange_get_EntireRow.restype=c_void_p
|
|
@@ -2123,20 +2031,17 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2123
2031
|
|
|
2124
2032
|
def EnvalutedValue(self)->str:
|
|
2125
2033
|
"""
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
</code>
|
|
2138
|
-
</example>
|
|
2139
|
-
</summary>
|
|
2034
|
+
Returns the calculated value of a formula.
|
|
2035
|
+
Example::
|
|
2036
|
+
|
|
2037
|
+
#Create worksheet
|
|
2038
|
+
workbook = Workbook()
|
|
2039
|
+
workbook.LoadFromFile("Sample.xlsx")
|
|
2040
|
+
worksheet = workbook.Worksheets[0]
|
|
2041
|
+
#Returns the calculated value of a formula using the most current inputs
|
|
2042
|
+
calculatedValue = worksheet["C1"].EnvalutedValue
|
|
2043
|
+
print(calculatedValue)
|
|
2044
|
+
|
|
2140
2045
|
"""
|
|
2141
2046
|
GetDllLibXls().XlsRange_get_EnvalutedValue.argtypes=[c_void_p]
|
|
2142
2047
|
GetDllLibXls().XlsRange_get_EnvalutedValue.restype=c_void_p
|
|
@@ -2148,9 +2053,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2148
2053
|
|
|
2149
2054
|
def ErrorValue(self)->str:
|
|
2150
2055
|
"""
|
|
2151
|
-
<summary>
|
|
2152
2056
|
Gets or sets error value of this range.
|
|
2153
|
-
|
|
2057
|
+
|
|
2154
2058
|
"""
|
|
2155
2059
|
GetDllLibXls().XlsRange_get_ErrorValue.argtypes=[c_void_p]
|
|
2156
2060
|
GetDllLibXls().XlsRange_get_ErrorValue.restype=c_void_p
|
|
@@ -2167,10 +2071,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2167
2071
|
|
|
2168
2072
|
def Formula(self)->str:
|
|
2169
2073
|
"""
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
the language of the macro.
|
|
2173
|
-
</summary>
|
|
2074
|
+
Returns or sets the object's formula in A1-style notation and in the language of the macro.
|
|
2075
|
+
|
|
2174
2076
|
"""
|
|
2175
2077
|
GetDllLibXls().XlsRange_get_Formula.argtypes=[c_void_p]
|
|
2176
2078
|
GetDllLibXls().XlsRange_get_Formula.restype=c_void_p
|
|
@@ -2187,24 +2089,21 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2187
2089
|
|
|
2188
2090
|
def FormulaArray(self)->str:
|
|
2189
2091
|
"""
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
</code>
|
|
2206
|
-
</example>
|
|
2207
|
-
</summary>
|
|
2092
|
+
Returns or sets the array formula of a range.
|
|
2093
|
+
Example::
|
|
2094
|
+
|
|
2095
|
+
#Create worksheet
|
|
2096
|
+
workbook = Workbook()
|
|
2097
|
+
worksheet = workbook.Worksheets[0]
|
|
2098
|
+
#Assign array formula
|
|
2099
|
+
worksheet.Range["A1:D1"].FormulaArray = "{1,2,3,4}"
|
|
2100
|
+
#Adding a named range for the range A1 to D1
|
|
2101
|
+
worksheet.Names.Add("ArrayRange", worksheet.Range["A1:D1"])
|
|
2102
|
+
#Assign formula array with named range
|
|
2103
|
+
worksheet.Range["A2:D2"].FormulaArray = "ArrayRange+100"
|
|
2104
|
+
#Save to file
|
|
2105
|
+
workbook.SaveToFile("FormulaArray.xlsx")
|
|
2106
|
+
|
|
2208
2107
|
"""
|
|
2209
2108
|
GetDllLibXls().XlsRange_get_FormulaArray.argtypes=[c_void_p]
|
|
2210
2109
|
GetDllLibXls().XlsRange_get_FormulaArray.restype=c_void_p
|
|
@@ -2221,9 +2120,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2221
2120
|
|
|
2222
2121
|
def FormulaArrayR1C1(self)->str:
|
|
2223
2122
|
"""
|
|
2224
|
-
<summary>
|
|
2225
2123
|
Returns or sets the formula for the object, using R1C1-style notation in the language of the macro
|
|
2226
|
-
|
|
2124
|
+
|
|
2227
2125
|
"""
|
|
2228
2126
|
GetDllLibXls().XlsRange_get_FormulaArrayR1C1.argtypes=[c_void_p]
|
|
2229
2127
|
GetDllLibXls().XlsRange_get_FormulaArrayR1C1.restype=c_void_p
|
|
@@ -2255,9 +2153,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2255
2153
|
|
|
2256
2154
|
def FormulaDateTime(self)->'DateTime':
|
|
2257
2155
|
"""
|
|
2258
|
-
<summary>
|
|
2259
2156
|
Gets or sets bool value of the formula.
|
|
2260
|
-
|
|
2157
|
+
|
|
2261
2158
|
"""
|
|
2262
2159
|
GetDllLibXls().XlsRange_get_FormulaDateTime.argtypes=[c_void_p]
|
|
2263
2160
|
GetDllLibXls().XlsRange_get_FormulaDateTime.restype=c_void_p
|
|
@@ -2275,9 +2172,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2275
2172
|
|
|
2276
2173
|
def FormulaErrorValue(self)->str:
|
|
2277
2174
|
"""
|
|
2278
|
-
<summary>
|
|
2279
2175
|
Gets or sets error value of the formula.
|
|
2280
|
-
|
|
2176
|
+
|
|
2281
2177
|
"""
|
|
2282
2178
|
GetDllLibXls().XlsRange_get_FormulaErrorValue.argtypes=[c_void_p]
|
|
2283
2179
|
GetDllLibXls().XlsRange_get_FormulaErrorValue.restype=c_void_p
|
|
@@ -2293,9 +2189,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2293
2189
|
@property
|
|
2294
2190
|
def FormulaNumberValue(self)->float:
|
|
2295
2191
|
"""
|
|
2296
|
-
<summary>
|
|
2297
2192
|
Gets or sets double value of the formula.
|
|
2298
|
-
|
|
2193
|
+
|
|
2299
2194
|
"""
|
|
2300
2195
|
GetDllLibXls().XlsRange_get_FormulaNumberValue.argtypes=[c_void_p]
|
|
2301
2196
|
GetDllLibXls().XlsRange_get_FormulaNumberValue.restype=c_double
|
|
@@ -2311,9 +2206,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2311
2206
|
|
|
2312
2207
|
def FormulaR1C1(self)->str:
|
|
2313
2208
|
"""
|
|
2314
|
-
<summary>
|
|
2315
2209
|
Returns or sets the formula for the object, using R1C1-style notation in the language of the macro
|
|
2316
|
-
|
|
2210
|
+
|
|
2317
2211
|
"""
|
|
2318
2212
|
GetDllLibXls().XlsRange_get_FormulaR1C1.argtypes=[c_void_p]
|
|
2319
2213
|
GetDllLibXls().XlsRange_get_FormulaR1C1.restype=c_void_p
|
|
@@ -2330,9 +2224,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2330
2224
|
|
|
2331
2225
|
def FormulaStringValue(self)->str:
|
|
2332
2226
|
"""
|
|
2333
|
-
<summary>
|
|
2334
2227
|
Gets or sets string value of the range.
|
|
2335
|
-
|
|
2228
|
+
|
|
2336
2229
|
"""
|
|
2337
2230
|
GetDllLibXls().XlsRange_get_FormulaStringValue.argtypes=[c_void_p]
|
|
2338
2231
|
GetDllLibXls().XlsRange_get_FormulaStringValue.restype=c_void_p
|
|
@@ -2349,9 +2242,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2349
2242
|
|
|
2350
2243
|
def FormulaValue(self)->'str':
|
|
2351
2244
|
"""
|
|
2352
|
-
<summary>
|
|
2353
2245
|
Gets formula value.
|
|
2354
|
-
|
|
2246
|
+
|
|
2355
2247
|
"""
|
|
2356
2248
|
GetDllLibXls().XlsRange_get_FormulaValue.argtypes=[c_void_p]
|
|
2357
2249
|
GetDllLibXls().XlsRange_get_FormulaValue.restype=c_void_p
|
|
@@ -2363,22 +2255,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2363
2255
|
@property
|
|
2364
2256
|
def HasBoolean(self)->bool:
|
|
2365
2257
|
"""
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
</code>
|
|
2380
|
-
</example>
|
|
2381
|
-
</summary>
|
|
2258
|
+
Indicates whether range contains bool value.
|
|
2259
|
+
Example::
|
|
2260
|
+
|
|
2261
|
+
#Create worksheet
|
|
2262
|
+
workbook = Workbook()
|
|
2263
|
+
worksheet = workbook.Worksheets[0]
|
|
2264
|
+
#Assigning Value2 property of the Range
|
|
2265
|
+
worksheet["A3"].Value2 = false
|
|
2266
|
+
#Checking Range types
|
|
2267
|
+
isboolean = worksheet["A3"].HasBoolean
|
|
2268
|
+
#Save to file
|
|
2269
|
+
workbook.SaveToFile("HasBoolean.xlsx")
|
|
2270
|
+
|
|
2382
2271
|
"""
|
|
2383
2272
|
GetDllLibXls().XlsRange_get_HasBoolean.argtypes=[c_void_p]
|
|
2384
2273
|
GetDllLibXls().XlsRange_get_HasBoolean.restype=c_bool
|
|
@@ -2398,9 +2287,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2398
2287
|
@property
|
|
2399
2288
|
def ColumnCount(self)->int:
|
|
2400
2289
|
"""
|
|
2401
|
-
<summary>
|
|
2402
2290
|
Gets number of columns.
|
|
2403
|
-
|
|
2291
|
+
|
|
2404
2292
|
"""
|
|
2405
2293
|
GetDllLibXls().XlsRange_get_ColumnCount.argtypes=[c_void_p]
|
|
2406
2294
|
GetDllLibXls().XlsRange_get_ColumnCount.restype=c_int
|
|
@@ -2410,9 +2298,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2410
2298
|
@property
|
|
2411
2299
|
def RowCount(self)->int:
|
|
2412
2300
|
"""
|
|
2413
|
-
<summary>
|
|
2414
2301
|
Gets number of rows.
|
|
2415
|
-
|
|
2302
|
+
|
|
2416
2303
|
"""
|
|
2417
2304
|
GetDllLibXls().XlsRange_get_RowCount.argtypes=[c_void_p]
|
|
2418
2305
|
GetDllLibXls().XlsRange_get_RowCount.restype=c_int
|
|
@@ -2422,10 +2309,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2422
2309
|
@property
|
|
2423
2310
|
def HasDataValidation(self)->bool:
|
|
2424
2311
|
"""
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
If Range is not single cell, then returns true only if all cells have data validation. Read-only.
|
|
2428
|
-
</summary>
|
|
2312
|
+
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.
|
|
2313
|
+
|
|
2429
2314
|
"""
|
|
2430
2315
|
GetDllLibXls().XlsRange_get_HasDataValidation.argtypes=[c_void_p]
|
|
2431
2316
|
GetDllLibXls().XlsRange_get_HasDataValidation.restype=c_bool
|
|
@@ -2435,22 +2320,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2435
2320
|
@property
|
|
2436
2321
|
def HasDateTime(self)->bool:
|
|
2437
2322
|
"""
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
</code>
|
|
2452
|
-
</example>
|
|
2453
|
-
</summary>
|
|
2323
|
+
Determines if all cells in the range contain datetime.
|
|
2324
|
+
Example::
|
|
2325
|
+
|
|
2326
|
+
#Create worksheet
|
|
2327
|
+
workbook = Workbook()
|
|
2328
|
+
worksheet = workbook.Worksheets[0]
|
|
2329
|
+
#Assigning Value2 property of the Range
|
|
2330
|
+
worksheet["A1"].Value2 = DateTime.Now
|
|
2331
|
+
#Checking Range types
|
|
2332
|
+
isDateTime = worksheet["A1"].HasDateTime
|
|
2333
|
+
#Save to file
|
|
2334
|
+
workbook.SaveToFile("HasDateTime.xlsx")
|
|
2335
|
+
|
|
2454
2336
|
"""
|
|
2455
2337
|
GetDllLibXls().XlsRange_get_HasDateTime.argtypes=[c_void_p]
|
|
2456
2338
|
GetDllLibXls().XlsRange_get_HasDateTime.restype=c_bool
|
|
@@ -2460,9 +2342,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2460
2342
|
@property
|
|
2461
2343
|
def HasError(self)->bool:
|
|
2462
2344
|
"""
|
|
2463
|
-
<summary>
|
|
2464
2345
|
Indicates whether range contains error value.
|
|
2465
|
-
|
|
2346
|
+
|
|
2466
2347
|
"""
|
|
2467
2348
|
GetDllLibXls().XlsRange_get_HasError.argtypes=[c_void_p]
|
|
2468
2349
|
GetDllLibXls().XlsRange_get_HasError.restype=c_bool
|
|
@@ -2472,9 +2353,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2472
2353
|
@property
|
|
2473
2354
|
def HasExternalFormula(self)->bool:
|
|
2474
2355
|
"""
|
|
2475
|
-
<summary>
|
|
2476
2356
|
Check if the formula in the range has external links. Read-only.
|
|
2477
|
-
|
|
2357
|
+
|
|
2478
2358
|
"""
|
|
2479
2359
|
GetDllLibXls().XlsRange_get_HasExternalFormula.argtypes=[c_void_p]
|
|
2480
2360
|
GetDllLibXls().XlsRange_get_HasExternalFormula.restype=c_bool
|
|
@@ -2484,9 +2364,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2484
2364
|
@property
|
|
2485
2365
|
def HasFormula(self)->bool:
|
|
2486
2366
|
"""
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
</summary>
|
|
2367
|
+
True if all cells in the range contain formulas;
|
|
2368
|
+
|
|
2490
2369
|
"""
|
|
2491
2370
|
GetDllLibXls().XlsRange_get_HasFormula.argtypes=[c_void_p]
|
|
2492
2371
|
GetDllLibXls().XlsRange_get_HasFormula.restype=c_bool
|
|
@@ -2496,9 +2375,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2496
2375
|
@property
|
|
2497
2376
|
def HasFormulaArray(self)->bool:
|
|
2498
2377
|
"""
|
|
2499
|
-
<summary>
|
|
2500
2378
|
Determines if all cells in the range contain array-entered formula.
|
|
2501
|
-
|
|
2379
|
+
|
|
2502
2380
|
"""
|
|
2503
2381
|
GetDllLibXls().XlsRange_get_HasFormulaArray.argtypes=[c_void_p]
|
|
2504
2382
|
GetDllLibXls().XlsRange_get_HasFormulaArray.restype=c_bool
|
|
@@ -2508,9 +2386,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2508
2386
|
@property
|
|
2509
2387
|
def HasFormulaBoolValue(self)->bool:
|
|
2510
2388
|
"""
|
|
2511
|
-
<summary>
|
|
2512
2389
|
Determines if all cells in the range contain formula bool value..
|
|
2513
|
-
|
|
2390
|
+
|
|
2514
2391
|
"""
|
|
2515
2392
|
GetDllLibXls().XlsRange_get_HasFormulaBoolValue.argtypes=[c_void_p]
|
|
2516
2393
|
GetDllLibXls().XlsRange_get_HasFormulaBoolValue.restype=c_bool
|
|
@@ -2520,9 +2397,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2520
2397
|
@property
|
|
2521
2398
|
def HasFormulaDateTime(self)->bool:
|
|
2522
2399
|
"""
|
|
2523
|
-
<summary>
|
|
2524
2400
|
Indicates if current range has formula value formatted as DateTime. Read-only.
|
|
2525
|
-
|
|
2401
|
+
|
|
2526
2402
|
"""
|
|
2527
2403
|
GetDllLibXls().XlsRange_get_HasFormulaDateTime.argtypes=[c_void_p]
|
|
2528
2404
|
GetDllLibXls().XlsRange_get_HasFormulaDateTime.restype=c_bool
|
|
@@ -2532,9 +2408,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2532
2408
|
@property
|
|
2533
2409
|
def HasFormulaErrorValue(self)->bool:
|
|
2534
2410
|
"""
|
|
2535
|
-
<summary>
|
|
2536
2411
|
Determines if all cells in the range contain error value.
|
|
2537
|
-
|
|
2412
|
+
|
|
2538
2413
|
"""
|
|
2539
2414
|
GetDllLibXls().XlsRange_get_HasFormulaErrorValue.argtypes=[c_void_p]
|
|
2540
2415
|
GetDllLibXls().XlsRange_get_HasFormulaErrorValue.restype=c_bool
|
|
@@ -2544,9 +2419,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2544
2419
|
@property
|
|
2545
2420
|
def HasFormulaNumberValue(self)->bool:
|
|
2546
2421
|
"""
|
|
2547
|
-
<summary>
|
|
2548
2422
|
Indicates whether current range has formula number value.
|
|
2549
|
-
|
|
2423
|
+
|
|
2550
2424
|
"""
|
|
2551
2425
|
GetDllLibXls().XlsRange_get_HasFormulaNumberValue.argtypes=[c_void_p]
|
|
2552
2426
|
GetDllLibXls().XlsRange_get_HasFormulaNumberValue.restype=c_bool
|
|
@@ -2566,22 +2440,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2566
2440
|
@property
|
|
2567
2441
|
def HasMerged(self)->bool:
|
|
2568
2442
|
"""
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
</code>
|
|
2583
|
-
</example>
|
|
2584
|
-
</summary>
|
|
2443
|
+
Indicates whether this range is part of merged range.
|
|
2444
|
+
Example::
|
|
2445
|
+
|
|
2446
|
+
#Create worksheet
|
|
2447
|
+
workbook = Workbook()
|
|
2448
|
+
worksheet = workbook.Worksheets[0]
|
|
2449
|
+
#Set text
|
|
2450
|
+
worksheet["A1"].Text = "Sample text in cell"
|
|
2451
|
+
#Set merge
|
|
2452
|
+
worksheet["A1:B1"].Merge()
|
|
2453
|
+
#Check merge
|
|
2454
|
+
Console.Write(worksheet["A1:B1"].HasMerged)
|
|
2455
|
+
|
|
2585
2456
|
"""
|
|
2586
2457
|
GetDllLibXls().XlsRange_get_HasMerged.argtypes=[c_void_p]
|
|
2587
2458
|
GetDllLibXls().XlsRange_get_HasMerged.restype=c_bool
|
|
@@ -2591,22 +2462,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2591
2462
|
@property
|
|
2592
2463
|
def HasNumber(self)->bool:
|
|
2593
2464
|
"""
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
</code>
|
|
2608
|
-
</example>
|
|
2609
|
-
</summary>
|
|
2465
|
+
Determines if any one cell in the range contain number.
|
|
2466
|
+
Example::
|
|
2467
|
+
|
|
2468
|
+
#Create worksheet
|
|
2469
|
+
workbook = Workbook()
|
|
2470
|
+
worksheet = workbook.Worksheets[0]
|
|
2471
|
+
#Assigning Value2 property of the Range
|
|
2472
|
+
worksheet["A2"].Value2 = 45
|
|
2473
|
+
#Checking Range types
|
|
2474
|
+
isNumber = worksheet["A2"].HasNumber
|
|
2475
|
+
#Save to file
|
|
2476
|
+
workbook.SaveToFile("HasNumber.xlsx")
|
|
2477
|
+
|
|
2610
2478
|
"""
|
|
2611
2479
|
GetDllLibXls().XlsRange_get_HasNumber.argtypes=[c_void_p]
|
|
2612
2480
|
GetDllLibXls().XlsRange_get_HasNumber.restype=c_bool
|
|
@@ -2616,9 +2484,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2616
2484
|
@property
|
|
2617
2485
|
def HasPictures(self)->bool:
|
|
2618
2486
|
"""
|
|
2619
|
-
<summary>
|
|
2620
2487
|
Indicates whether the range is blank.
|
|
2621
|
-
|
|
2488
|
+
|
|
2622
2489
|
"""
|
|
2623
2490
|
GetDllLibXls().XlsRange_get_HasPictures.argtypes=[c_void_p]
|
|
2624
2491
|
GetDllLibXls().XlsRange_get_HasPictures.restype=c_bool
|
|
@@ -2628,28 +2495,25 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2628
2495
|
@property
|
|
2629
2496
|
def HasRichText(self)->bool:
|
|
2630
2497
|
"""
|
|
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>
|
|
2498
|
+
Determines if all cells in the range contain rich text string.
|
|
2499
|
+
Example::
|
|
2500
|
+
|
|
2501
|
+
#Create worksheet
|
|
2502
|
+
workbook = Workbook()
|
|
2503
|
+
worksheet = workbook.Worksheets[0]
|
|
2504
|
+
#Create style
|
|
2505
|
+
style = workbook.Styles.Add("CustomStyle")
|
|
2506
|
+
#Set rich text
|
|
2507
|
+
richText = worksheet["C2"].RichText
|
|
2508
|
+
richText.Text = "Sample"
|
|
2509
|
+
font = style.Font
|
|
2510
|
+
font.Color = Color.Red
|
|
2511
|
+
richText.SetFont(0, 5, font)
|
|
2512
|
+
#Check HasRichText
|
|
2513
|
+
Console.Write(worksheet["C2"].HasRichText)
|
|
2514
|
+
#Save to file
|
|
2515
|
+
workbook.SaveToFile("HasRichText.xlsx")
|
|
2516
|
+
|
|
2653
2517
|
"""
|
|
2654
2518
|
GetDllLibXls().XlsRange_get_HasRichText.argtypes=[c_void_p]
|
|
2655
2519
|
GetDllLibXls().XlsRange_get_HasRichText.restype=c_bool
|
|
@@ -2659,9 +2523,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2659
2523
|
@property
|
|
2660
2524
|
def HasString(self)->bool:
|
|
2661
2525
|
"""
|
|
2662
|
-
<summary>
|
|
2663
2526
|
Determines if all cells in the range contain string.
|
|
2664
|
-
|
|
2527
|
+
|
|
2665
2528
|
"""
|
|
2666
2529
|
GetDllLibXls().XlsRange_get_HasString.argtypes=[c_void_p]
|
|
2667
2530
|
GetDllLibXls().XlsRange_get_HasString.restype=c_bool
|
|
@@ -2671,25 +2534,22 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2671
2534
|
@property
|
|
2672
2535
|
def HasStyle(self)->bool:
|
|
2673
2536
|
"""
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
</code>
|
|
2691
|
-
</example>
|
|
2692
|
-
</summary>
|
|
2537
|
+
Determines if all cells in the range contain differs from default style.
|
|
2538
|
+
Example::
|
|
2539
|
+
|
|
2540
|
+
#Create worksheet
|
|
2541
|
+
workbook = Workbook()
|
|
2542
|
+
worksheet = workbook.Worksheets[0]
|
|
2543
|
+
#Add style
|
|
2544
|
+
style = workbook.Styles.Add("CustomStyle")
|
|
2545
|
+
#Set color and style
|
|
2546
|
+
style.Color = Color.Red
|
|
2547
|
+
worksheet["C2"].Style = style
|
|
2548
|
+
#Check HasStyle
|
|
2549
|
+
Console.Write(worksheet["C2"].HasStyle)
|
|
2550
|
+
#Save to file
|
|
2551
|
+
workbook.SaveToFile("HasStyle.xlsx")
|
|
2552
|
+
|
|
2693
2553
|
"""
|
|
2694
2554
|
GetDllLibXls().XlsRange_get_HasStyle.argtypes=[c_void_p]
|
|
2695
2555
|
GetDllLibXls().XlsRange_get_HasStyle.restype=c_bool
|
|
@@ -2700,22 +2560,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2700
2560
|
|
|
2701
2561
|
def HorizontalAlignment(self)->'HorizontalAlignType':
|
|
2702
2562
|
"""
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
</code>
|
|
2717
|
-
</example>
|
|
2718
|
-
</summary>
|
|
2563
|
+
Returns or sets the horizontal alignment for the specified object.
|
|
2564
|
+
Example::
|
|
2565
|
+
|
|
2566
|
+
#Create worksheet
|
|
2567
|
+
workbook = Workbook()
|
|
2568
|
+
worksheet = workbook.Worksheets[0]
|
|
2569
|
+
#Set text
|
|
2570
|
+
worksheet["A1"].Text = "Test"
|
|
2571
|
+
#Set alignment
|
|
2572
|
+
worksheet["A1"].HorizontalAlignment = HorizontalAlignType.Right
|
|
2573
|
+
#Save to file
|
|
2574
|
+
workbook.SaveToFile("HorizontalAlignment.xlsx")
|
|
2575
|
+
|
|
2719
2576
|
"""
|
|
2720
2577
|
GetDllLibXls().XlsRange_get_HorizontalAlignment.argtypes=[c_void_p]
|
|
2721
2578
|
GetDllLibXls().XlsRange_get_HorizontalAlignment.restype=c_int
|
|
@@ -2732,9 +2589,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2732
2589
|
|
|
2733
2590
|
def Hyperlinks(self)->'IHyperLinks':
|
|
2734
2591
|
"""
|
|
2735
|
-
<summary>
|
|
2736
2592
|
Returns hyperlinks for this range.
|
|
2737
|
-
|
|
2593
|
+
|
|
2738
2594
|
"""
|
|
2739
2595
|
GetDllLibXls().XlsRange_get_Hyperlinks.argtypes=[c_void_p]
|
|
2740
2596
|
GetDllLibXls().XlsRange_get_Hyperlinks.restype=c_void_p
|
|
@@ -2747,9 +2603,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2747
2603
|
|
|
2748
2604
|
def IgnoreErrorOptions(self)->'IgnoreErrorType':
|
|
2749
2605
|
"""
|
|
2750
|
-
<summary>
|
|
2751
2606
|
Represents ignore error options. If not single cell returs concatenateed flags.
|
|
2752
|
-
|
|
2607
|
+
|
|
2753
2608
|
"""
|
|
2754
2609
|
GetDllLibXls().XlsRange_get_IgnoreErrorOptions.argtypes=[c_void_p]
|
|
2755
2610
|
GetDllLibXls().XlsRange_get_IgnoreErrorOptions.restype=c_int
|
|
@@ -2765,22 +2620,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2765
2620
|
@property
|
|
2766
2621
|
def IndentLevel(self)->int:
|
|
2767
2622
|
"""
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
</code>
|
|
2782
|
-
</example>
|
|
2783
|
-
</summary>
|
|
2623
|
+
Returns or sets the indent level for the cell or range. value should be 0 between 15.
|
|
2624
|
+
Example::
|
|
2625
|
+
|
|
2626
|
+
#Create worksheet
|
|
2627
|
+
workbook = Workbook()
|
|
2628
|
+
worksheet = workbook.Worksheets[0]
|
|
2629
|
+
#Set text
|
|
2630
|
+
worksheet["C2"].Text = "Sample"
|
|
2631
|
+
#Set indent level
|
|
2632
|
+
worksheet["C2"].IndentLevel = 2
|
|
2633
|
+
#Save to file
|
|
2634
|
+
workbook.SaveToFile("IndentLevel.xlsx")
|
|
2635
|
+
|
|
2784
2636
|
"""
|
|
2785
2637
|
GetDllLibXls().XlsRange_get_IndentLevel.argtypes=[c_void_p]
|
|
2786
2638
|
GetDllLibXls().XlsRange_get_IndentLevel.restype=c_int
|
|
@@ -2795,9 +2647,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2795
2647
|
@property
|
|
2796
2648
|
def IsAllNumber(self)->bool:
|
|
2797
2649
|
"""
|
|
2798
|
-
<summary>
|
|
2799
2650
|
Determines if all cells in the range contain number.
|
|
2800
|
-
|
|
2651
|
+
|
|
2801
2652
|
"""
|
|
2802
2653
|
GetDllLibXls().XlsRange_get_IsAllNumber.argtypes=[c_void_p]
|
|
2803
2654
|
GetDllLibXls().XlsRange_get_IsAllNumber.restype=c_bool
|
|
@@ -2807,9 +2658,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2807
2658
|
@property
|
|
2808
2659
|
def IsBlank(self)->bool:
|
|
2809
2660
|
"""
|
|
2810
|
-
<summary>
|
|
2811
2661
|
Indicates whether the range is blank.
|
|
2812
|
-
|
|
2662
|
+
|
|
2813
2663
|
"""
|
|
2814
2664
|
GetDllLibXls().XlsRange_get_IsBlank.argtypes=[c_void_p]
|
|
2815
2665
|
GetDllLibXls().XlsRange_get_IsBlank.restype=c_bool
|
|
@@ -2819,9 +2669,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2819
2669
|
@property
|
|
2820
2670
|
def IsFormulaHidden(self)->bool:
|
|
2821
2671
|
"""
|
|
2822
|
-
<summary>
|
|
2823
2672
|
Determines if the formula will be hidden when the worksheet is protected.
|
|
2824
|
-
|
|
2673
|
+
|
|
2825
2674
|
"""
|
|
2826
2675
|
GetDllLibXls().XlsRange_get_IsFormulaHidden.argtypes=[c_void_p]
|
|
2827
2676
|
GetDllLibXls().XlsRange_get_IsFormulaHidden.restype=c_bool
|
|
@@ -2836,9 +2685,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2836
2685
|
@property
|
|
2837
2686
|
def IsGroupedByColumn(self)->bool:
|
|
2838
2687
|
"""
|
|
2839
|
-
<summary>
|
|
2840
2688
|
Indicates whether this range is grouped by column.
|
|
2841
|
-
|
|
2689
|
+
|
|
2842
2690
|
"""
|
|
2843
2691
|
GetDllLibXls().XlsRange_get_IsGroupedByColumn.argtypes=[c_void_p]
|
|
2844
2692
|
GetDllLibXls().XlsRange_get_IsGroupedByColumn.restype=c_bool
|
|
@@ -2848,9 +2696,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2848
2696
|
@property
|
|
2849
2697
|
def IsGroupedByRow(self)->bool:
|
|
2850
2698
|
"""
|
|
2851
|
-
<summary>
|
|
2852
2699
|
Indicates whether this range is grouped by row.
|
|
2853
|
-
|
|
2700
|
+
|
|
2854
2701
|
"""
|
|
2855
2702
|
GetDllLibXls().XlsRange_get_IsGroupedByRow.argtypes=[c_void_p]
|
|
2856
2703
|
GetDllLibXls().XlsRange_get_IsGroupedByRow.restype=c_bool
|
|
@@ -2860,9 +2707,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2860
2707
|
@property
|
|
2861
2708
|
def IsInitialized(self)->bool:
|
|
2862
2709
|
"""
|
|
2863
|
-
<summary>
|
|
2864
2710
|
Indicates whether range has been initialized.
|
|
2865
|
-
|
|
2711
|
+
|
|
2866
2712
|
"""
|
|
2867
2713
|
GetDllLibXls().XlsRange_get_IsInitialized.argtypes=[c_void_p]
|
|
2868
2714
|
GetDllLibXls().XlsRange_get_IsInitialized.restype=c_bool
|
|
@@ -2873,9 +2719,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2873
2719
|
|
|
2874
2720
|
def IsStringsPreserved(self)->bool:
|
|
2875
2721
|
"""
|
|
2876
|
-
<summary>
|
|
2877
2722
|
Indicates whether all values in the range are preserved as strings.
|
|
2878
|
-
|
|
2723
|
+
|
|
2879
2724
|
"""
|
|
2880
2725
|
GetDllLibXls().XlsRange_get_IsStringsPreserved.argtypes=[c_void_p]
|
|
2881
2726
|
GetDllLibXls().XlsRange_get_IsStringsPreserved.restype=c_bool
|
|
@@ -2892,22 +2737,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2892
2737
|
@property
|
|
2893
2738
|
def IsWrapText(self)->bool:
|
|
2894
2739
|
"""
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
</code>
|
|
2909
|
-
</example>
|
|
2910
|
-
</summary>
|
|
2740
|
+
Determines if Microsoft Excel wraps the text in the object.
|
|
2741
|
+
Example::
|
|
2742
|
+
|
|
2743
|
+
#Create worksheet
|
|
2744
|
+
workbook = Workbook()
|
|
2745
|
+
worksheet = workbook.Worksheets[0]
|
|
2746
|
+
#Set text
|
|
2747
|
+
worksheet["A1"].Text = "This cell contains sample text"
|
|
2748
|
+
#Set wrap text
|
|
2749
|
+
worksheet["A1"].IsWrapText = true
|
|
2750
|
+
#Save to file
|
|
2751
|
+
workbook.SaveToFile("IsWrapText.xlsx")
|
|
2752
|
+
|
|
2911
2753
|
"""
|
|
2912
2754
|
GetDllLibXls().XlsRange_get_IsWrapText.argtypes=[c_void_p]
|
|
2913
2755
|
GetDllLibXls().XlsRange_get_IsWrapText.restype=c_bool
|
|
@@ -2922,9 +2764,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2922
2764
|
@property
|
|
2923
2765
|
def LastColumn(self)->int:
|
|
2924
2766
|
"""
|
|
2925
|
-
<summary>
|
|
2926
2767
|
Gets or sets last column of the range.
|
|
2927
|
-
|
|
2768
|
+
|
|
2928
2769
|
"""
|
|
2929
2770
|
GetDllLibXls().XlsRange_get_LastColumn.argtypes=[c_void_p]
|
|
2930
2771
|
GetDllLibXls().XlsRange_get_LastColumn.restype=c_int
|
|
@@ -2939,9 +2780,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2939
2780
|
@property
|
|
2940
2781
|
def LastRow(self)->int:
|
|
2941
2782
|
"""
|
|
2942
|
-
<summary>
|
|
2943
2783
|
Gets or sets last row of the range.
|
|
2944
|
-
|
|
2784
|
+
|
|
2945
2785
|
"""
|
|
2946
2786
|
GetDllLibXls().XlsRange_get_LastRow.argtypes=[c_void_p]
|
|
2947
2787
|
GetDllLibXls().XlsRange_get_LastRow.restype=c_int
|
|
@@ -2970,9 +2810,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2970
2810
|
|
|
2971
2811
|
def DisplayedText(self)->str:
|
|
2972
2812
|
"""
|
|
2973
|
-
<summary>
|
|
2974
2813
|
Gets cell displayed text.
|
|
2975
|
-
|
|
2814
|
+
|
|
2976
2815
|
"""
|
|
2977
2816
|
GetDllLibXls().XlsRange_get_DisplayedText.argtypes=[c_void_p]
|
|
2978
2817
|
GetDllLibXls().XlsRange_get_DisplayedText.restype=c_void_p
|
|
@@ -2983,9 +2822,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2983
2822
|
@property
|
|
2984
2823
|
def HasConditionFormats(self)->bool:
|
|
2985
2824
|
"""
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
</summary>
|
|
2825
|
+
Indicates whether each cell of the range has some conditional formatting.
|
|
2826
|
+
|
|
2989
2827
|
"""
|
|
2990
2828
|
GetDllLibXls().XlsRange_get_HasConditionFormats.argtypes=[c_void_p]
|
|
2991
2829
|
GetDllLibXls().XlsRange_get_HasConditionFormats.restype=c_bool
|
|
@@ -2996,22 +2834,19 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
2996
2834
|
|
|
2997
2835
|
def NumberFormat(self)->str:
|
|
2998
2836
|
"""
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
</code>
|
|
3013
|
-
</example>
|
|
3014
|
-
</summary>
|
|
2837
|
+
Returns or sets the format code for the object.
|
|
2838
|
+
Example::
|
|
2839
|
+
|
|
2840
|
+
#Create worksheet
|
|
2841
|
+
workbook = Workbook()
|
|
2842
|
+
worksheet = workbook.Worksheets[0]
|
|
2843
|
+
#Set data
|
|
2844
|
+
worksheet["C2"].Value = "3100.23"
|
|
2845
|
+
#Set number format
|
|
2846
|
+
worksheet["C2"].NumberFormat = "#,#1.#"
|
|
2847
|
+
#Save to file
|
|
2848
|
+
workbook.SaveToFile("NumberFormat.xlsx")
|
|
2849
|
+
|
|
3015
2850
|
"""
|
|
3016
2851
|
GetDllLibXls().XlsRange_get_NumberFormat.argtypes=[c_void_p]
|
|
3017
2852
|
GetDllLibXls().XlsRange_get_NumberFormat.restype=c_void_p
|
|
@@ -3028,23 +2863,20 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
3028
2863
|
|
|
3029
2864
|
def NumberText(self)->str:
|
|
3030
2865
|
"""
|
|
3031
|
-
<summary>
|
|
3032
2866
|
Returns cell text for number format.
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
</example>
|
|
3047
|
-
</summary>
|
|
2867
|
+
Example::
|
|
2868
|
+
|
|
2869
|
+
#Create worksheet
|
|
2870
|
+
workbook = Workbook()
|
|
2871
|
+
worksheet = workbook.Worksheets[0]
|
|
2872
|
+
#Gets cell value with its number format
|
|
2873
|
+
XlsRange range= worksheet.Range[3, 1]
|
|
2874
|
+
range.Value = "1/1/2015"
|
|
2875
|
+
range.NumberFormat = "dd-MMM-yyyy"
|
|
2876
|
+
numberText = range.NumberText
|
|
2877
|
+
#Save to file
|
|
2878
|
+
workbook.SaveToFile("NumberText.xlsx")
|
|
2879
|
+
|
|
3048
2880
|
"""
|
|
3049
2881
|
GetDllLibXls().XlsRange_get_NumberText.argtypes=[c_void_p]
|
|
3050
2882
|
GetDllLibXls().XlsRange_get_NumberText.restype=c_void_p
|
|
@@ -3055,9 +2887,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
3055
2887
|
@property
|
|
3056
2888
|
def NumberValue(self)->float:
|
|
3057
2889
|
"""
|
|
3058
|
-
<summary>
|
|
3059
2890
|
Gets or sets number value of the range.
|
|
3060
|
-
|
|
2891
|
+
|
|
3061
2892
|
"""
|
|
3062
2893
|
GetDllLibXls().XlsRange_get_NumberValue.argtypes=[c_void_p]
|
|
3063
2894
|
GetDllLibXls().XlsRange_get_NumberValue.restype=c_double
|
|
@@ -3086,19 +2917,15 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
3086
2917
|
|
|
3087
2918
|
def RangeAddress(self)->str:
|
|
3088
2919
|
"""
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
string address = worksheet.Range[3, 4].RangeAddress;
|
|
3099
|
-
</code>
|
|
3100
|
-
</example>
|
|
3101
|
-
</summary>
|
|
2920
|
+
Returns the range reference in the language of the macro. Read-only String.
|
|
2921
|
+
Example::
|
|
2922
|
+
|
|
2923
|
+
#Create worksheet
|
|
2924
|
+
workbook = Workbook()
|
|
2925
|
+
worksheet = workbook.Worksheets[0]
|
|
2926
|
+
#Get RangeAddress
|
|
2927
|
+
address = worksheet.Range[3, 4].RangeAddress
|
|
2928
|
+
|
|
3102
2929
|
"""
|
|
3103
2930
|
GetDllLibXls().XlsRange_get_RangeAddress.argtypes=[c_void_p]
|
|
3104
2931
|
GetDllLibXls().XlsRange_get_RangeAddress.restype=c_void_p
|
|
@@ -3110,18 +2937,15 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
3110
2937
|
|
|
3111
2938
|
def RangeAddressLocal(self)->str:
|
|
3112
2939
|
"""
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
</code>
|
|
3123
|
-
</example>
|
|
3124
|
-
</summary>
|
|
2940
|
+
Returns the range reference for the specified range in the language of the user.
|
|
2941
|
+
Example::
|
|
2942
|
+
|
|
2943
|
+
#Create worksheet
|
|
2944
|
+
workbook = Workbook()
|
|
2945
|
+
worksheet = workbook.Worksheets[0]
|
|
2946
|
+
#Get RangeAddressLocal
|
|
2947
|
+
address = worksheet.Range[3, 4].RangeAddressLocal
|
|
2948
|
+
|
|
3125
2949
|
"""
|
|
3126
2950
|
GetDllLibXls().XlsRange_get_RangeAddressLocal.argtypes=[c_void_p]
|
|
3127
2951
|
GetDllLibXls().XlsRange_get_RangeAddressLocal.restype=c_void_p
|
|
@@ -3133,9 +2957,8 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
3133
2957
|
|
|
3134
2958
|
def RangeGlobalAddressWithoutSheetName(self)->str:
|
|
3135
2959
|
"""
|
|
3136
|
-
<summary>
|
|
3137
2960
|
Return global address without worksheet name.
|
|
3138
|
-
|
|
2961
|
+
|
|
3139
2962
|
"""
|
|
3140
2963
|
GetDllLibXls().XlsRange_get_RangeGlobalAddressWithoutSheetName.argtypes=[c_void_p]
|
|
3141
2964
|
GetDllLibXls().XlsRange_get_RangeGlobalAddressWithoutSheetName.restype=c_void_p
|
|
@@ -3147,18 +2970,15 @@ class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
|
3147
2970
|
|
|
3148
2971
|
def RangeGlobalAddress(self)->str:
|
|
3149
2972
|
"""
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
</code>
|
|
3160
|
-
</example>
|
|
3161
|
-
</summary>
|
|
2973
|
+
Returns the range reference in the language of the macro.
|
|
2974
|
+
Example::
|
|
2975
|
+
|
|
2976
|
+
#Create worksheet
|
|
2977
|
+
workbook = Workbook()
|
|
2978
|
+
worksheet = workbook.Worksheets[0]
|
|
2979
|
+
#Get RangeAddress
|
|
2980
|
+
address = worksheet.Range[3, 4].RangeGlobalAddress
|
|
2981
|
+
|
|
3162
2982
|
"""
|
|
3163
2983
|
GetDllLibXls().XlsRange_get_RangeGlobalAddress.argtypes=[c_void_p]
|
|
3164
2984
|
GetDllLibXls().XlsRange_get_RangeGlobalAddress.restype=c_void_p
|