spire-xls 15.5.0__py3-none-macosx_10_7_universal.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- spire/__init__.py +0 -0
- spire/xls/AddInFunctionsCollection.py +29 -0
- spire/xls/AddtionalFormatWrapper.py +976 -0
- spire/xls/AlertStyleType.py +18 -0
- spire/xls/ArcShapeCollection.py +70 -0
- spire/xls/AutoFiltersCollection.py +527 -0
- spire/xls/AutoFitterOptions.py +66 -0
- spire/xls/AutoFormatOptions.py +23 -0
- spire/xls/AutoFormatType.py +32 -0
- spire/xls/AutoSortScope.py +25 -0
- spire/xls/Average.py +29 -0
- spire/xls/AverageType.py +25 -0
- spire/xls/AxisLineIdentifierType.py +19 -0
- spire/xls/AxisTextDirectionType.py +18 -0
- spire/xls/AxisType.py +18 -0
- spire/xls/AxisTypes.py +18 -0
- spire/xls/BaseFormatType.py +17 -0
- spire/xls/BordersCollection.py +158 -0
- spire/xls/BordersCollectionArrayWrapper.py +95 -0
- spire/xls/BordersLineType.py +23 -0
- spire/xls/BubbleSizeType.py +17 -0
- spire/xls/BuiltInDocumentProperties.py +12 -0
- spire/xls/BuiltInPropertyType.py +50 -0
- spire/xls/BuiltInStyles.py +66 -0
- spire/xls/ButtonShapeCollection.py +70 -0
- spire/xls/CategoryType.py +18 -0
- spire/xls/CellBaseStyle.py +26 -0
- spire/xls/CellBorder.py +154 -0
- spire/xls/CellDataType.py +23 -0
- spire/xls/CellFormatType.py +21 -0
- spire/xls/CellRange.py +915 -0
- spire/xls/CellStyle.py +85 -0
- spire/xls/CellStyleFlag.py +432 -0
- spire/xls/CellStyleObject.py +617 -0
- spire/xls/CellValueChangedEventArgs.py +75 -0
- spire/xls/CellValueChangedEventHandler.py +52 -0
- spire/xls/Chart.py +404 -0
- spire/xls/ChartArea.py +61 -0
- spire/xls/ChartBackgroundMode.py +18 -0
- spire/xls/ChartBaseUnitType.py +18 -0
- spire/xls/ChartBorder.py +12 -0
- spire/xls/ChartCategoryAxis.py +93 -0
- spire/xls/ChartDataLabels.py +42 -0
- spire/xls/ChartDataPoint.py +42 -0
- spire/xls/ChartDataPointsCollection.py +75 -0
- spire/xls/ChartDataTable.py +12 -0
- spire/xls/ChartDisplayUnitType.py +26 -0
- spire/xls/ChartDropBar.py +12 -0
- spire/xls/ChartFormat.py +72 -0
- spire/xls/ChartFormatCollection.py +59 -0
- spire/xls/ChartGridLine.py +27 -0
- spire/xls/ChartInterior.py +12 -0
- spire/xls/ChartLegend.py +42 -0
- spire/xls/ChartLegendEntriesColl.py +128 -0
- spire/xls/ChartLegendEntry.py +27 -0
- spire/xls/ChartLinePatternType.py +24 -0
- spire/xls/ChartLineWeightType.py +19 -0
- spire/xls/ChartMarkerType.py +27 -0
- spire/xls/ChartPageSetup.py +12 -0
- spire/xls/ChartParagraphType.py +18 -0
- spire/xls/ChartPieType.py +18 -0
- spire/xls/ChartPlotArea.py +53 -0
- spire/xls/ChartPlotEmptyType.py +18 -0
- spire/xls/ChartSerie.py +142 -0
- spire/xls/ChartSerieDataFormat.py +56 -0
- spire/xls/ChartSeries.py +154 -0
- spire/xls/ChartSeriesAxis.py +72 -0
- spire/xls/ChartShadow.py +235 -0
- spire/xls/ChartSheet.py +285 -0
- spire/xls/ChartTextArea.py +782 -0
- spire/xls/ChartTitle.py +12 -0
- spire/xls/ChartValueAxis.py +92 -0
- spire/xls/ChartWallOrFloor.py +12 -0
- spire/xls/ChartsCollection.py +113 -0
- spire/xls/CheckBoxCollection.py +70 -0
- spire/xls/CheckState.py +18 -0
- spire/xls/CollectionBase.py +184 -0
- spire/xls/CollectionChangeEventArgs.py +36 -0
- spire/xls/CollectionExtended.py +92 -0
- spire/xls/ColorConditionValue.py +91 -0
- spire/xls/ColorFilter.py +45 -0
- spire/xls/ColorScale.py +172 -0
- spire/xls/ColorType.py +18 -0
- spire/xls/ComboBoxCollection.py +70 -0
- spire/xls/CommentHAlignType.py +21 -0
- spire/xls/CommentVAlignType.py +20 -0
- spire/xls/CommentsCollection.py +109 -0
- spire/xls/CommentsRange.py +578 -0
- spire/xls/CommonWrapper.py +40 -0
- spire/xls/ComparisonOperatorType.py +24 -0
- spire/xls/CompoundLineType.py +18 -0
- spire/xls/CondFormatCollectionWrapper.py +125 -0
- spire/xls/ConditionValue.py +82 -0
- spire/xls/ConditionValuePosition.py +16 -0
- spire/xls/ConditionValueType.py +20 -0
- spire/xls/ConditionalFormat.py +14 -0
- spire/xls/ConditionalFormatScope.py +16 -0
- spire/xls/ConditionalFormatType.py +33 -0
- spire/xls/ConditionalFormatWrapper.py +986 -0
- spire/xls/ConditionalFormats.py +55 -0
- spire/xls/ConditionalTopNType.py +17 -0
- spire/xls/ConnectionDataSourceType.py +26 -0
- spire/xls/ConverterSetting.py +347 -0
- spire/xls/CopyRangeOptions.py +23 -0
- spire/xls/CustomFilter.py +147 -0
- spire/xls/CustomFilterCollection.py +113 -0
- spire/xls/DBConnection.py +198 -0
- spire/xls/DVAspect.py +15 -0
- spire/xls/DataBar.py +220 -0
- spire/xls/DataBarAxisPosition.py +16 -0
- spire/xls/DataBarBorder.py +47 -0
- spire/xls/DataBarBorderType.py +15 -0
- spire/xls/DataBarFillType.py +15 -0
- spire/xls/DataBarNegativeColorType.py +15 -0
- spire/xls/DataConnections.py +25 -0
- spire/xls/DataLabelPositionType.py +26 -0
- spire/xls/DataMarkerDirection.py +17 -0
- spire/xls/DataSorter.py +154 -0
- spire/xls/DataSourceType.py +19 -0
- spire/xls/DateTimeGroupItem.py +132 -0
- spire/xls/DateTimeGroupingType.py +19 -0
- spire/xls/DeleteOption.py +15 -0
- spire/xls/DocumentProperty.py +304 -0
- spire/xls/DropLineStyleType.py +18 -0
- spire/xls/DynamicFilter.py +71 -0
- spire/xls/DynamicFilterType.py +48 -0
- spire/xls/EncryptedKeyInfo.py +12 -0
- spire/xls/ErrorBarIncludeType.py +19 -0
- spire/xls/ErrorBarType.py +20 -0
- spire/xls/Excel2016Charttype.py +20 -0
- spire/xls/ExcelAddInFunction.py +12 -0
- spire/xls/ExcelCalculationMode.py +18 -0
- spire/xls/ExcelChartType.py +96 -0
- spire/xls/ExcelClearOptions.py +18 -0
- spire/xls/ExcelColors.py +121 -0
- spire/xls/ExcelComboType.py +22 -0
- spire/xls/ExcelComment.py +27 -0
- spire/xls/ExcelCommentObject.py +618 -0
- spire/xls/ExcelFindOptions.py +16 -0
- spire/xls/ExcelFont.py +310 -0
- spire/xls/ExcelGradient.py +174 -0
- spire/xls/ExcelHorizontalAlignment.py +21 -0
- spire/xls/ExcelInterior.py +128 -0
- spire/xls/ExcelPatternType.py +52 -0
- spire/xls/ExcelPicture.py +12 -0
- spire/xls/ExcelQuartileCalculation.py +17 -0
- spire/xls/ExcelSaveType.py +15 -0
- spire/xls/ExcelShapeType.py +41 -0
- spire/xls/ExcelSheetType.py +20 -0
- spire/xls/ExcelTotalsCalculation.py +23 -0
- spire/xls/ExcelTreeMapLabelOption.py +18 -0
- spire/xls/ExcelVersion.py +24 -0
- spire/xls/ExcelVerticalAlignment.py +21 -0
- spire/xls/ExpandCollapseFlags.py +18 -0
- spire/xls/ExportTableOptions.py +74 -0
- spire/xls/ExternalConnection.py +147 -0
- spire/xls/ExternalLink.py +58 -0
- spire/xls/ExternalLinkCollection.py +25 -0
- spire/xls/FileFormat.py +40 -0
- spire/xls/FillPictureType.py +16 -0
- spire/xls/FilterColumn.py +258 -0
- spire/xls/FilterConditionType.py +21 -0
- spire/xls/FilterDataType.py +22 -0
- spire/xls/FilterOperatorType.py +20 -0
- spire/xls/FilterType.py +20 -0
- spire/xls/FindType.py +19 -0
- spire/xls/Font.py +376 -0
- spire/xls/FontArrayWrapper.py +265 -0
- spire/xls/FontUnderlineType.py +20 -0
- spire/xls/FontVertialAlignmentType.py +20 -0
- spire/xls/FontWrapper.py +450 -0
- spire/xls/FontsCollection.py +87 -0
- spire/xls/Format3D.py +235 -0
- spire/xls/GeomertyAdjustValue.py +63 -0
- spire/xls/GeomertyAdjustValueFormulaType.py +30 -0
- spire/xls/GeomertyAdjustValuesCollection.py +39 -0
- spire/xls/GetText.py +15 -0
- spire/xls/GoalSeek.py +65 -0
- spire/xls/GoalSeekResult.py +57 -0
- spire/xls/GradientArrayWrapper.py +188 -0
- spire/xls/GradientColorType.py +18 -0
- spire/xls/GradientPatternType.py +64 -0
- spire/xls/GradientPresetType.py +39 -0
- spire/xls/GradientStops.py +146 -0
- spire/xls/GradientStyleType.py +21 -0
- spire/xls/GradientTextureType.py +40 -0
- spire/xls/GradientType.py +17 -0
- spire/xls/GradientVariantsType.py +19 -0
- spire/xls/GroupBoxCollection.py +70 -0
- spire/xls/GroupByType.py +15 -0
- spire/xls/GroupShape.py +21 -0
- spire/xls/GroupShapeCollection.py +46 -0
- spire/xls/HPageBreak.py +32 -0
- spire/xls/HPageBreaksCollection.py +108 -0
- spire/xls/HTMLOptions.py +144 -0
- spire/xls/HistogramAxisFormat.py +30 -0
- spire/xls/HorizontalAlignType.py +23 -0
- spire/xls/HttpContentType.py +18 -0
- spire/xls/HyperLink.py +32 -0
- spire/xls/HyperLinkType.py +20 -0
- spire/xls/HyperLinksCollection.py +72 -0
- spire/xls/IAddInFunction.py +22 -0
- spire/xls/IAddInFunctions.py +50 -0
- spire/xls/IArcShape.py +259 -0
- spire/xls/IArcShapes.py +50 -0
- spire/xls/IAutoFilter.py +167 -0
- spire/xls/IAutoFilterCondition.py +123 -0
- spire/xls/IAutoFilters.py +49 -0
- spire/xls/IBorder.py +116 -0
- spire/xls/IBorders.py +106 -0
- spire/xls/IBuiltInDocumentProperties.py +579 -0
- spire/xls/IButtonShape.py +12 -0
- spire/xls/IButtonShapes.py +50 -0
- spire/xls/IChart.py +1368 -0
- spire/xls/IChartAxis.py +722 -0
- spire/xls/IChartBorder.py +220 -0
- spire/xls/IChartCategoryAxis.py +410 -0
- spire/xls/IChartDataLabels.py +457 -0
- spire/xls/IChartDataPoint.py +131 -0
- spire/xls/IChartDataPoints.py +31 -0
- spire/xls/IChartDataTable.py +197 -0
- spire/xls/IChartDropBar.py +12 -0
- spire/xls/IChartErrorBars.py +373 -0
- spire/xls/IChartFillBorder.py +303 -0
- spire/xls/IChartFormat.py +571 -0
- spire/xls/IChartFrameFormat.py +93 -0
- spire/xls/IChartGridLine.py +107 -0
- spire/xls/IChartInterior.py +278 -0
- spire/xls/IChartLegend.py +499 -0
- spire/xls/IChartLegendEntries.py +30 -0
- spire/xls/IChartLegendEntry.py +178 -0
- spire/xls/IChartPageSetup.py +56 -0
- spire/xls/IChartSerie.py +779 -0
- spire/xls/IChartSerieDataFormat.py +566 -0
- spire/xls/IChartSeries.py +39 -0
- spire/xls/IChartSeriesAxis.py +128 -0
- spire/xls/IChartShape.py +92 -0
- spire/xls/IChartShapes.py +39 -0
- spire/xls/IChartTextArea.py +197 -0
- spire/xls/IChartTrendLine.py +548 -0
- spire/xls/IChartTrendLines.py +79 -0
- spire/xls/IChartValueAxis.py +518 -0
- spire/xls/IChartWallOrFloor.py +32 -0
- spire/xls/ICharts.py +70 -0
- spire/xls/ICheckBox.py +96 -0
- spire/xls/ICheckBoxes.py +50 -0
- spire/xls/ICloneParent.py +28 -0
- spire/xls/IColorConditionValue.py +31 -0
- spire/xls/IColorScale.py +32 -0
- spire/xls/ICombinedRange.py +87 -0
- spire/xls/IComboBoxShape.py +95 -0
- spire/xls/IComboBoxes.py +50 -0
- spire/xls/IComment.py +85 -0
- spire/xls/ICommentShape.py +12 -0
- spire/xls/IComments.py +50 -0
- spire/xls/IConditionValue.py +68 -0
- spire/xls/IConditionalFormat.py +606 -0
- spire/xls/IConditionalFormats.py +48 -0
- spire/xls/IConditionalFormatsCollection.py +134 -0
- spire/xls/ICustomDocumentProperties.py +128 -0
- spire/xls/IDataBar.py +105 -0
- spire/xls/IDataSort.py +95 -0
- spire/xls/IDataValidation.py +421 -0
- spire/xls/IDataValidationCollection.py +132 -0
- spire/xls/IDataValidationTable.py +68 -0
- spire/xls/IDigitalSignature.py +99 -0
- spire/xls/IDigitalSignatures.py +29 -0
- spire/xls/IDocumentProperty.py +226 -0
- spire/xls/IErrorIndicator.py +31 -0
- spire/xls/IExcelApplication.py +22 -0
- spire/xls/IExtendIndex.py +21 -0
- spire/xls/IExtendedFormat.py +530 -0
- spire/xls/IFont.py +271 -0
- spire/xls/IFormat3D.py +252 -0
- spire/xls/IGeomPath.py +23 -0
- spire/xls/IGeomPathInfo.py +112 -0
- spire/xls/IGeomPathShape.py +30 -0
- spire/xls/IGlow.py +85 -0
- spire/xls/IGradient.py +174 -0
- spire/xls/IGroupBox.py +67 -0
- spire/xls/IGroupBoxes.py +50 -0
- spire/xls/IHPageBreak.py +22 -0
- spire/xls/IHPageBreaks.py +31 -0
- spire/xls/IHyperLink.py +118 -0
- spire/xls/IHyperLinks.py +48 -0
- spire/xls/IIconSet.py +96 -0
- spire/xls/IInterior.py +117 -0
- spire/xls/IInternalAddtionalFormat.py +238 -0
- spire/xls/IInternalFont.py +31 -0
- spire/xls/IInternalWorksheet.py +132 -0
- spire/xls/ILabelShape.py +49 -0
- spire/xls/ILabelShapes.py +50 -0
- spire/xls/ILineShape.py +305 -0
- spire/xls/ILines.py +50 -0
- spire/xls/IListBox.py +86 -0
- spire/xls/IListBoxes.py +50 -0
- spire/xls/IListObject.py +493 -0
- spire/xls/IListObjectColumn.py +222 -0
- spire/xls/IListObjects.py +31 -0
- spire/xls/IMarkersDesigner.py +113 -0
- spire/xls/IMigrantRange.py +21 -0
- spire/xls/INameRanges.py +162 -0
- spire/xls/INamedObject.py +22 -0
- spire/xls/INamedRange.py +162 -0
- spire/xls/INumberFormat.py +77 -0
- spire/xls/IOleObject.py +176 -0
- spire/xls/IOleObjects.py +32 -0
- spire/xls/IOptimizedUpdate.py +28 -0
- spire/xls/IOvalShape.py +154 -0
- spire/xls/IOvalShapes.py +50 -0
- spire/xls/IPageSetup.py +195 -0
- spire/xls/IPageSetupBase.py +642 -0
- spire/xls/IPictureShape.py +99 -0
- spire/xls/IPictures.py +250 -0
- spire/xls/IPivotCache.py +41 -0
- spire/xls/IPivotCaches.py +39 -0
- spire/xls/IPivotCalculatedFields.py +50 -0
- spire/xls/IPivotDataField.py +68 -0
- spire/xls/IPivotDataFields.py +50 -0
- spire/xls/IPivotField.py +291 -0
- spire/xls/IPivotFields.py +41 -0
- spire/xls/IPivotTable.py +393 -0
- spire/xls/IPivotTableOptions.py +428 -0
- spire/xls/IPivotTables.py +68 -0
- spire/xls/IPropertyData.py +70 -0
- spire/xls/IPrstGeomShape.py +71 -0
- spire/xls/IPrstGeomShapes.py +81 -0
- spire/xls/IRadioButton.py +105 -0
- spire/xls/IRadioButtons.py +71 -0
- spire/xls/IRectangleShape.py +60 -0
- spire/xls/IRectangleShapes.py +50 -0
- spire/xls/IReflectionEffect.py +138 -0
- spire/xls/IRichTextString.py +93 -0
- spire/xls/IScrollBarShape.py +140 -0
- spire/xls/IScrollBarShapes.py +50 -0
- spire/xls/IShadow.py +244 -0
- spire/xls/IShape.py +409 -0
- spire/xls/IShapeFill.py +522 -0
- spire/xls/IShapeLineFormat.py +331 -0
- spire/xls/IShapes.py +270 -0
- spire/xls/ISortColumn.py +96 -0
- spire/xls/ISortColumns.py +70 -0
- spire/xls/ISortedRule.py +112 -0
- spire/xls/ISparkline.py +68 -0
- spire/xls/ISparklineGroup.py +428 -0
- spire/xls/ISparklines.py +72 -0
- spire/xls/ISpinnerShape.py +102 -0
- spire/xls/ISpinnerShapes.py +50 -0
- spire/xls/IStyle.py +50 -0
- spire/xls/IStyles.py +69 -0
- spire/xls/ITabSheet.py +302 -0
- spire/xls/ITabSheets.py +57 -0
- spire/xls/ITextBox.py +116 -0
- spire/xls/ITextBoxLinkShape.py +40 -0
- spire/xls/ITextBoxShape.py +22 -0
- spire/xls/ITextBoxes.py +61 -0
- spire/xls/ITextFrame.py +120 -0
- spire/xls/IVPageBreak.py +22 -0
- spire/xls/IVPageBreaks.py +31 -0
- spire/xls/IWorkbook.py +1806 -0
- spire/xls/IWorksheet.py +2694 -0
- spire/xls/IWorksheetGroup.py +48 -0
- spire/xls/IWorksheets.py +159 -0
- spire/xls/IXLSRange.py +2479 -0
- spire/xls/IXLSRanges.py +35 -0
- spire/xls/IconSet.py +103 -0
- spire/xls/IconSetType.py +35 -0
- spire/xls/IgnoreErrorType.py +24 -0
- spire/xls/ImageFormatType.py +18 -0
- spire/xls/ImageLocationTypes.py +15 -0
- spire/xls/ImageType.py +17 -0
- spire/xls/ImportObjectOptions.py +89 -0
- spire/xls/InsertMoveOption.py +15 -0
- spire/xls/InsertOptionsType.py +16 -0
- spire/xls/InteriorArrayWrapper.py +126 -0
- spire/xls/LOGFONT.py +140 -0
- spire/xls/LabelShapeCollection.py +71 -0
- spire/xls/LegendPositionType.py +21 -0
- spire/xls/LegendSpacingType.py +18 -0
- spire/xls/LineCollection.py +85 -0
- spire/xls/LineShapeType.py +17 -0
- spire/xls/LineStyleType.py +29 -0
- spire/xls/ListBoxCollection.py +71 -0
- spire/xls/ListObjectCollection.py +45 -0
- spire/xls/MarkerDesigner.py +172 -0
- spire/xls/MeasureUnits.py +21 -0
- spire/xls/MsoPathInfo.py +38 -0
- spire/xls/MsoPathType.py +21 -0
- spire/xls/MultipleFilterCollection.py +166 -0
- spire/xls/NegativeBarFormat.py +82 -0
- spire/xls/OColor.py +165 -0
- spire/xls/OLEDBCommandType.py +19 -0
- spire/xls/OdsPageBackground.py +129 -0
- spire/xls/OdsPageBackgroundImagePositionType.py +22 -0
- spire/xls/OdsPageBackgroundImageType.py +16 -0
- spire/xls/OdsPageBackgroundType.py +16 -0
- spire/xls/OleLinkType.py +15 -0
- spire/xls/OleObjectType.py +51 -0
- spire/xls/OrderBy.py +19 -0
- spire/xls/OrderType.py +17 -0
- spire/xls/OvalShapeCollection.py +70 -0
- spire/xls/PageBreakExtentType.py +17 -0
- spire/xls/PageBreakType.py +18 -0
- spire/xls/PageColRow.py +48 -0
- spire/xls/PageOrientationType.py +17 -0
- spire/xls/PageSetup.py +14 -0
- spire/xls/PagesOrderType.py +17 -0
- spire/xls/PaperSizeEntry.py +30 -0
- spire/xls/PaperSizeType.py +135 -0
- spire/xls/PathFillMode.py +19 -0
- spire/xls/PdfConformanceLevel.py +20 -0
- spire/xls/PicStretch.py +104 -0
- spire/xls/PicTile.py +72 -0
- spire/xls/PicturesCollection.py +532 -0
- spire/xls/PivotAutoFomatTypes.py +35 -0
- spire/xls/PivotBuiltInStyles.py +97 -0
- spire/xls/PivotCache.py +12 -0
- spire/xls/PivotCachesCollection.py +12 -0
- spire/xls/PivotCalculatedFieldsCollection.py +38 -0
- spire/xls/PivotConditionalFormat.py +54 -0
- spire/xls/PivotConditionalFormatCollection.py +38 -0
- spire/xls/PivotDataField.py +118 -0
- spire/xls/PivotDataFields.py +104 -0
- spire/xls/PivotDataType.py +21 -0
- spire/xls/PivotField.py +12 -0
- spire/xls/PivotFieldFormatType.py +28 -0
- spire/xls/PivotFieldSortType.py +16 -0
- spire/xls/PivotGroupByTypes.py +23 -0
- spire/xls/PivotItem.py +161 -0
- spire/xls/PivotItemType.py +28 -0
- spire/xls/PivotLabelFilterType.py +27 -0
- spire/xls/PivotPageAreaFieldsOrderType.py +15 -0
- spire/xls/PivotReportFilter.py +92 -0
- spire/xls/PivotReportFilters.py +63 -0
- spire/xls/PivotStyle.py +79 -0
- spire/xls/PivotTable.py +12 -0
- spire/xls/PivotTableElement.py +38 -0
- spire/xls/PivotTableFields.py +85 -0
- spire/xls/PivotTableLayoutType.py +16 -0
- spire/xls/PivotTableStyle.py +63 -0
- spire/xls/PivotTablesCollection.py +12 -0
- spire/xls/PivotValueFilterType.py +21 -0
- spire/xls/PresetTextEffect.py +43 -0
- spire/xls/PrintCommentType.py +18 -0
- spire/xls/PrintErrorsType.py +19 -0
- spire/xls/PrintingPageType.py +16 -0
- spire/xls/PropertyType.py +31 -0
- spire/xls/PrstGeomShapeCollection.py +126 -0
- spire/xls/PrstGeomShapeType.py +201 -0
- spire/xls/QueryTableCollection.py +25 -0
- spire/xls/QueryTableXls.py +42 -0
- spire/xls/RTFCommentArray.py +112 -0
- spire/xls/RTFStringArray.py +112 -0
- spire/xls/RadioButtonCollection.py +137 -0
- spire/xls/RangeRichTextString.py +42 -0
- spire/xls/RangesCollection.py +537 -0
- spire/xls/ReadingOrderType.py +18 -0
- spire/xls/RectangleCollection.py +71 -0
- spire/xls/RectangleShapeType.py +22 -0
- spire/xls/RectangleStyleType.py +17 -0
- spire/xls/ReferRangeArea.py +88 -0
- spire/xls/RelationShip.py +15 -0
- spire/xls/RenameStrategy.py +16 -0
- spire/xls/ResizeBehaveType.py +18 -0
- spire/xls/RichText.py +49 -0
- spire/xls/RichTextObject.py +133 -0
- spire/xls/RichTextShape.py +168 -0
- spire/xls/RichTextString.py +126 -0
- spire/xls/RtfTags.py +30 -0
- spire/xls/RtfTextWriter.py +629 -0
- spire/xls/SaveShapeTypeOption.py +310 -0
- spire/xls/ScrollBarCollection.py +71 -0
- spire/xls/SelectionType.py +16 -0
- spire/xls/ShapeArrowLengthType.py +18 -0
- spire/xls/ShapeArrowStyleType.py +21 -0
- spire/xls/ShapeArrowWidthType.py +18 -0
- spire/xls/ShapeCollectionBase.py +87 -0
- spire/xls/ShapeDashLineStyleType.py +23 -0
- spire/xls/ShapeFillType.py +22 -0
- spire/xls/ShapeGeomPath.py +26 -0
- spire/xls/ShapeGlow.py +91 -0
- spire/xls/ShapeLayerChangeType.py +19 -0
- spire/xls/ShapeLineStyleType.py +20 -0
- spire/xls/ShapeReflection.py +131 -0
- spire/xls/ShapeSegmentPath.py +26 -0
- spire/xls/SheetProtectionType.py +33 -0
- spire/xls/SortColumn.py +120 -0
- spire/xls/SortColumns.py +185 -0
- spire/xls/SortComparsionType.py +19 -0
- spire/xls/SortOrientationType.py +17 -0
- spire/xls/SortedWayType.py +18 -0
- spire/xls/Sparkline.py +70 -0
- spire/xls/SparklineCollection.py +112 -0
- spire/xls/SparklineEmptyCells.py +16 -0
- spire/xls/SparklineGroup.py +523 -0
- spire/xls/SparklineGroupCollection.py +71 -0
- spire/xls/SparklineType.py +18 -0
- spire/xls/SpartlineVerticalAxisType.py +16 -0
- spire/xls/SpinnerShapeCollection.py +70 -0
- spire/xls/SplitType.py +19 -0
- spire/xls/StrikeThroughStyle.py +17 -0
- spire/xls/StringUtil.py +12 -0
- spire/xls/StyleArrayWrapper.py +621 -0
- spire/xls/StyleDefineType.py +15 -0
- spire/xls/StylesCollection.py +141 -0
- spire/xls/SubtotalTypes.py +26 -0
- spire/xls/TRangeValueType.py +19 -0
- spire/xls/TableBuiltInStyles.py +75 -0
- spire/xls/TextBoxCollection.py +70 -0
- spire/xls/TextBoxShapeBase.py +140 -0
- spire/xls/TextDirection.py +20 -0
- spire/xls/TextDirectionType.py +16 -0
- spire/xls/TextRotationType.py +19 -0
- spire/xls/TextSaveOptions.py +85 -0
- spire/xls/TextVerticalValue.py +19 -0
- spire/xls/ThemeColorType.py +27 -0
- spire/xls/TickLabelPositionType.py +19 -0
- spire/xls/TickMarkType.py +19 -0
- spire/xls/TimePeriodType.py +23 -0
- spire/xls/Top10Filter.py +75 -0
- spire/xls/TopBottom.py +44 -0
- spire/xls/TopBottomType.py +19 -0
- spire/xls/TopFormatType.py +18 -0
- spire/xls/TrendLineType.py +21 -0
- spire/xls/UnderlineStyle.py +32 -0
- spire/xls/UnknownVariableAction.py +18 -0
- spire/xls/UtilityMethods.py +55 -0
- spire/xls/VPageBreak.py +34 -0
- spire/xls/VPageBreaksCollection.py +96 -0
- spire/xls/Validation.py +33 -0
- spire/xls/ValidationComparisonOperator.py +23 -0
- spire/xls/VariableTypeAction.py +19 -0
- spire/xls/VerticalAlignType.py +20 -0
- spire/xls/ViewMode.py +18 -0
- spire/xls/WebQueryConnection.py +224 -0
- spire/xls/Workbook.py +3152 -0
- spire/xls/WorkbookObjectsCollection.py +25 -0
- spire/xls/Worksheet.py +1319 -0
- spire/xls/WorksheetChartsCollection.py +83 -0
- spire/xls/WorksheetConditionalFormats.py +12 -0
- spire/xls/WorksheetCopyType.py +31 -0
- spire/xls/WorksheetVisibility.py +18 -0
- spire/xls/WorksheetsCollection.py +341 -0
- spire/xls/WriteProtection.py +64 -0
- spire/xls/XLSXBorderJoinType.py +19 -0
- spire/xls/XLSXChartBevelType.py +26 -0
- spire/xls/XLSXChartLightingType.py +40 -0
- spire/xls/XLSXChartMaterialType.py +32 -0
- spire/xls/XLSXChartPrespectiveType.py +21 -0
- spire/xls/XLSXChartShadowInnerType.py +25 -0
- spire/xls/XLSXChartShadowOuterType.py +25 -0
- spire/xls/XLSXPivotItemType.py +28 -0
- spire/xls/XlsAddInFunction.py +78 -0
- spire/xls/XlsAddInFunctionsCollection.py +101 -0
- spire/xls/XlsArcShape.py +331 -0
- spire/xls/XlsAutoFiltersCollection.py +119 -0
- spire/xls/XlsBitmapShape.py +297 -0
- spire/xls/XlsBorder.py +172 -0
- spire/xls/XlsBorderArrayWrapper.py +116 -0
- spire/xls/XlsBordersCollection.py +101 -0
- spire/xls/XlsBuiltInDocumentProperties.py +639 -0
- spire/xls/XlsButtonShape.py +137 -0
- spire/xls/XlsChart.py +1510 -0
- spire/xls/XlsChartAxis.py +564 -0
- spire/xls/XlsChartBorder.py +165 -0
- spire/xls/XlsChartCategoryAxis.py +656 -0
- spire/xls/XlsChartDataLabelArea.py +387 -0
- spire/xls/XlsChartDataLabels.py +811 -0
- spire/xls/XlsChartDataPoint.py +108 -0
- spire/xls/XlsChartDataPointsCollection.py +120 -0
- spire/xls/XlsChartDataTable.py +393 -0
- spire/xls/XlsChartDropBar.py +301 -0
- spire/xls/XlsChartFill.py +571 -0
- spire/xls/XlsChartFormat.py +1069 -0
- spire/xls/XlsChartFormatCollection.py +162 -0
- spire/xls/XlsChartFrameFormat.py +614 -0
- spire/xls/XlsChartGridLine.py +171 -0
- spire/xls/XlsChartInterior.py +240 -0
- spire/xls/XlsChartLegend.py +355 -0
- spire/xls/XlsChartLegendArea.py +419 -0
- spire/xls/XlsChartLegendEntry.py +156 -0
- spire/xls/XlsChartPageSetup.py +56 -0
- spire/xls/XlsChartPlotArea.py +12 -0
- spire/xls/XlsChartSerie.py +589 -0
- spire/xls/XlsChartSerieDataFormat.py +1008 -0
- spire/xls/XlsChartSeries.py +111 -0
- spire/xls/XlsChartSeriesAxis.py +212 -0
- spire/xls/XlsChartShape.py +1142 -0
- spire/xls/XlsChartTitleArea.py +392 -0
- spire/xls/XlsChartValueAxis.py +317 -0
- spire/xls/XlsChartWallOrFloor.py +319 -0
- spire/xls/XlsChartsCollection.py +89 -0
- spire/xls/XlsCheckBoxShape.py +156 -0
- spire/xls/XlsComboBoxShape.py +128 -0
- spire/xls/XlsComment.py +234 -0
- spire/xls/XlsCommentsCollection.py +87 -0
- spire/xls/XlsConditionValue.py +111 -0
- spire/xls/XlsConditionalFormat.py +1119 -0
- spire/xls/XlsConditionalFormats.py +590 -0
- spire/xls/XlsDataValidationCollection.py +159 -0
- spire/xls/XlsDataValidationTable.py +105 -0
- spire/xls/XlsDocumentProperty.py +370 -0
- spire/xls/XlsEventArgs.py +93 -0
- spire/xls/XlsEventHandler.py +52 -0
- spire/xls/XlsFill.py +139 -0
- spire/xls/XlsFont.py +364 -0
- spire/xls/XlsFontStyle.py +12 -0
- spire/xls/XlsFontsCollection.py +51 -0
- spire/xls/XlsGradient.py +185 -0
- spire/xls/XlsGradientStop.py +85 -0
- spire/xls/XlsGroupBoxShape.py +88 -0
- spire/xls/XlsHPageBreak.py +105 -0
- spire/xls/XlsHPageBreaksCollection.py +85 -0
- spire/xls/XlsHeaderFooterShapeCollection.py +57 -0
- spire/xls/XlsHyperLink.py +229 -0
- spire/xls/XlsHyperLinksCollection.py +102 -0
- spire/xls/XlsLabelShape.py +73 -0
- spire/xls/XlsLineShape.py +367 -0
- spire/xls/XlsListBoxShape.py +124 -0
- spire/xls/XlsName.py +1871 -0
- spire/xls/XlsObject.py +36 -0
- spire/xls/XlsOvalShape.py +176 -0
- spire/xls/XlsPageSetup.py +220 -0
- spire/xls/XlsPageSetupBase.py +1354 -0
- spire/xls/XlsPicturesCollection.py +365 -0
- spire/xls/XlsPivotCache.py +401 -0
- spire/xls/XlsPivotCacheField.py +209 -0
- spire/xls/XlsPivotCachesCollection.py +124 -0
- spire/xls/XlsPivotField.py +885 -0
- spire/xls/XlsPivotTable.py +905 -0
- spire/xls/XlsPivotTablesCollection.py +131 -0
- spire/xls/XlsPrstGeomShape.py +97 -0
- spire/xls/XlsRadioButtonShape.py +188 -0
- spire/xls/XlsRange.py +3193 -0
- spire/xls/XlsRangesCollection.py +1566 -0
- spire/xls/XlsRectangleShape.py +174 -0
- spire/xls/XlsScrollBarShape.py +146 -0
- spire/xls/XlsShape.py +967 -0
- spire/xls/XlsShapeFill.py +627 -0
- spire/xls/XlsShapeLineFormat.py +341 -0
- spire/xls/XlsSpinnerShape.py +116 -0
- spire/xls/XlsStyle.py +106 -0
- spire/xls/XlsStylesCollection.py +73 -0
- spire/xls/XlsTextBoxShape.py +480 -0
- spire/xls/XlsVPageBreak.py +98 -0
- spire/xls/XlsVPageBreaksCollection.py +84 -0
- spire/xls/XlsValidation.py +520 -0
- spire/xls/XlsValidationWrapper.py +397 -0
- spire/xls/XlsWorkbook.py +1947 -0
- spire/xls/XlsWorkbookObjectsCollection.py +94 -0
- spire/xls/XlsWorksheet.py +4352 -0
- spire/xls/XlsWorksheetBase.py +1273 -0
- spire/xls/XlsWorksheetChartsCollection.py +25 -0
- spire/xls/XlsWorksheetConditionalFormats.py +215 -0
- spire/xls/XlsWorksheetsCollection.py +416 -0
- spire/xls/XmlOpenType.py +14 -0
- spire/xls/__init__.py +723 -0
- spire/xls/common/Boolean.py +192 -0
- spire/xls/common/Byte.py +256 -0
- spire/xls/common/Char.py +740 -0
- spire/xls/common/Color.py +2187 -0
- spire/xls/common/Common.py +150 -0
- spire/xls/common/CultureInfo.py +565 -0
- spire/xls/common/DateTime.py +1147 -0
- spire/xls/common/Double.py +438 -0
- spire/xls/common/EmfType.py +23 -0
- spire/xls/common/Encoding.py +928 -0
- spire/xls/common/FontStyle.py +25 -0
- spire/xls/common/GraphicsUnit.py +27 -0
- spire/xls/common/ICollection.py +70 -0
- spire/xls/common/IDictionary.py +122 -0
- spire/xls/common/IEnumerable.py +41 -0
- spire/xls/common/IEnumerator.py +60 -0
- spire/xls/common/IList.py +145 -0
- spire/xls/common/Int16.py +272 -0
- spire/xls/common/Int32.py +280 -0
- spire/xls/common/Int64.py +256 -0
- spire/xls/common/License.py +175 -0
- spire/xls/common/PixelFormat.py +43 -0
- spire/xls/common/Point.py +298 -0
- spire/xls/common/PointF.py +274 -0
- spire/xls/common/Rectangle.py +449 -0
- spire/xls/common/RectangleF.py +436 -0
- spire/xls/common/Regex.py +962 -0
- spire/xls/common/RegexOptions.py +29 -0
- spire/xls/common/Single.py +416 -0
- spire/xls/common/Size.py +271 -0
- spire/xls/common/SizeF.py +259 -0
- spire/xls/common/SpireObject.py +79 -0
- spire/xls/common/Stream.py +550 -0
- spire/xls/common/String.py +1878 -0
- spire/xls/common/TimeSpan.py +872 -0
- spire/xls/common/UInt16.py +272 -0
- spire/xls/common/UInt32.py +272 -0
- spire/xls/common/UInt64.py +272 -0
- spire/xls/common/__init__.py +316 -0
- spire/xls/lib/Spire.Xls.Base.dylib +0 -0
- spire/xls/lib/__init__.py +0 -0
- spire/xls/lib/libSkiaSharp.dylib +0 -0
- spire_xls-15.5.0.dist-info/METADATA +197 -0
- spire_xls-15.5.0.dist-info/RECORD +703 -0
- spire_xls-15.5.0.dist-info/WHEEL +5 -0
- spire_xls-15.5.0.dist-info/top_level.txt +1 -0
spire/xls/CellRange.py
ADDED
|
@@ -0,0 +1,915 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from plum import dispatch
|
|
3
|
+
from typing import TypeVar,Union,Generic,List,Tuple
|
|
4
|
+
from spire.xls.common import *
|
|
5
|
+
from spire.xls import *
|
|
6
|
+
from ctypes import *
|
|
7
|
+
import abc
|
|
8
|
+
|
|
9
|
+
class CellRange ( XlsRange) :
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def Activate(self)->'CellRange':
|
|
15
|
+
"""
|
|
16
|
+
<summary>
|
|
17
|
+
Active single cell in the worksheet
|
|
18
|
+
</summary>
|
|
19
|
+
<returns></returns>
|
|
20
|
+
"""
|
|
21
|
+
GetDllLibXls().CellRange_Activate.argtypes=[c_void_p]
|
|
22
|
+
GetDllLibXls().CellRange_Activate.restype=c_void_p
|
|
23
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_Activate, self.Ptr)
|
|
24
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
25
|
+
return ret
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@dispatch
|
|
29
|
+
|
|
30
|
+
def AddComment(self ,comment:ExcelComment):
|
|
31
|
+
"""
|
|
32
|
+
<summary>
|
|
33
|
+
Adds a comment to the range.
|
|
34
|
+
</summary>
|
|
35
|
+
<param name="comment">Comment to add</param>
|
|
36
|
+
"""
|
|
37
|
+
intPtrcomment:c_void_p = comment.Ptr
|
|
38
|
+
|
|
39
|
+
GetDllLibXls().CellRange_AddComment.argtypes=[c_void_p ,c_void_p]
|
|
40
|
+
CallCFunction(GetDllLibXls().CellRange_AddComment, self.Ptr, intPtrcomment)
|
|
41
|
+
|
|
42
|
+
@dispatch
|
|
43
|
+
|
|
44
|
+
def AddComment(self)->ExcelComment:
|
|
45
|
+
"""
|
|
46
|
+
<summary>
|
|
47
|
+
Adds a comment to the range.
|
|
48
|
+
<example>The following code illustrates how to insert Comments in the Range:
|
|
49
|
+
<code>
|
|
50
|
+
//Create worksheet
|
|
51
|
+
Workbook workbook = new Workbook();
|
|
52
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
53
|
+
//Adding comments to a cell
|
|
54
|
+
ICommentShape comment = worksheet.Range["A1"].AddComment();
|
|
55
|
+
comment.Text= "Comments";
|
|
56
|
+
//Save to file
|
|
57
|
+
workbook.SaveToFile("AddComment.xlsx");
|
|
58
|
+
</code>
|
|
59
|
+
</example>
|
|
60
|
+
</summary>
|
|
61
|
+
<returns>Created comment or exists one.</returns>
|
|
62
|
+
"""
|
|
63
|
+
GetDllLibXls().CellRange_AddComment1.argtypes=[c_void_p]
|
|
64
|
+
GetDllLibXls().CellRange_AddComment1.restype=c_void_p
|
|
65
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_AddComment1, self.Ptr)
|
|
66
|
+
ret = None if intPtr==None else ExcelComment(intPtr)
|
|
67
|
+
return ret
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
#
|
|
71
|
+
# def Clone(self ,parent:'SpireObject',rangeNames:'Dictionary2',book:'Workbook')->'CellRange':
|
|
72
|
+
# """
|
|
73
|
+
# <summary>
|
|
74
|
+
# Clones current IXLSRange.
|
|
75
|
+
# </summary>
|
|
76
|
+
# <param name="parent">Parent object.</param>
|
|
77
|
+
# <param name="rangeNames">new names.</param>
|
|
78
|
+
# <param name="book">Parent workbook.</param>
|
|
79
|
+
# <returns>Cloned instance.</returns>
|
|
80
|
+
# """
|
|
81
|
+
# intPtrparent:c_void_p = parent.Ptr
|
|
82
|
+
# intPtrrangeNames:c_void_p = rangeNames.Ptr
|
|
83
|
+
# intPtrbook:c_void_p = book.Ptr
|
|
84
|
+
#
|
|
85
|
+
# GetDllLibXls().CellRange_Clone.argtypes=[c_void_p ,c_void_p,c_void_p,c_void_p]
|
|
86
|
+
# GetDllLibXls().CellRange_Clone.restype=c_void_p
|
|
87
|
+
# intPtr = CallCFunction(GetDllLibXls().CellRange_Clone, self.Ptr, intPtrparent,intPtrrangeNames,intPtrbook)
|
|
88
|
+
# ret = None if intPtr==None else CellRange(intPtr)
|
|
89
|
+
# return ret
|
|
90
|
+
#
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
@dispatch
|
|
94
|
+
|
|
95
|
+
def Move(self ,destRange:'CellRange'):
|
|
96
|
+
"""
|
|
97
|
+
<summary>
|
|
98
|
+
Moves the cells to the specified Range.
|
|
99
|
+
</summary>
|
|
100
|
+
<param name="destination">Destnation Range.</param>
|
|
101
|
+
"""
|
|
102
|
+
intPtrdestRange:c_void_p = destRange.Ptr
|
|
103
|
+
|
|
104
|
+
GetDllLibXls().CellRange_Move.argtypes=[c_void_p ,c_void_p]
|
|
105
|
+
CallCFunction(GetDllLibXls().CellRange_Move, self.Ptr, intPtrdestRange)
|
|
106
|
+
|
|
107
|
+
@dispatch
|
|
108
|
+
|
|
109
|
+
def Move(self ,destRange:'CellRange',copyStyle:bool,updateReference:bool):
|
|
110
|
+
"""
|
|
111
|
+
<summary>
|
|
112
|
+
Moves the cells to the specified Range.
|
|
113
|
+
</summary>
|
|
114
|
+
<param name="destination">Destination Range.</param>
|
|
115
|
+
<param name="updateReference">Indicates whether to update reference range.</param>
|
|
116
|
+
"""
|
|
117
|
+
intPtrdestRange:c_void_p = destRange.Ptr
|
|
118
|
+
|
|
119
|
+
GetDllLibXls().CellRange_MoveDCU.argtypes=[c_void_p ,c_void_p,c_bool,c_bool]
|
|
120
|
+
CallCFunction(GetDllLibXls().CellRange_MoveDCU, self.Ptr, intPtrdestRange,copyStyle,updateReference)
|
|
121
|
+
|
|
122
|
+
@dispatch
|
|
123
|
+
|
|
124
|
+
def Copy(self ,destRange:'CellRange')->'CellRange':
|
|
125
|
+
"""
|
|
126
|
+
<summary>
|
|
127
|
+
Copies the range to the specified range.
|
|
128
|
+
</summary>
|
|
129
|
+
<param name="destRange">Destination range</param>
|
|
130
|
+
<returns>Destination range</returns>
|
|
131
|
+
"""
|
|
132
|
+
intPtrdestRange:c_void_p = destRange.Ptr
|
|
133
|
+
|
|
134
|
+
GetDllLibXls().CellRange_Copy.argtypes=[c_void_p ,c_void_p]
|
|
135
|
+
GetDllLibXls().CellRange_Copy.restype=c_void_p
|
|
136
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_Copy, self.Ptr, intPtrdestRange)
|
|
137
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
138
|
+
return ret
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
@dispatch
|
|
142
|
+
|
|
143
|
+
def Copy(self ,destRange:'CellRange',updateReference:bool)->'CellRange':
|
|
144
|
+
"""
|
|
145
|
+
<summary>
|
|
146
|
+
Copies the range to the specified range.
|
|
147
|
+
</summary>
|
|
148
|
+
<param name="destination">Destination range.</param>
|
|
149
|
+
<param name="updateReference">Indicates whether to update reference cells.</param>
|
|
150
|
+
"""
|
|
151
|
+
intPtrdestRange:c_void_p = destRange.Ptr
|
|
152
|
+
|
|
153
|
+
GetDllLibXls().CellRange_CopyDU.argtypes=[c_void_p ,c_void_p,c_bool]
|
|
154
|
+
GetDllLibXls().CellRange_CopyDU.restype=c_void_p
|
|
155
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_CopyDU, self.Ptr, intPtrdestRange,updateReference)
|
|
156
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
157
|
+
return ret
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
@dispatch
|
|
161
|
+
|
|
162
|
+
def Copy(self ,destRange:'CellRange',updateReference:bool,copyStyles:bool)->'CellRange':
|
|
163
|
+
"""
|
|
164
|
+
<summary>
|
|
165
|
+
Copies the range to the specified range.
|
|
166
|
+
</summary>
|
|
167
|
+
<param name="destRange">Destination range.</param>
|
|
168
|
+
<param name="updateReference">Indicates whether to update reference cells.</param>
|
|
169
|
+
<param name="copyStyles">Indicates whether to copy styles.</param>
|
|
170
|
+
<returns>Destination range</returns>
|
|
171
|
+
"""
|
|
172
|
+
intPtrdestRange:c_void_p = destRange.Ptr
|
|
173
|
+
|
|
174
|
+
GetDllLibXls().CellRange_CopyDUC.argtypes=[c_void_p ,c_void_p,c_bool,c_bool]
|
|
175
|
+
GetDllLibXls().CellRange_CopyDUC.restype=c_void_p
|
|
176
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_CopyDUC, self.Ptr, intPtrdestRange,updateReference,copyStyles)
|
|
177
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
178
|
+
return ret
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
@dispatch
|
|
182
|
+
|
|
183
|
+
def Copy(self ,destRange:'CellRange',copyOptions:CopyRangeOptions)->'CellRange':
|
|
184
|
+
"""
|
|
185
|
+
<summary>
|
|
186
|
+
Copies the range to the specified range.
|
|
187
|
+
</summary>
|
|
188
|
+
<param name="destRange">Destination range.</param>
|
|
189
|
+
<param name="copyOptions">Copy options.</param>
|
|
190
|
+
"""
|
|
191
|
+
intPtrdestRange:c_void_p = destRange.Ptr
|
|
192
|
+
enumcopyOptions:c_int = copyOptions.value
|
|
193
|
+
|
|
194
|
+
GetDllLibXls().CellRange_CopyDC.argtypes=[c_void_p ,c_void_p,c_int]
|
|
195
|
+
GetDllLibXls().CellRange_CopyDC.restype=c_void_p
|
|
196
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_CopyDC, self.Ptr, intPtrdestRange,enumcopyOptions)
|
|
197
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
198
|
+
return ret
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
def FindAllNumber(self ,doubleValue:float,formulaValue:bool)->'ListCellRanges':
|
|
202
|
+
"""
|
|
203
|
+
<summary>
|
|
204
|
+
Finds the cell with the input double.
|
|
205
|
+
</summary>
|
|
206
|
+
<param name="doubleValue">Double value to search for</param>
|
|
207
|
+
<param name="formulaValue">Indicates whether to find formula value</param>
|
|
208
|
+
<returns>Found ranges</returns>
|
|
209
|
+
"""
|
|
210
|
+
|
|
211
|
+
GetDllLibXls().CellRange_FindAllNumber.argtypes=[c_void_p ,c_double,c_bool]
|
|
212
|
+
GetDllLibXls().CellRange_FindAllNumber.restype=c_void_p
|
|
213
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_FindAllNumber, self.Ptr, doubleValue,formulaValue)
|
|
214
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
215
|
+
return ret
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
def FindAllString(self ,stringValue:str,formula:bool,formulaValue:bool)->'ListCellRanges':
|
|
220
|
+
"""
|
|
221
|
+
<summary>
|
|
222
|
+
Finds the cell with the input string.
|
|
223
|
+
</summary>
|
|
224
|
+
<param name="stringValue">String value to search for</param>
|
|
225
|
+
<param name="formula">Indicates whether include formula</param>
|
|
226
|
+
<param name="formulaValue">Indicates whether include formula value</param>
|
|
227
|
+
<returns>Found ranges</returns>
|
|
228
|
+
"""
|
|
229
|
+
|
|
230
|
+
GetDllLibXls().CellRange_FindAllString.argtypes=[c_void_p ,c_void_p,c_bool,c_bool]
|
|
231
|
+
GetDllLibXls().CellRange_FindAllString.restype=c_void_p
|
|
232
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_FindAllString, self.Ptr, stringValue,formula,formulaValue)
|
|
233
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
234
|
+
return ret
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
def FindAllDateTime(self ,dateTimeValue:'DateTime')->'ListCellRanges':
|
|
239
|
+
"""
|
|
240
|
+
<summary>
|
|
241
|
+
Finds the cell with the input datetime.
|
|
242
|
+
</summary>
|
|
243
|
+
<param name="dateTimeValue">DateTime value to search for</param>
|
|
244
|
+
<returns>Found ranges</returns>
|
|
245
|
+
"""
|
|
246
|
+
intPtrdateTimeValue:c_void_p = dateTimeValue.Ptr
|
|
247
|
+
|
|
248
|
+
GetDllLibXls().CellRange_FindAllDateTime.argtypes=[c_void_p ,c_void_p]
|
|
249
|
+
GetDllLibXls().CellRange_FindAllDateTime.restype=c_void_p
|
|
250
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_FindAllDateTime, self.Ptr, intPtrdateTimeValue)
|
|
251
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
252
|
+
return ret
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
def FindAllTimeSpan(self ,timeSpanValue:'TimeSpan')->'ListCellRanges':
|
|
257
|
+
"""
|
|
258
|
+
<summary>
|
|
259
|
+
Finds the cell with input timespan
|
|
260
|
+
</summary>
|
|
261
|
+
<param name="timeSpanValue">time span value to search for</param>
|
|
262
|
+
<returns>Found ranges</returns>
|
|
263
|
+
"""
|
|
264
|
+
intPtrtimeSpanValue:c_void_p = timeSpanValue.Ptr
|
|
265
|
+
|
|
266
|
+
GetDllLibXls().CellRange_FindAllTimeSpan.argtypes=[c_void_p ,c_void_p]
|
|
267
|
+
GetDllLibXls().CellRange_FindAllTimeSpan.restype=c_void_p
|
|
268
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_FindAllTimeSpan, self.Ptr, intPtrtimeSpanValue)
|
|
269
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
270
|
+
return ret
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
def FindAllBool(self ,boolValue:bool)->'ListCellRanges':
|
|
275
|
+
"""
|
|
276
|
+
<summary>
|
|
277
|
+
Finds the cell with the input bool.
|
|
278
|
+
</summary>
|
|
279
|
+
<param name="boolValue">Bool value to search for</param>
|
|
280
|
+
<returns>Found ranges</returns>
|
|
281
|
+
"""
|
|
282
|
+
|
|
283
|
+
GetDllLibXls().CellRange_FindAllBool.argtypes=[c_void_p ,c_bool]
|
|
284
|
+
GetDllLibXls().CellRange_FindAllBool.restype=c_void_p
|
|
285
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_FindAllBool, self.Ptr, boolValue)
|
|
286
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
287
|
+
return ret
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
def FindBool(self ,boolValue:bool)->'CellRange':
|
|
292
|
+
"""
|
|
293
|
+
<summary>
|
|
294
|
+
Finds the cell with the input bool.
|
|
295
|
+
</summary>
|
|
296
|
+
<param name="boolValue">Bool value to search for</param>
|
|
297
|
+
<returns>Found range</returns>
|
|
298
|
+
"""
|
|
299
|
+
|
|
300
|
+
GetDllLibXls().CellRange_FindBool.argtypes=[c_void_p ,c_bool]
|
|
301
|
+
GetDllLibXls().CellRange_FindBool.restype=c_void_p
|
|
302
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_FindBool, self.Ptr, boolValue)
|
|
303
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
304
|
+
return ret
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
def FindNumber(self ,doubleValue:float,formulaValue:bool)->'CellRange':
|
|
309
|
+
"""
|
|
310
|
+
<summary>
|
|
311
|
+
Finds the cell with the input double.
|
|
312
|
+
</summary>
|
|
313
|
+
<param name="doubleValue">Double value to search for</param>
|
|
314
|
+
<param name="formulaValue">Indicates whether includes formula value to search for</param>
|
|
315
|
+
<returns>Found range</returns>
|
|
316
|
+
"""
|
|
317
|
+
|
|
318
|
+
GetDllLibXls().CellRange_FindNumber.argtypes=[c_void_p ,c_double,c_bool]
|
|
319
|
+
GetDllLibXls().CellRange_FindNumber.restype=c_void_p
|
|
320
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_FindNumber, self.Ptr, doubleValue,formulaValue)
|
|
321
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
322
|
+
return ret
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
def FindString(self ,stringValue:str,formula:bool,formulaValue:bool)->'CellRange':
|
|
327
|
+
"""
|
|
328
|
+
<summary>
|
|
329
|
+
Finds the cell with the input string.
|
|
330
|
+
</summary>
|
|
331
|
+
<param name="stringValue">String value to search for</param>
|
|
332
|
+
<param name="formula">Indicates whether includes formula to search for</param>
|
|
333
|
+
<param name="formulaValue">Indicates whether includes formula value to search for</param>
|
|
334
|
+
<returns>Found range</returns>
|
|
335
|
+
"""
|
|
336
|
+
|
|
337
|
+
GetDllLibXls().CellRange_FindString.argtypes=[c_void_p ,c_void_p,c_bool,c_bool]
|
|
338
|
+
GetDllLibXls().CellRange_FindString.restype=c_void_p
|
|
339
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_FindString, self.Ptr, stringValue,formula,formulaValue)
|
|
340
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
341
|
+
return ret
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
def FindDateTime(self ,dateTimeValue:'DateTime')->'CellRange':
|
|
346
|
+
"""
|
|
347
|
+
<summary>
|
|
348
|
+
Finds the cell with the input datetime.
|
|
349
|
+
</summary>
|
|
350
|
+
<param name="dateTimeValue">Datetime value to search for</param>
|
|
351
|
+
<returns>Found range</returns>
|
|
352
|
+
"""
|
|
353
|
+
intPtrdateTimeValue:c_void_p = dateTimeValue.Ptr
|
|
354
|
+
|
|
355
|
+
GetDllLibXls().CellRange_FindDateTime.argtypes=[c_void_p ,c_void_p]
|
|
356
|
+
GetDllLibXls().CellRange_FindDateTime.restype=c_void_p
|
|
357
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_FindDateTime, self.Ptr, intPtrdateTimeValue)
|
|
358
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
359
|
+
return ret
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
def FindTimeSpan(self ,timeSpanValue:'TimeSpan')->'CellRange':
|
|
364
|
+
"""
|
|
365
|
+
<summary>
|
|
366
|
+
Finds the cell with the input time span.
|
|
367
|
+
</summary>
|
|
368
|
+
<param name="timeSpanValue">Time span value to search for.</param>
|
|
369
|
+
<returns>Found range.</returns>
|
|
370
|
+
"""
|
|
371
|
+
intPtrtimeSpanValue:c_void_p = timeSpanValue.Ptr
|
|
372
|
+
|
|
373
|
+
GetDllLibXls().CellRange_FindTimeSpan.argtypes=[c_void_p ,c_void_p]
|
|
374
|
+
GetDllLibXls().CellRange_FindTimeSpan.restype=c_void_p
|
|
375
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_FindTimeSpan, self.Ptr, intPtrtimeSpanValue)
|
|
376
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
377
|
+
return ret
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
def FindAll(self ,findValue:str,flags:'FindType',findOptions:'ExcelFindOptions')->'ListCellRanges':
|
|
381
|
+
"""
|
|
382
|
+
<summary>
|
|
383
|
+
Finds the all cells with specified string value.
|
|
384
|
+
</summary>
|
|
385
|
+
<param name="findValue">Value to search.</param>
|
|
386
|
+
<param name="flags">Type of value to search.</param>
|
|
387
|
+
<param name="findOptions">Way to search.</param>
|
|
388
|
+
<returns>All found cells, or Null if value was not found.</returns>
|
|
389
|
+
"""
|
|
390
|
+
enumflags:c_int = flags.value
|
|
391
|
+
enumfindOptions:c_int = findOptions.value
|
|
392
|
+
|
|
393
|
+
GetDllLibXls().CellRange_FindAll.argtypes=[c_void_p ,c_void_p,c_int,c_int]
|
|
394
|
+
GetDllLibXls().CellRange_FindAll.restype=c_void_p
|
|
395
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_FindAll, self.Ptr, findValue,enumflags,enumfindOptions)
|
|
396
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
397
|
+
return ret
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
def Intersect(self ,range:'CellRange')->'CellRange':
|
|
401
|
+
"""
|
|
402
|
+
<summary>
|
|
403
|
+
Get intersection range with the specified range.
|
|
404
|
+
</summary>
|
|
405
|
+
<param name="range">Range which to intersect.</param>
|
|
406
|
+
<returns>Range intersection.</returns>
|
|
407
|
+
"""
|
|
408
|
+
intPtrrange:c_void_p = range.Ptr
|
|
409
|
+
|
|
410
|
+
GetDllLibXls().CellRange_Intersect.argtypes=[c_void_p ,c_void_p]
|
|
411
|
+
GetDllLibXls().CellRange_Intersect.restype=c_void_p
|
|
412
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_Intersect, self.Ptr, intPtrrange)
|
|
413
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
414
|
+
return ret
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
@dispatch
|
|
419
|
+
def Merge(self ,range:'CellRange')->'CellRange':
|
|
420
|
+
"""
|
|
421
|
+
<summary>
|
|
422
|
+
Creates a merged cell from the specified Range object.
|
|
423
|
+
<example>The following code illustrates how to check whether two ranges are mergable or not:
|
|
424
|
+
<code>
|
|
425
|
+
//Create worksheet
|
|
426
|
+
Workbook workbook = new Workbook();
|
|
427
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
428
|
+
//Merge range
|
|
429
|
+
worksheet["A2:B2"].Merge();
|
|
430
|
+
//Get mergable range
|
|
431
|
+
IXLSRange mergableRange = worksheet["A2"].MergeArea.Merge(worksheet["C2"]);
|
|
432
|
+
//Check mergable Area
|
|
433
|
+
Console.Write(mergableRange.RangeAddressLocal);
|
|
434
|
+
//Save to file
|
|
435
|
+
workbook.SaveToFile("Intersect.xlsx");
|
|
436
|
+
</code>
|
|
437
|
+
</example>
|
|
438
|
+
</summary>
|
|
439
|
+
<param name="range">The Range to merge with.</param>
|
|
440
|
+
<returns>Merged ranges.</returns>
|
|
441
|
+
"""
|
|
442
|
+
intPtrrange:c_void_p = range.Ptr
|
|
443
|
+
|
|
444
|
+
GetDllLibXls().CellRange_Merge.argtypes=[c_void_p ,c_void_p]
|
|
445
|
+
GetDllLibXls().CellRange_Merge.restype=c_void_p
|
|
446
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_Merge, self.Ptr, intPtrrange)
|
|
447
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
448
|
+
return ret
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
def SetDataValidation(self ,dataValidation:'Validation'):
|
|
453
|
+
"""
|
|
454
|
+
<summary>
|
|
455
|
+
Sets data validation for the range.
|
|
456
|
+
</summary>
|
|
457
|
+
<param name="dv">Data validation to set.</param>
|
|
458
|
+
"""
|
|
459
|
+
intPtrdataValidation:c_void_p = dataValidation.Ptr
|
|
460
|
+
|
|
461
|
+
GetDllLibXls().CellRange_SetDataValidation.argtypes=[c_void_p ,c_void_p]
|
|
462
|
+
CallCFunction(GetDllLibXls().CellRange_SetDataValidation, self.Ptr, intPtrdataValidation)
|
|
463
|
+
|
|
464
|
+
@property
|
|
465
|
+
|
|
466
|
+
def Borders(self)->'BordersCollection':
|
|
467
|
+
"""
|
|
468
|
+
<summary>
|
|
469
|
+
Returns a Borders collection that represents the borders of a style or a range of cells (including a range defined as part of a conditional format).
|
|
470
|
+
<example>The following code illustrates how to access Borders property of the Range:
|
|
471
|
+
<code>
|
|
472
|
+
//Create worksheet
|
|
473
|
+
Workbook workbook = new Workbook();
|
|
474
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
475
|
+
//Set text
|
|
476
|
+
worksheet["C2"].Text = "Sample";
|
|
477
|
+
//Set borders
|
|
478
|
+
IBorders borders = worksheet["C2"].Borders;
|
|
479
|
+
//Set line style
|
|
480
|
+
borders[BordersLineType.EdgeTop].LineStyle = LineStyleType.Thin;
|
|
481
|
+
borders[BordersLineType.EdgeBottom].LineStyle = LineStyleType.Thin;
|
|
482
|
+
//Set border color
|
|
483
|
+
borders[BordersLineType.EdgeTop].Color = Color.Red;
|
|
484
|
+
borders[BordersLineType.EdgeBottom].Color = Color.Red;
|
|
485
|
+
//Save to file
|
|
486
|
+
workbook.SaveToFile("CellFormats.xlsx");
|
|
487
|
+
</code>
|
|
488
|
+
</example>
|
|
489
|
+
</summary>
|
|
490
|
+
"""
|
|
491
|
+
GetDllLibXls().CellRange_get_Borders.argtypes=[c_void_p]
|
|
492
|
+
GetDllLibXls().CellRange_get_Borders.restype=c_void_p
|
|
493
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_get_Borders, self.Ptr)
|
|
494
|
+
ret = None if intPtr==None else BordersCollection(intPtr)
|
|
495
|
+
return ret
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
@property
|
|
499
|
+
|
|
500
|
+
def Style(self)->'CellStyle':
|
|
501
|
+
"""
|
|
502
|
+
<summary>
|
|
503
|
+
Returns a Style object that represents the style of the specified range.
|
|
504
|
+
<example>The following code illustrates how to the style of the specified range:
|
|
505
|
+
<code>
|
|
506
|
+
//Create worksheet
|
|
507
|
+
Workbook workbook = new Workbook();
|
|
508
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
509
|
+
//Set text
|
|
510
|
+
worksheet["C2"].Text = "Sample";
|
|
511
|
+
//Add and set style
|
|
512
|
+
CellStyle style = workbook.Styles.Add("BorderStyle");
|
|
513
|
+
style.Color = Color.Red;
|
|
514
|
+
worksheet["C2"].Style = style;
|
|
515
|
+
//Save to file
|
|
516
|
+
workbook.SaveToFile("Style.xlsx");
|
|
517
|
+
</code>
|
|
518
|
+
</example>
|
|
519
|
+
</summary>
|
|
520
|
+
"""
|
|
521
|
+
GetDllLibXls().CellRange_get_Style.argtypes=[c_void_p]
|
|
522
|
+
GetDllLibXls().CellRange_get_Style.restype=c_void_p
|
|
523
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_get_Style, self.Ptr)
|
|
524
|
+
ret = None if intPtr==None else CellStyle(intPtr)
|
|
525
|
+
return ret
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
@Style.setter
|
|
529
|
+
def Style(self, value:'CellStyle'):
|
|
530
|
+
GetDllLibXls().CellRange_set_Style.argtypes=[c_void_p, c_void_p]
|
|
531
|
+
CallCFunction(GetDllLibXls().CellRange_set_Style, self.Ptr, value.Ptr)
|
|
532
|
+
|
|
533
|
+
# @property
|
|
534
|
+
#
|
|
535
|
+
# def Cells(self)->'ListCellRanges':
|
|
536
|
+
# """
|
|
537
|
+
# <summary>
|
|
538
|
+
# Returns a Range object that represents the cells in the specified range.
|
|
539
|
+
# </summary>
|
|
540
|
+
# """
|
|
541
|
+
# GetDllLibXls().CellRange_get_Cells.argtypes=[c_void_p]
|
|
542
|
+
# GetDllLibXls().CellRange_get_Cells.restype=c_void_p
|
|
543
|
+
# intPtr = CallCFunction(GetDllLibXls().CellRange_get_Cells, self.Ptr)
|
|
544
|
+
# ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
545
|
+
# return ret
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
# @property
|
|
549
|
+
#
|
|
550
|
+
# def CellList(self)->'List1':
|
|
551
|
+
# """
|
|
552
|
+
# <summary>
|
|
553
|
+
# Returns a Range object that represents the cells in the specified range.
|
|
554
|
+
# <example>The following code illustrates how to access CellList property of the Range:
|
|
555
|
+
# <code>
|
|
556
|
+
# //Create worksheet
|
|
557
|
+
# Workbook workbook = new Workbook();
|
|
558
|
+
# Worksheet worksheet = workbook.Worksheets[0];
|
|
559
|
+
# //Set text. The content contained by ![CDATA] will be expressed as plain text
|
|
560
|
+
# ListCellRange cells = worksheet["A1:E8"].CellList;
|
|
561
|
+
# //Do some manipulations
|
|
562
|
+
# foreach (CellRange Range in cells)
|
|
563
|
+
# Range.Text = Range.RangeAddressLocal;
|
|
564
|
+
# //Save to file
|
|
565
|
+
# workbook.SaveToFile("CellList.xlsx");
|
|
566
|
+
# </code>
|
|
567
|
+
# </example>
|
|
568
|
+
# </summary>
|
|
569
|
+
# """
|
|
570
|
+
# GetDllLibXls().CellRange_get_CellList.argtypes=[c_void_p]
|
|
571
|
+
# GetDllLibXls().CellRange_get_CellList.restype=c_void_p
|
|
572
|
+
# intPtr = CallCFunction(GetDllLibXls().CellRange_get_CellList, self.Ptr)
|
|
573
|
+
# ret = None if intPtr==None else List1(intPtr)
|
|
574
|
+
# return ret
|
|
575
|
+
#
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
# @property
|
|
579
|
+
#
|
|
580
|
+
# def Columns(self)->'ListCellRanges':
|
|
581
|
+
# """
|
|
582
|
+
# <summary>
|
|
583
|
+
# Returns a Range object that represents the columns in the specified range.
|
|
584
|
+
# <example>The following code illustrates how to access columns:
|
|
585
|
+
# <code>
|
|
586
|
+
# //Create worksheet
|
|
587
|
+
# Workbook workbook = new Workbook();
|
|
588
|
+
# Worksheet worksheet = workbook.Worksheets[0];
|
|
589
|
+
# //Set columns
|
|
590
|
+
# IXLSRange[] columns = worksheet["A1:E8"].Columns;
|
|
591
|
+
# //Do some manipulations
|
|
592
|
+
# foreach (IXLSRange column in columns)
|
|
593
|
+
# column.Text = column.RangeAddressLocal;
|
|
594
|
+
# //Save to file
|
|
595
|
+
# workbook.SaveToFile("Columns.xlsx");
|
|
596
|
+
# </code>
|
|
597
|
+
# </example>
|
|
598
|
+
# </summary>
|
|
599
|
+
# """
|
|
600
|
+
# GetDllLibXls().CellRange_get_Columns.argtypes=[c_void_p]
|
|
601
|
+
# GetDllLibXls().CellRange_get_Columns.restype=c_void_p
|
|
602
|
+
# intPtr = CallCFunction(GetDllLibXls().CellRange_get_Columns, self.Ptr)
|
|
603
|
+
# ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
604
|
+
# return ret
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
# @property
|
|
608
|
+
#
|
|
609
|
+
# def Rows(self)->'ListCellRanges':
|
|
610
|
+
# """
|
|
611
|
+
# <summary>
|
|
612
|
+
# Returns the number of the first row of the first area in the range.
|
|
613
|
+
# <example>The following code illustrates how to access rows:
|
|
614
|
+
# <code>
|
|
615
|
+
# //Create worksheet
|
|
616
|
+
# Workbook workbook = new Workbook();
|
|
617
|
+
# Worksheet worksheet = workbook.Worksheets[0];
|
|
618
|
+
# //Set rows
|
|
619
|
+
# IXLSRange[] rows = worksheet["A1:E8"].Rows;
|
|
620
|
+
# //Do some manipulations
|
|
621
|
+
# foreach (IXLSRange row in rows)
|
|
622
|
+
# row.Text = row.RangeAddressLocal;
|
|
623
|
+
# //Save to file
|
|
624
|
+
# workbook.SaveToFile("Rows.xlsx");
|
|
625
|
+
# </code>
|
|
626
|
+
# </example>
|
|
627
|
+
# </summary>
|
|
628
|
+
# """
|
|
629
|
+
# GetDllLibXls().CellRange_get_Rows.argtypes=[c_void_p]
|
|
630
|
+
# GetDllLibXls().CellRange_get_Rows.restype=c_void_p
|
|
631
|
+
# intPtr = CallCFunction(GetDllLibXls().CellRange_get_Rows, self.Ptr)
|
|
632
|
+
# ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
633
|
+
# return ret
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
@dispatch
|
|
637
|
+
|
|
638
|
+
def get_Item(self ,row:int,column:int)->'CellRange':
|
|
639
|
+
"""
|
|
640
|
+
<summary>
|
|
641
|
+
Gets cell range. Row and column indexes are one-based.
|
|
642
|
+
</summary>
|
|
643
|
+
<param name="row"></param>
|
|
644
|
+
<param name="column"></param>
|
|
645
|
+
<returns></returns>
|
|
646
|
+
"""
|
|
647
|
+
|
|
648
|
+
GetDllLibXls().CellRange_get_Item.argtypes=[c_void_p ,c_int,c_int]
|
|
649
|
+
GetDllLibXls().CellRange_get_Item.restype=c_void_p
|
|
650
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_get_Item, self.Ptr, row,column)
|
|
651
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
652
|
+
return ret
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
def set_Item(self ,row:int,column:int,value:'CellRange'):
|
|
657
|
+
"""
|
|
658
|
+
|
|
659
|
+
"""
|
|
660
|
+
intPtrvalue:c_void_p = value.Ptr
|
|
661
|
+
|
|
662
|
+
GetDllLibXls().CellRange_set_Item.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
663
|
+
CallCFunction(GetDllLibXls().CellRange_set_Item, self.Ptr, row,column,intPtrvalue)
|
|
664
|
+
|
|
665
|
+
@dispatch
|
|
666
|
+
|
|
667
|
+
def get_Item(self ,row:int,column:int,lastRow:int,lastColumn:int)->'CellRange':
|
|
668
|
+
"""
|
|
669
|
+
<summary>
|
|
670
|
+
Gets cell range. Row and column indexes are one-based.
|
|
671
|
+
</summary>
|
|
672
|
+
<param name="row"></param>
|
|
673
|
+
<param name="column"></param>
|
|
674
|
+
<param name="lastRow"></param>
|
|
675
|
+
<param name="lastColumn"></param>
|
|
676
|
+
<returns></returns>
|
|
677
|
+
"""
|
|
678
|
+
|
|
679
|
+
GetDllLibXls().CellRange_get_ItemRCLL.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
|
|
680
|
+
GetDllLibXls().CellRange_get_ItemRCLL.restype=c_void_p
|
|
681
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_get_ItemRCLL, self.Ptr, row,column,lastRow,lastColumn)
|
|
682
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
683
|
+
return ret
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
@dispatch
|
|
687
|
+
|
|
688
|
+
def get_Item(self ,name:str)->'CellRange':
|
|
689
|
+
"""
|
|
690
|
+
<summary>
|
|
691
|
+
Gets cell range.
|
|
692
|
+
</summary>
|
|
693
|
+
<param name="name"></param>
|
|
694
|
+
<returns></returns>
|
|
695
|
+
"""
|
|
696
|
+
|
|
697
|
+
GetDllLibXls().CellRange_get_ItemN.argtypes=[c_void_p ,c_wchar_p]
|
|
698
|
+
GetDllLibXls().CellRange_get_ItemN.restype=c_void_p
|
|
699
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_get_ItemN, self.Ptr, name)
|
|
700
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
701
|
+
return ret
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
@dispatch
|
|
705
|
+
|
|
706
|
+
def get_Item(self ,name:str,IsR1C1Notation:bool)->'CellRange':
|
|
707
|
+
"""
|
|
708
|
+
<summary>
|
|
709
|
+
Gets cell range
|
|
710
|
+
</summary>
|
|
711
|
+
<param name="name"></param>
|
|
712
|
+
<param name="IsR1C1Notation"></param>
|
|
713
|
+
<returns></returns>
|
|
714
|
+
"""
|
|
715
|
+
|
|
716
|
+
GetDllLibXls().CellRange_get_ItemNI.argtypes=[c_void_p ,c_void_p,c_bool]
|
|
717
|
+
GetDllLibXls().CellRange_get_ItemNI.restype=c_void_p
|
|
718
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_get_ItemNI, self.Ptr, name,IsR1C1Notation)
|
|
719
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
720
|
+
return ret
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
@property
|
|
724
|
+
|
|
725
|
+
def Comment(self)->'ExcelComment':
|
|
726
|
+
"""
|
|
727
|
+
<summary>
|
|
728
|
+
Returns a Comment object that represents the comment associated with the cell in the upper-left corner of the range.
|
|
729
|
+
<example>The following code illustrates how to access Comments property of the Range:
|
|
730
|
+
<code>
|
|
731
|
+
//Create worksheet
|
|
732
|
+
Workbook workbook = new Workbook();
|
|
733
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
734
|
+
//Adding comments to a cell
|
|
735
|
+
worksheet.Range["A1"].AddComment().Text = "Comments";
|
|
736
|
+
//Add Rich Text Comments
|
|
737
|
+
CellRange range = worksheet.Range["A6"];
|
|
738
|
+
range.AddComment().RichText.Text = "RichText";
|
|
739
|
+
IRichTextString rtf = range.Comment.RichText;
|
|
740
|
+
//Formatting first 4 characters
|
|
741
|
+
IFont redFont = workbook.CreateFont();
|
|
742
|
+
redFont.IsBold = true;
|
|
743
|
+
redFont.Color = Color.Red;
|
|
744
|
+
rtf.SetFont(0, 3, redFont);
|
|
745
|
+
//Save to file
|
|
746
|
+
workbook.SaveToFile("DataValidation.xlsx");
|
|
747
|
+
</code>
|
|
748
|
+
</example>
|
|
749
|
+
</summary>
|
|
750
|
+
"""
|
|
751
|
+
GetDllLibXls().CellRange_get_Comment.argtypes=[c_void_p]
|
|
752
|
+
GetDllLibXls().CellRange_get_Comment.restype=c_void_p
|
|
753
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_get_Comment, self.Ptr)
|
|
754
|
+
ret = None if intPtr==None else ExcelComment(intPtr)
|
|
755
|
+
return ret
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
@property
|
|
759
|
+
|
|
760
|
+
def Worksheet(self)->'Worksheet':
|
|
761
|
+
"""
|
|
762
|
+
<summary>
|
|
763
|
+
Returns a worksheet object that represents the worksheet
|
|
764
|
+
containing the specified range.
|
|
765
|
+
</summary>
|
|
766
|
+
"""
|
|
767
|
+
GetDllLibXls().CellRange_get_Worksheet.argtypes=[c_void_p]
|
|
768
|
+
GetDllLibXls().CellRange_get_Worksheet.restype=c_void_p
|
|
769
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_get_Worksheet, self.Ptr)
|
|
770
|
+
ret = None if intPtr==None else Worksheet(intPtr)
|
|
771
|
+
return ret
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
@property
|
|
775
|
+
|
|
776
|
+
def RichText(self)->'RichText':
|
|
777
|
+
"""
|
|
778
|
+
<summary>
|
|
779
|
+
Returns a RichTextString object that represents the rich text style.
|
|
780
|
+
<example>The following code illustrates how to set rich text formatting in the range:
|
|
781
|
+
<code>
|
|
782
|
+
//Create worksheet
|
|
783
|
+
Workbook workbook = new Workbook();
|
|
784
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
785
|
+
//Create style
|
|
786
|
+
IStyle style = workbook.Styles.Add("CustomStyle");
|
|
787
|
+
//Set rich text
|
|
788
|
+
IRichTextString richText = worksheet["C2"].RichText;
|
|
789
|
+
richText.Text = "Sample text";
|
|
790
|
+
//Set rich text font
|
|
791
|
+
IFont font = style.Font;
|
|
792
|
+
font.IsBold = true;
|
|
793
|
+
richText.SetFont(0, 5, font);
|
|
794
|
+
//Save to file
|
|
795
|
+
workbook.SaveToFile("RichText.xlsx");
|
|
796
|
+
</code>
|
|
797
|
+
</example>
|
|
798
|
+
</summary>
|
|
799
|
+
"""
|
|
800
|
+
GetDllLibXls().CellRange_get_RichText.argtypes=[c_void_p]
|
|
801
|
+
GetDllLibXls().CellRange_get_RichText.restype=c_void_p
|
|
802
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_get_RichText, self.Ptr)
|
|
803
|
+
ret = None if intPtr==None else RichText(intPtr)
|
|
804
|
+
return ret
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
@property
|
|
808
|
+
|
|
809
|
+
def EntireColumn(self)->'CellRange':
|
|
810
|
+
"""
|
|
811
|
+
<summary>
|
|
812
|
+
Returns a Range object that represents the entire column (or
|
|
813
|
+
columns) that contains the specified range.
|
|
814
|
+
</summary>
|
|
815
|
+
"""
|
|
816
|
+
GetDllLibXls().CellRange_get_EntireColumn.argtypes=[c_void_p]
|
|
817
|
+
GetDllLibXls().CellRange_get_EntireColumn.restype=c_void_p
|
|
818
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_get_EntireColumn, self.Ptr)
|
|
819
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
820
|
+
return ret
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
@property
|
|
824
|
+
|
|
825
|
+
def EndCell(self)->'CellRange':
|
|
826
|
+
"""
|
|
827
|
+
<summary>
|
|
828
|
+
Returns a Range object that represents the cell at the end of the
|
|
829
|
+
region that contains the source range.
|
|
830
|
+
</summary>
|
|
831
|
+
"""
|
|
832
|
+
GetDllLibXls().CellRange_get_EndCell.argtypes=[c_void_p]
|
|
833
|
+
GetDllLibXls().CellRange_get_EndCell.restype=c_void_p
|
|
834
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_get_EndCell, self.Ptr)
|
|
835
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
836
|
+
return ret
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
@property
|
|
840
|
+
|
|
841
|
+
def MergeArea(self)->'CellRange':
|
|
842
|
+
"""
|
|
843
|
+
<summary>
|
|
844
|
+
Returns a Range object that represents the merged range containing the specified cell.
|
|
845
|
+
<example>The following code illustrates how to access MergeArea property:
|
|
846
|
+
<code>
|
|
847
|
+
//Create worksheet
|
|
848
|
+
Workbook workbook = new Workbook();
|
|
849
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
850
|
+
//Set text
|
|
851
|
+
worksheet["C2"].Text = "Sample text in cell";
|
|
852
|
+
//Set merge
|
|
853
|
+
worksheet["C2:D3"].Merge();
|
|
854
|
+
//Check merge area
|
|
855
|
+
Console.Write(worksheet["C2"].MergeArea.AddressLocal);
|
|
856
|
+
</code>
|
|
857
|
+
</example>
|
|
858
|
+
</summary>
|
|
859
|
+
"""
|
|
860
|
+
GetDllLibXls().CellRange_get_MergeArea.argtypes=[c_void_p]
|
|
861
|
+
GetDllLibXls().CellRange_get_MergeArea.restype=c_void_p
|
|
862
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_get_MergeArea, self.Ptr)
|
|
863
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
864
|
+
return ret
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
@property
|
|
868
|
+
|
|
869
|
+
def EntireRow(self)->'CellRange':
|
|
870
|
+
"""
|
|
871
|
+
<summary>
|
|
872
|
+
Returns a Range object that represents the entire row (or rows) that contains the specified range.
|
|
873
|
+
</summary>
|
|
874
|
+
"""
|
|
875
|
+
GetDllLibXls().CellRange_get_EntireRow.argtypes=[c_void_p]
|
|
876
|
+
GetDllLibXls().CellRange_get_EntireRow.restype=c_void_p
|
|
877
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_get_EntireRow, self.Ptr)
|
|
878
|
+
ret = None if intPtr==None else CellRange(intPtr)
|
|
879
|
+
return ret
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
def GetDependentRanges(self ,isAll:bool)->'ListCellRanges':
|
|
884
|
+
"""
|
|
885
|
+
|
|
886
|
+
"""
|
|
887
|
+
|
|
888
|
+
GetDllLibXls().CellRange_GetDependentRanges.argtypes=[c_void_p ,c_bool]
|
|
889
|
+
GetDllLibXls().CellRange_GetDependentRanges.restype=c_void_p
|
|
890
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_GetDependentRanges, self.Ptr, isAll)
|
|
891
|
+
ret = None if intPtr==None else ListCellRanges(intPtr)
|
|
892
|
+
return ret
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
def GetReferRanges(self)->'ListReferRangeAreas':
|
|
897
|
+
"""
|
|
898
|
+
|
|
899
|
+
"""
|
|
900
|
+
GetDllLibXls().CellRange_GetReferRanges.argtypes=[c_void_p]
|
|
901
|
+
GetDllLibXls().CellRange_GetReferRanges.restype=c_void_p
|
|
902
|
+
intPtr = CallCFunction(GetDllLibXls().CellRange_GetReferRanges, self.Ptr)
|
|
903
|
+
ret = None if intPtr==None else ListReferRangeAreas(intPtr)
|
|
904
|
+
return ret
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
class ListCellRanges (IList[CellRange]):
|
|
908
|
+
def GetEnumerator(self)->'IEnumerator':
|
|
909
|
+
"""
|
|
910
|
+
|
|
911
|
+
"""
|
|
912
|
+
ret = super(ListCellRanges, self).GetEnumerator()
|
|
913
|
+
ret._gtype = XlsRange
|
|
914
|
+
#ret = None if enumerator==None else EnumeratorXlsRange(enumerator.Ptr)
|
|
915
|
+
return ret
|