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/XlsRange.py
ADDED
|
@@ -0,0 +1,3193 @@
|
|
|
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 spire.xls.XlsBordersCollection import *
|
|
7
|
+
from spire.xls.XlsHyperLinksCollection import *
|
|
8
|
+
from ctypes import *
|
|
9
|
+
import abc
|
|
10
|
+
from spire.xls.Validation import Validation
|
|
11
|
+
|
|
12
|
+
class XlsRange ( XlsObject, ICombinedRange,IEnumerable[IXLSRange]) :
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
def GetNamedRange(self)->'INamedRange':
|
|
18
|
+
"""
|
|
19
|
+
<summary>
|
|
20
|
+
Get the named range object of current Range.
|
|
21
|
+
</summary>
|
|
22
|
+
"""
|
|
23
|
+
from spire.xls.XlsName import XlsName
|
|
24
|
+
GetDllLibXls().XlsRange_GetNamedRange.argtypes=[c_void_p]
|
|
25
|
+
GetDllLibXls().XlsRange_GetNamedRange.restype=c_void_p
|
|
26
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_GetNamedRange,self.Ptr)
|
|
27
|
+
ret = None if intPtr==None else XlsName(intPtr)
|
|
28
|
+
return ret
|
|
29
|
+
|
|
30
|
+
@dispatch
|
|
31
|
+
|
|
32
|
+
def InsertOrUpdateCellImage(self ,stream:Stream,scale:bool):
|
|
33
|
+
"""
|
|
34
|
+
<summary>
|
|
35
|
+
Adds CellImage from the specified file stream.
|
|
36
|
+
this method only support WPS
|
|
37
|
+
</summary>
|
|
38
|
+
<param name="stream">Represents image stream to set.</param>
|
|
39
|
+
<param name="scale">scale if true scale for cell else clip the image.</param>
|
|
40
|
+
"""
|
|
41
|
+
intPtrstream:c_void_p = stream.Ptr
|
|
42
|
+
|
|
43
|
+
GetDllLibXls().XlsRange_InsertOrUpdateCellImage.argtypes=[c_void_p ,c_void_p,c_bool]
|
|
44
|
+
CallCFunction(GetDllLibXls().XlsRange_InsertOrUpdateCellImage,self.Ptr, intPtrstream,scale)
|
|
45
|
+
|
|
46
|
+
@dispatch
|
|
47
|
+
|
|
48
|
+
def InsertOrUpdateCellImage(self ,fileName:str,scale:bool):
|
|
49
|
+
"""
|
|
50
|
+
<summary>
|
|
51
|
+
Adds CellImage from the specified file.
|
|
52
|
+
this method only support WPS
|
|
53
|
+
</summary>
|
|
54
|
+
<param name="fileName">Represents image path to set.</param>
|
|
55
|
+
<param name="scale">scale if true scale for cell else clip the image.</param>
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
GetDllLibXls().XlsRange_InsertOrUpdateCellImageFS.argtypes=[c_void_p ,c_wchar_p,c_bool]
|
|
59
|
+
CallCFunction(GetDllLibXls().XlsRange_InsertOrUpdateCellImageFS,self.Ptr, fileName,scale)
|
|
60
|
+
|
|
61
|
+
def RemoveCellImage(self):
|
|
62
|
+
"""
|
|
63
|
+
<summary>
|
|
64
|
+
Remove CellImage.
|
|
65
|
+
</summary>
|
|
66
|
+
"""
|
|
67
|
+
GetDllLibXls().XlsRange_RemoveCellImage.argtypes=[c_void_p]
|
|
68
|
+
CallCFunction(GetDllLibXls().XlsRange_RemoveCellImage,self.Ptr)
|
|
69
|
+
|
|
70
|
+
@dispatch
|
|
71
|
+
|
|
72
|
+
def Merge(self ,range:IXLSRange)->IXLSRange:
|
|
73
|
+
"""
|
|
74
|
+
<summary>
|
|
75
|
+
Creates a merged cell from the specified Range object.
|
|
76
|
+
</summary>
|
|
77
|
+
<param name="range">The Range to merge with.</param>
|
|
78
|
+
<returns>Merged ranges or null if wasn't able to merge ranges.</returns>
|
|
79
|
+
"""
|
|
80
|
+
intPtrrange:c_void_p = range.Ptr
|
|
81
|
+
|
|
82
|
+
GetDllLibXls().XlsRange_Merge.argtypes=[c_void_p ,c_void_p]
|
|
83
|
+
GetDllLibXls().XlsRange_Merge.restype=c_void_p
|
|
84
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_Merge, self.Ptr, intPtrrange)
|
|
85
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
86
|
+
return ret
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def Intersect(self ,range:'IXLSRange')->'IXLSRange':
|
|
91
|
+
"""
|
|
92
|
+
<summary>
|
|
93
|
+
Returns intersection of this range with the specified one.
|
|
94
|
+
<example>The following code illustrates how to perform intersectwith in the Range:
|
|
95
|
+
<code>
|
|
96
|
+
//Create worksheet
|
|
97
|
+
Workbook workbook = new Workbook();
|
|
98
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
99
|
+
//Get intersect range
|
|
100
|
+
IXLSRange range = worksheet.Range["A16:C16"];
|
|
101
|
+
IXLSRange commonRange = worksheet.Range["B16:D16"].Intersect(range);
|
|
102
|
+
//Save to file
|
|
103
|
+
workbook.SaveToFile("Intersect.xlsx");
|
|
104
|
+
</code>
|
|
105
|
+
</example>
|
|
106
|
+
</summary>
|
|
107
|
+
<param name="range">The Range with which to intersect.</param>
|
|
108
|
+
<returns>Range intersection. If there is no intersection, NULL is returned.</returns>
|
|
109
|
+
"""
|
|
110
|
+
intPtrrange:c_void_p = range.Ptr
|
|
111
|
+
|
|
112
|
+
GetDllLibXls().XlsRange_Intersect.argtypes=[c_void_p ,c_void_p]
|
|
113
|
+
GetDllLibXls().XlsRange_Intersect.restype=c_void_p
|
|
114
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_Intersect, self.Ptr, intPtrrange)
|
|
115
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
116
|
+
return ret
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def IsIntersect(self ,range:'IXLSRange')->bool:
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
"""
|
|
124
|
+
intPtrrange:c_void_p = range.Ptr
|
|
125
|
+
|
|
126
|
+
GetDllLibXls().XlsRange_IsIntersect.argtypes=[c_void_p ,c_void_p]
|
|
127
|
+
GetDllLibXls().XlsRange_IsIntersect.restype=c_bool
|
|
128
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_IsIntersect, self.Ptr, intPtrrange)
|
|
129
|
+
return ret
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
def MeasureString(self ,measureString:str)->'SizeF':
|
|
133
|
+
"""
|
|
134
|
+
<summary>
|
|
135
|
+
Measures size of the string.
|
|
136
|
+
</summary>
|
|
137
|
+
<param name="measureString">String to measure.</param>
|
|
138
|
+
<returns>Size of the string.</returns>
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
GetDllLibXls().XlsRange_MeasureString.argtypes=[c_void_p ,c_void_p]
|
|
142
|
+
GetDllLibXls().XlsRange_MeasureString.restype=c_void_p
|
|
143
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_MeasureString, self.Ptr, measureString)
|
|
144
|
+
ret = None if intPtr==None else SizeF(intPtr)
|
|
145
|
+
return ret
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
@dispatch
|
|
149
|
+
def Merge(self):
|
|
150
|
+
"""
|
|
151
|
+
<summary>
|
|
152
|
+
Creates a merged cell from the specified Range object.
|
|
153
|
+
<example>The following code illustrates how to merge the Range:
|
|
154
|
+
<code>
|
|
155
|
+
//Create worksheet
|
|
156
|
+
Workbook workbook = new Workbook();
|
|
157
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
158
|
+
//Set text
|
|
159
|
+
worksheet["A1"].Text = "Merged cell";
|
|
160
|
+
//Merge cells
|
|
161
|
+
worksheet["A1:B1"].Merge();
|
|
162
|
+
//Save to file
|
|
163
|
+
workbook.SaveToFile("Merge.xlsx");
|
|
164
|
+
</code>
|
|
165
|
+
</example>
|
|
166
|
+
</summary>
|
|
167
|
+
"""
|
|
168
|
+
GetDllLibXls().XlsRange_Merge1.argtypes=[c_void_p]
|
|
169
|
+
CallCFunction(GetDllLibXls().XlsRange_Merge1, self.Ptr)
|
|
170
|
+
|
|
171
|
+
def RemoveMergeComment(self):
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
"""
|
|
175
|
+
GetDllLibXls().XlsRange_RemoveMergeComment.argtypes=[c_void_p]
|
|
176
|
+
CallCFunction(GetDllLibXls().XlsRange_RemoveMergeComment, self.Ptr)
|
|
177
|
+
|
|
178
|
+
@dispatch
|
|
179
|
+
|
|
180
|
+
def Merge(self ,clearCells:bool):
|
|
181
|
+
"""
|
|
182
|
+
<summary>
|
|
183
|
+
Creates a merged cell from the specified Range object.
|
|
184
|
+
<example>The following code illustrates how to merge the Range with clear option:
|
|
185
|
+
<code>
|
|
186
|
+
//Create worksheet
|
|
187
|
+
Workbook workbook = new Workbook();
|
|
188
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
189
|
+
//Set text
|
|
190
|
+
worksheet["A1"].Text = "Merged cell";
|
|
191
|
+
worksheet["B1"].Text = "sample";
|
|
192
|
+
//Merge cells
|
|
193
|
+
worksheet["A1:B1"].Merge(true);
|
|
194
|
+
//Save to file
|
|
195
|
+
workbook.SaveToFile("Merge.xlsx");
|
|
196
|
+
</code>
|
|
197
|
+
</example>
|
|
198
|
+
</summary>
|
|
199
|
+
<param name="clearCells">Indicates whether to clear unnecessary cells.</param>
|
|
200
|
+
"""
|
|
201
|
+
|
|
202
|
+
GetDllLibXls().XlsRange_MergeC.argtypes=[c_void_p ,c_bool]
|
|
203
|
+
CallCFunction(GetDllLibXls().XlsRange_MergeC, self.Ptr, clearCells)
|
|
204
|
+
|
|
205
|
+
def PartialClear(self):
|
|
206
|
+
"""
|
|
207
|
+
<summary>
|
|
208
|
+
Partially clear range.
|
|
209
|
+
</summary>
|
|
210
|
+
"""
|
|
211
|
+
GetDllLibXls().XlsRange_PartialClear.argtypes=[c_void_p]
|
|
212
|
+
CallCFunction(GetDllLibXls().XlsRange_PartialClear, self.Ptr)
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
def TextPartReplace(self ,oldPartValue:str,newPartValue:str):
|
|
216
|
+
"""
|
|
217
|
+
<summary>
|
|
218
|
+
Replaces cell's part text and reserve text's format.
|
|
219
|
+
</summary>
|
|
220
|
+
<param name="oldPartValue">Part value of cell's text to search for.</param>
|
|
221
|
+
<param name="newPartValue">The replacement value.</param>
|
|
222
|
+
"""
|
|
223
|
+
|
|
224
|
+
GetDllLibXls().XlsRange_TextPartReplace.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
225
|
+
CallCFunction(GetDllLibXls().XlsRange_TextPartReplace, self.Ptr, oldPartValue,newPartValue)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
def RemoveCombinedRange(self ,cr:'XlsRange'):
|
|
229
|
+
"""
|
|
230
|
+
|
|
231
|
+
"""
|
|
232
|
+
intPtrcr:c_void_p = cr.Ptr
|
|
233
|
+
|
|
234
|
+
GetDllLibXls().XlsRange_RemoveCombinedRange.argtypes=[c_void_p ,c_void_p]
|
|
235
|
+
CallCFunction(GetDllLibXls().XlsRange_RemoveCombinedRange, self.Ptr, intPtrcr)
|
|
236
|
+
|
|
237
|
+
# @property
|
|
238
|
+
#
|
|
239
|
+
# def CombinedCells(self)->'List1':
|
|
240
|
+
# """
|
|
241
|
+
#
|
|
242
|
+
# """
|
|
243
|
+
# GetDllLibXls().XlsRange_get_CombinedCells.argtypes=[c_void_p]
|
|
244
|
+
# GetDllLibXls().XlsRange_get_CombinedCells.restype=c_void_p
|
|
245
|
+
# intPtr = CallCFunction(GetDllLibXls().XlsRange_get_CombinedCells, self.Ptr)
|
|
246
|
+
# ret = None if intPtr==None else List1(intPtr)
|
|
247
|
+
# return ret
|
|
248
|
+
#
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
@property
|
|
252
|
+
|
|
253
|
+
def CombinedAddress(self)->str:
|
|
254
|
+
"""
|
|
255
|
+
<summary>
|
|
256
|
+
Returns the combined range reference in the language.
|
|
257
|
+
Read-only String.
|
|
258
|
+
</summary>
|
|
259
|
+
"""
|
|
260
|
+
GetDllLibXls().XlsRange_get_CombinedAddress.argtypes=[c_void_p]
|
|
261
|
+
GetDllLibXls().XlsRange_get_CombinedAddress.restype=c_void_p
|
|
262
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_CombinedAddress, self.Ptr))
|
|
263
|
+
return ret
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
def UnMerge(self):
|
|
267
|
+
"""
|
|
268
|
+
<summary>
|
|
269
|
+
Separates a merged area into individual cells.
|
|
270
|
+
<example>The following code illustrates how to UnMerge the merged cells:
|
|
271
|
+
<code>
|
|
272
|
+
//Create worksheet
|
|
273
|
+
Workbook workbook = new Workbook();
|
|
274
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
275
|
+
//Set text
|
|
276
|
+
worksheet["A1"].Text = "Merged cell";
|
|
277
|
+
//Merge cells
|
|
278
|
+
worksheet["A1:B1"].Merge(true);
|
|
279
|
+
//Unmerge cells
|
|
280
|
+
worksheet["A1:B1"].UnMerge();
|
|
281
|
+
//Save to file
|
|
282
|
+
workbook.SaveToFile("UnMerge.xlsx");
|
|
283
|
+
</code>
|
|
284
|
+
</example>
|
|
285
|
+
</summary>
|
|
286
|
+
"""
|
|
287
|
+
GetDllLibXls().XlsRange_UnMerge.argtypes=[c_void_p]
|
|
288
|
+
CallCFunction(GetDllLibXls().XlsRange_UnMerge, self.Ptr)
|
|
289
|
+
|
|
290
|
+
def ReparseFormulaString(self):
|
|
291
|
+
"""
|
|
292
|
+
<summary>
|
|
293
|
+
Reparses formula.
|
|
294
|
+
</summary>
|
|
295
|
+
"""
|
|
296
|
+
GetDllLibXls().XlsRange_ReparseFormulaString.argtypes=[c_void_p]
|
|
297
|
+
CallCFunction(GetDllLibXls().XlsRange_ReparseFormulaString, self.Ptr)
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
def GetEnumerator(self)->'EnumeratorXlsRange':
|
|
301
|
+
"""
|
|
302
|
+
|
|
303
|
+
"""
|
|
304
|
+
GetDllLibXls().XlsRange_GetEnumerator.argtypes=[c_void_p]
|
|
305
|
+
GetDllLibXls().XlsRange_GetEnumerator.restype=c_void_p
|
|
306
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_GetEnumerator, self.Ptr)
|
|
307
|
+
ret = None if intPtr==None else EnumeratorXlsRange(intPtr)
|
|
308
|
+
return ret
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
@dispatch
|
|
313
|
+
|
|
314
|
+
def AddComment(self ,bIsParseOptions:bool)->ICommentShape:
|
|
315
|
+
"""
|
|
316
|
+
|
|
317
|
+
"""
|
|
318
|
+
|
|
319
|
+
GetDllLibXls().XlsRange_AddComment.argtypes=[c_void_p ,c_bool]
|
|
320
|
+
GetDllLibXls().XlsRange_AddComment.restype=c_void_p
|
|
321
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_AddComment, self.Ptr, bIsParseOptions)
|
|
322
|
+
ret = None if intPtr==None else XlsComment(intPtr)
|
|
323
|
+
return ret
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
@dispatch
|
|
327
|
+
|
|
328
|
+
def SetAutoFormat(self ,format:AutoFormatType):
|
|
329
|
+
"""
|
|
330
|
+
|
|
331
|
+
"""
|
|
332
|
+
enumformat:c_int = format.value
|
|
333
|
+
|
|
334
|
+
GetDllLibXls().XlsRange_SetAutoFormat.argtypes=[c_void_p ,c_int]
|
|
335
|
+
CallCFunction(GetDllLibXls().XlsRange_SetAutoFormat, self.Ptr, enumformat)
|
|
336
|
+
|
|
337
|
+
@dispatch
|
|
338
|
+
|
|
339
|
+
def SetAutoFormat(self ,format:AutoFormatType,options:AutoFormatOptions):
|
|
340
|
+
"""
|
|
341
|
+
|
|
342
|
+
"""
|
|
343
|
+
enumformat:c_int = format.value
|
|
344
|
+
enumoptions:c_int = options.value
|
|
345
|
+
|
|
346
|
+
GetDllLibXls().XlsRange_SetAutoFormatFO.argtypes=[c_void_p ,c_int,c_int]
|
|
347
|
+
CallCFunction(GetDllLibXls().XlsRange_SetAutoFormatFO, self.Ptr, enumformat,enumoptions)
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
def SetDataValidation(self ,dv:'XlsValidation'):
|
|
351
|
+
"""
|
|
352
|
+
|
|
353
|
+
"""
|
|
354
|
+
intPtrdv:c_void_p = dv.Ptr
|
|
355
|
+
|
|
356
|
+
GetDllLibXls().XlsRange_SetDataValidation.argtypes=[c_void_p ,c_void_p]
|
|
357
|
+
CallCFunction(GetDllLibXls().XlsRange_SetDataValidation, self.Ptr, intPtrdv)
|
|
358
|
+
|
|
359
|
+
@dispatch
|
|
360
|
+
|
|
361
|
+
def Replace(self ,oldValue:str,newValues:List[str],isVertical:bool):
|
|
362
|
+
"""
|
|
363
|
+
<summary>
|
|
364
|
+
Replaces cells' values with new data.
|
|
365
|
+
</summary>
|
|
366
|
+
<param name="oldValue">Value to search for.</param>
|
|
367
|
+
<param name="newValues">The replacement value.</param>
|
|
368
|
+
<param name="isVertical">Indicates whether to insert values vertically or horizontally.</param>
|
|
369
|
+
"""
|
|
370
|
+
#arraynewValues:ArrayTypenewValues = ""
|
|
371
|
+
countnewValues = len(newValues)
|
|
372
|
+
ArrayTypenewValues = c_wchar_p * countnewValues
|
|
373
|
+
arraynewValues = ArrayTypenewValues()
|
|
374
|
+
for i in range(0, countnewValues):
|
|
375
|
+
arraynewValues[i] = newValues[i]
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
GetDllLibXls().XlsRange_Replace.argtypes=[c_void_p ,c_void_p,ArrayTypenewValues,c_int,c_bool]
|
|
379
|
+
CallCFunction(GetDllLibXls().XlsRange_Replace, self.Ptr, oldValue,arraynewValues,countnewValues,isVertical)
|
|
380
|
+
|
|
381
|
+
@dispatch
|
|
382
|
+
|
|
383
|
+
def Replace(self ,oldValue:str,newValue:str):
|
|
384
|
+
"""
|
|
385
|
+
<summary>
|
|
386
|
+
Replaces cells' values with new data.
|
|
387
|
+
</summary>
|
|
388
|
+
<param name="oldValue">Value to search for.</param>
|
|
389
|
+
<param name="newValue">The replacement value.</param>
|
|
390
|
+
"""
|
|
391
|
+
|
|
392
|
+
GetDllLibXls().XlsRange_ReplaceON.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
393
|
+
CallCFunction(GetDllLibXls().XlsRange_ReplaceON, self.Ptr, oldValue,newValue)
|
|
394
|
+
|
|
395
|
+
@dispatch
|
|
396
|
+
|
|
397
|
+
def Replace(self ,oldValue:str,newValues:List[float],isVertical:bool):
|
|
398
|
+
"""
|
|
399
|
+
<summary>
|
|
400
|
+
Replaces cells' values with new data.
|
|
401
|
+
</summary>
|
|
402
|
+
<param name="oldValue">Value to search for.</param>
|
|
403
|
+
<param name="newValues">DataColumn to replace.</param>
|
|
404
|
+
<param name="isFieldNamesShown">Indicates whether to insert values vertically or horizontally.</param>
|
|
405
|
+
"""
|
|
406
|
+
#arraynewValues:ArrayTypenewValues = ""
|
|
407
|
+
countnewValues = len(newValues)
|
|
408
|
+
ArrayTypenewValues = c_double * countnewValues
|
|
409
|
+
arraynewValues = ArrayTypenewValues()
|
|
410
|
+
for i in range(0, countnewValues):
|
|
411
|
+
arraynewValues[i] = newValues[i]
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
GetDllLibXls().XlsRange_ReplaceONI.argtypes=[c_void_p ,c_void_p,ArrayTypenewValues,c_int,c_bool]
|
|
415
|
+
CallCFunction(GetDllLibXls().XlsRange_ReplaceONI, self.Ptr, oldValue,arraynewValues,countnewValues,isVertical)
|
|
416
|
+
|
|
417
|
+
@dispatch
|
|
418
|
+
|
|
419
|
+
def Replace(self ,oldValue:str,newValues:List[int],isVertical:bool):
|
|
420
|
+
"""
|
|
421
|
+
<summary>
|
|
422
|
+
Replaces cells' values with new data.
|
|
423
|
+
</summary>
|
|
424
|
+
<param name="oldValue">Value to search for.</param>
|
|
425
|
+
<param name="newValues">The replacement value.</param>
|
|
426
|
+
<param name="isVertical">Indicates whether to insert values vertically or horizontally.</param>
|
|
427
|
+
"""
|
|
428
|
+
#arraynewValues:ArrayTypenewValues = ""
|
|
429
|
+
countnewValues = len(newValues)
|
|
430
|
+
ArrayTypenewValues = c_int * countnewValues
|
|
431
|
+
arraynewValues = ArrayTypenewValues()
|
|
432
|
+
for i in range(0, countnewValues):
|
|
433
|
+
arraynewValues[i] = newValues[i]
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
GetDllLibXls().XlsRange_ReplaceONI1.argtypes=[c_void_p ,c_void_p,ArrayTypenewValues,c_int,c_bool]
|
|
437
|
+
CallCFunction(GetDllLibXls().XlsRange_ReplaceONI1, self.Ptr, oldValue,arraynewValues,countnewValues,isVertical)
|
|
438
|
+
|
|
439
|
+
# @dispatch
|
|
440
|
+
#
|
|
441
|
+
# def Replace(self ,oldValue:str,newValues:'DataTable',isFieldNamesShown:bool):
|
|
442
|
+
# """
|
|
443
|
+
# <summary>
|
|
444
|
+
# Replaces cells' values with new data.
|
|
445
|
+
# </summary>
|
|
446
|
+
# <param name="oldValue">Value to search for.</param>
|
|
447
|
+
# <param name="newValues">The replacement value.</param>
|
|
448
|
+
# <param name="isVertical">Indicates whether to insert values vertically or horizontally.</param>
|
|
449
|
+
# """
|
|
450
|
+
# intPtrnewValues:c_void_p = newValues.Ptr
|
|
451
|
+
#
|
|
452
|
+
# GetDllLibXls().XlsRange_ReplaceONI11.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool]
|
|
453
|
+
# CallCFunction(GetDllLibXls().XlsRange_ReplaceONI11, self.Ptr, oldValue,intPtrnewValues,isFieldNamesShown)
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
@dispatch
|
|
457
|
+
|
|
458
|
+
def Replace(self ,oldValue:str,newValue:DateTime):
|
|
459
|
+
"""
|
|
460
|
+
<summary>
|
|
461
|
+
Replaces cells' values with new data.
|
|
462
|
+
</summary>
|
|
463
|
+
<param name="oldValue">Value to search for.</param>
|
|
464
|
+
<param name="newValue">The replacement value.</param>
|
|
465
|
+
"""
|
|
466
|
+
intPtrnewValue:c_void_p = newValue.Ptr
|
|
467
|
+
|
|
468
|
+
GetDllLibXls().XlsRange_ReplaceON1.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
469
|
+
CallCFunction(GetDllLibXls().XlsRange_ReplaceON1, self.Ptr, oldValue,intPtrnewValue)
|
|
470
|
+
|
|
471
|
+
@dispatch
|
|
472
|
+
|
|
473
|
+
def Replace(self ,oldValue:str,newValue:float):
|
|
474
|
+
"""
|
|
475
|
+
<summary>
|
|
476
|
+
Replaces cells' values with new data.
|
|
477
|
+
</summary>
|
|
478
|
+
<param name="oldValue">Value to search for.</param>
|
|
479
|
+
<param name="newValue">The replacement value.</param>
|
|
480
|
+
"""
|
|
481
|
+
|
|
482
|
+
GetDllLibXls().XlsRange_ReplaceON11.argtypes=[c_void_p ,c_void_p,c_double]
|
|
483
|
+
CallCFunction(GetDllLibXls().XlsRange_ReplaceON11, self.Ptr, oldValue,newValue)
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
def Union(self ,range:'XlsRange')->'RangesCollection':
|
|
487
|
+
"""
|
|
488
|
+
|
|
489
|
+
"""
|
|
490
|
+
intPtrrange:c_void_p = range.Ptr
|
|
491
|
+
|
|
492
|
+
GetDllLibXls().XlsRange_Union.argtypes=[c_void_p ,c_void_p]
|
|
493
|
+
GetDllLibXls().XlsRange_Union.restype=c_void_p
|
|
494
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_Union, self.Ptr, intPtrrange)
|
|
495
|
+
ret = None if intPtr==None else RangesCollection(intPtr)
|
|
496
|
+
return ret
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
# @dispatch
|
|
500
|
+
#
|
|
501
|
+
# def Replace(self ,oldValue:str,newValues:'DataColumn',isFieldNamesShown:bool):
|
|
502
|
+
# """
|
|
503
|
+
# <summary>
|
|
504
|
+
# Replaces cells' values with new data.
|
|
505
|
+
# </summary>
|
|
506
|
+
# <param name="oldValue">Value to search for.</param>
|
|
507
|
+
# <param name="newValues">DataColumn to replace.</param>
|
|
508
|
+
# <param name="isFieldNamesShown">Indicates whether to insert values vertically or horizontally.</param>
|
|
509
|
+
# """
|
|
510
|
+
# intPtrnewValues:c_void_p = newValues.Ptr
|
|
511
|
+
#
|
|
512
|
+
# GetDllLibXls().XlsRange_ReplaceONI111.argtypes=[c_void_p ,c_void_p,c_void_p,c_bool]
|
|
513
|
+
# CallCFunction(GetDllLibXls().XlsRange_ReplaceONI111, self.Ptr, oldValue,intPtrnewValues,isFieldNamesShown)
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
#
|
|
517
|
+
# def ExportDataTable(self ,options:'ExportTableOptions')->'DataTable':
|
|
518
|
+
# """
|
|
519
|
+
#
|
|
520
|
+
# """
|
|
521
|
+
# intPtroptions:c_void_p = options.Ptr
|
|
522
|
+
#
|
|
523
|
+
# GetDllLibXls().XlsRange_ExportDataTable.argtypes=[c_void_p ,c_void_p]
|
|
524
|
+
# GetDllLibXls().XlsRange_ExportDataTable.restype=c_void_p
|
|
525
|
+
# intPtr = CallCFunction(GetDllLibXls().XlsRange_ExportDataTable, self.Ptr, intPtroptions)
|
|
526
|
+
# ret = None if intPtr==None else DataTable(intPtr)
|
|
527
|
+
# return ret
|
|
528
|
+
#
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
def AddCombinedRange(self ,cr:'XlsRange')->'XlsRange':
|
|
533
|
+
"""
|
|
534
|
+
|
|
535
|
+
"""
|
|
536
|
+
intPtrcr:c_void_p = cr.Ptr
|
|
537
|
+
|
|
538
|
+
GetDllLibXls().XlsRange_AddCombinedRange.argtypes=[c_void_p ,c_void_p]
|
|
539
|
+
GetDllLibXls().XlsRange_AddCombinedRange.restype=c_void_p
|
|
540
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_AddCombinedRange, self.Ptr, intPtrcr)
|
|
541
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
542
|
+
return ret
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
def UpdateRange(self ,startRow:int,startColumn:int,endRow:int,endColumn:int):
|
|
547
|
+
"""
|
|
548
|
+
<summary>
|
|
549
|
+
Update region of range
|
|
550
|
+
</summary>
|
|
551
|
+
<param name="startRow">first Row</param>
|
|
552
|
+
<param name="startColumn">first Column</param>
|
|
553
|
+
<param name="endRow">last Row</param>
|
|
554
|
+
<param name="endColumn">last Column</param>
|
|
555
|
+
"""
|
|
556
|
+
|
|
557
|
+
GetDllLibXls().XlsRange_UpdateRange.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
|
|
558
|
+
CallCFunction(GetDllLibXls().XlsRange_UpdateRange, self.Ptr, startRow,startColumn,endRow,endColumn)
|
|
559
|
+
|
|
560
|
+
def ConvertToNumber(self):
|
|
561
|
+
"""
|
|
562
|
+
<summary>
|
|
563
|
+
Convert number that stored as text to number
|
|
564
|
+
</summary>
|
|
565
|
+
"""
|
|
566
|
+
GetDllLibXls().XlsRange_ConvertToNumber.argtypes=[c_void_p]
|
|
567
|
+
CallCFunction(GetDllLibXls().XlsRange_ConvertToNumber, self.Ptr)
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
def SetSharedFormula(self ,sharedFormula:str,rowNumber:int,columnNumber:int):
|
|
571
|
+
"""
|
|
572
|
+
|
|
573
|
+
"""
|
|
574
|
+
|
|
575
|
+
GetDllLibXls().XlsRange_SetSharedFormula.argtypes=[c_void_p ,c_void_p,c_int,c_int]
|
|
576
|
+
CallCFunction(GetDllLibXls().XlsRange_SetSharedFormula, self.Ptr, sharedFormula,rowNumber,columnNumber)
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
def GetConditionFormatsStyle(self)->'CellStyle':
|
|
580
|
+
"""
|
|
581
|
+
<summary>
|
|
582
|
+
Get the calculated condition format style of current Range.
|
|
583
|
+
If style of every cell is not same, return null.
|
|
584
|
+
If current range without condition format, return null.
|
|
585
|
+
</summary>
|
|
586
|
+
"""
|
|
587
|
+
GetDllLibXls().XlsRange_GetConditionFormatsStyle.argtypes=[c_void_p]
|
|
588
|
+
GetDllLibXls().XlsRange_GetConditionFormatsStyle.restype=c_void_p
|
|
589
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_GetConditionFormatsStyle, self.Ptr)
|
|
590
|
+
ret = None if intPtr==None else CellStyle(intPtr)
|
|
591
|
+
return ret
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
@property
|
|
595
|
+
|
|
596
|
+
def RangeR1C1Address(self)->str:
|
|
597
|
+
"""
|
|
598
|
+
<summary>
|
|
599
|
+
Returns the range reference using R1C1 notation.
|
|
600
|
+
<example>The following code illustrates how to access AddressR1C1 property of the Range:
|
|
601
|
+
<code>
|
|
602
|
+
//Create worksheet
|
|
603
|
+
Workbook workbook = new Workbook();
|
|
604
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
605
|
+
//Get RangeR1C1Address
|
|
606
|
+
string address = worksheet.Range[3, 4].RangeR1C1Address;
|
|
607
|
+
</code>
|
|
608
|
+
</example>
|
|
609
|
+
</summary>
|
|
610
|
+
"""
|
|
611
|
+
GetDllLibXls().XlsRange_get_RangeR1C1Address.argtypes=[c_void_p]
|
|
612
|
+
GetDllLibXls().XlsRange_get_RangeR1C1Address.restype=c_void_p
|
|
613
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_RangeR1C1Address, self.Ptr))
|
|
614
|
+
return ret
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
@property
|
|
618
|
+
|
|
619
|
+
def RangeR1C1AddressLocal(self)->str:
|
|
620
|
+
"""
|
|
621
|
+
<summary>
|
|
622
|
+
Returns the range reference using R1C1 notation.
|
|
623
|
+
<example>The following code illustrates how to access AddressR1C1Local property of the Range:
|
|
624
|
+
<code>
|
|
625
|
+
//Create worksheet
|
|
626
|
+
Workbook workbook = new Workbook();
|
|
627
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
628
|
+
//Get RangeR1C1AddressLocal
|
|
629
|
+
string address = worksheet.Range[3, 4].RangeR1C1Address;
|
|
630
|
+
</code>
|
|
631
|
+
</example>
|
|
632
|
+
</summary>
|
|
633
|
+
"""
|
|
634
|
+
GetDllLibXls().XlsRange_get_RangeR1C1AddressLocal.argtypes=[c_void_p]
|
|
635
|
+
GetDllLibXls().XlsRange_get_RangeR1C1AddressLocal.restype=c_void_p
|
|
636
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_RangeR1C1AddressLocal, self.Ptr))
|
|
637
|
+
return ret
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
@property
|
|
641
|
+
|
|
642
|
+
def RichText(self)->'IRichTextString':
|
|
643
|
+
"""
|
|
644
|
+
|
|
645
|
+
"""
|
|
646
|
+
from spire.xls.RichTextString import RichTextString
|
|
647
|
+
GetDllLibXls().XlsRange_get_RichText.argtypes=[c_void_p]
|
|
648
|
+
GetDllLibXls().XlsRange_get_RichText.restype=c_void_p
|
|
649
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_RichText, self.Ptr)
|
|
650
|
+
ret = None if intPtr==None else RichTextString(intPtr)
|
|
651
|
+
return ret
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
@property
|
|
655
|
+
|
|
656
|
+
def HtmlString(self)->str:
|
|
657
|
+
"""
|
|
658
|
+
<summary>
|
|
659
|
+
Gets and sets the html string which contains data and some formattings in this cell.
|
|
660
|
+
</summary>
|
|
661
|
+
"""
|
|
662
|
+
GetDllLibXls().XlsRange_get_HtmlString.argtypes=[c_void_p]
|
|
663
|
+
GetDllLibXls().XlsRange_get_HtmlString.restype=c_void_p
|
|
664
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_HtmlString, self.Ptr))
|
|
665
|
+
return ret
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
@HtmlString.setter
|
|
669
|
+
def HtmlString(self, value:str):
|
|
670
|
+
GetDllLibXls().XlsRange_set_HtmlString.argtypes=[c_void_p, c_wchar_p]
|
|
671
|
+
CallCFunction(GetDllLibXls().XlsRange_set_HtmlString, self.Ptr, value)
|
|
672
|
+
|
|
673
|
+
@property
|
|
674
|
+
def Row(self)->int:
|
|
675
|
+
"""
|
|
676
|
+
<summary>
|
|
677
|
+
Returns the number of the first row of the first area in the range.
|
|
678
|
+
</summary>
|
|
679
|
+
"""
|
|
680
|
+
GetDllLibXls().XlsRange_get_Row.argtypes=[c_void_p]
|
|
681
|
+
GetDllLibXls().XlsRange_get_Row.restype=c_int
|
|
682
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_Row, self.Ptr)
|
|
683
|
+
return ret
|
|
684
|
+
|
|
685
|
+
@property
|
|
686
|
+
def RowGroupLevel(self)->int:
|
|
687
|
+
"""
|
|
688
|
+
<summary>
|
|
689
|
+
Row group level.
|
|
690
|
+
</summary>
|
|
691
|
+
<remarks>
|
|
692
|
+
-1 - column group is not same.
|
|
693
|
+
0 - Not group
|
|
694
|
+
1 - 7 - group level.
|
|
695
|
+
</remarks>
|
|
696
|
+
"""
|
|
697
|
+
GetDllLibXls().XlsRange_get_RowGroupLevel.argtypes=[c_void_p]
|
|
698
|
+
GetDllLibXls().XlsRange_get_RowGroupLevel.restype=c_int
|
|
699
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_RowGroupLevel, self.Ptr)
|
|
700
|
+
return ret
|
|
701
|
+
|
|
702
|
+
@property
|
|
703
|
+
def RowHeight(self)->float:
|
|
704
|
+
"""
|
|
705
|
+
<summary>
|
|
706
|
+
Returns the height of all the rows in the range specified, measured in points.
|
|
707
|
+
<example>The following code illustrates how to set row height:
|
|
708
|
+
<code>
|
|
709
|
+
//Create worksheet
|
|
710
|
+
Workbook workbook = new Workbook();
|
|
711
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
712
|
+
//Set text
|
|
713
|
+
worksheet["A1"].Text = "Test";
|
|
714
|
+
//Set row height
|
|
715
|
+
worksheet["A1"].RowHeight = 30;
|
|
716
|
+
//Save to file
|
|
717
|
+
workbook.SaveToFile("RowHeight.xlsx");
|
|
718
|
+
</code>
|
|
719
|
+
</example>
|
|
720
|
+
</summary>
|
|
721
|
+
"""
|
|
722
|
+
GetDllLibXls().XlsRange_get_RowHeight.argtypes=[c_void_p]
|
|
723
|
+
GetDllLibXls().XlsRange_get_RowHeight.restype=c_double
|
|
724
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_RowHeight, self.Ptr)
|
|
725
|
+
return ret
|
|
726
|
+
|
|
727
|
+
@RowHeight.setter
|
|
728
|
+
def RowHeight(self, value:float):
|
|
729
|
+
GetDllLibXls().XlsRange_set_RowHeight.argtypes=[c_void_p, c_double]
|
|
730
|
+
CallCFunction(GetDllLibXls().XlsRange_set_RowHeight, self.Ptr, value)
|
|
731
|
+
|
|
732
|
+
@property
|
|
733
|
+
|
|
734
|
+
def Rows(self)->'ListXlsRanges':
|
|
735
|
+
"""
|
|
736
|
+
|
|
737
|
+
"""
|
|
738
|
+
GetDllLibXls().XlsRange_get_Rows.argtypes=[c_void_p]
|
|
739
|
+
GetDllLibXls().XlsRange_get_Rows.restype=c_void_p
|
|
740
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Rows, self.Ptr)
|
|
741
|
+
ret = None if intPtr==None else ListXlsRanges(intPtr)
|
|
742
|
+
return ret
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
@property
|
|
746
|
+
|
|
747
|
+
def ExtendedFormatIndex(self)->'UInt16':
|
|
748
|
+
"""
|
|
749
|
+
|
|
750
|
+
"""
|
|
751
|
+
GetDllLibXls().XlsRange_get_ExtendedFormatIndex.argtypes=[c_void_p]
|
|
752
|
+
GetDllLibXls().XlsRange_get_ExtendedFormatIndex.restype=c_void_p
|
|
753
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_ExtendedFormatIndex, self.Ptr)
|
|
754
|
+
ret = None if intPtr==None else UInt16(intPtr)
|
|
755
|
+
return ret
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
@ExtendedFormatIndex.setter
|
|
759
|
+
def ExtendedFormatIndex(self, value:'UInt16'):
|
|
760
|
+
GetDllLibXls().XlsRange_set_ExtendedFormatIndex.argtypes=[c_void_p, c_void_p]
|
|
761
|
+
CallCFunction(GetDllLibXls().XlsRange_set_ExtendedFormatIndex, self.Ptr, value.Ptr)
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
def SetExtendedFormatIndex(self ,index:int):
|
|
765
|
+
"""
|
|
766
|
+
|
|
767
|
+
"""
|
|
768
|
+
|
|
769
|
+
GetDllLibXls().XlsRange_SetExtendedFormatIndex.argtypes=[c_void_p ,c_int]
|
|
770
|
+
CallCFunction(GetDllLibXls().XlsRange_SetExtendedFormatIndex, self.Ptr, index)
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
def SetRowHeight(self ,rowHeight:float,bIsBadFontHeight:bool):
|
|
774
|
+
"""
|
|
775
|
+
|
|
776
|
+
"""
|
|
777
|
+
|
|
778
|
+
GetDllLibXls().XlsRange_SetRowHeight.argtypes=[c_void_p ,c_double,c_bool]
|
|
779
|
+
CallCFunction(GetDllLibXls().XlsRange_SetRowHeight, self.Ptr, rowHeight,bIsBadFontHeight)
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
def ApplyStyle(self ,style:'IStyle',flag:'CellStyleFlag'):
|
|
783
|
+
"""
|
|
784
|
+
|
|
785
|
+
"""
|
|
786
|
+
intPtrstyle:c_void_p = style.Ptr
|
|
787
|
+
intPtrflag:c_void_p = flag.Ptr
|
|
788
|
+
|
|
789
|
+
GetDllLibXls().XlsRange_ApplyStyle.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
790
|
+
CallCFunction(GetDllLibXls().XlsRange_ApplyStyle, self.Ptr, intPtrstyle,intPtrflag)
|
|
791
|
+
|
|
792
|
+
@property
|
|
793
|
+
|
|
794
|
+
def Style(self)->'IStyle':
|
|
795
|
+
"""
|
|
796
|
+
|
|
797
|
+
"""
|
|
798
|
+
GetDllLibXls().XlsRange_get_Style.argtypes=[c_void_p]
|
|
799
|
+
GetDllLibXls().XlsRange_get_Style.restype=c_void_p
|
|
800
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Style, self.Ptr)
|
|
801
|
+
ret = None if intPtr==None else CellStyle(intPtr)
|
|
802
|
+
return ret
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
@Style.setter
|
|
806
|
+
def Style(self, value:'IStyle'):
|
|
807
|
+
GetDllLibXls().XlsRange_set_Style.argtypes=[c_void_p, c_void_p]
|
|
808
|
+
CallCFunction(GetDllLibXls().XlsRange_set_Style, self.Ptr, value.Ptr)
|
|
809
|
+
|
|
810
|
+
@property
|
|
811
|
+
|
|
812
|
+
def Text(self)->str:
|
|
813
|
+
"""
|
|
814
|
+
<summary>
|
|
815
|
+
Gets / sets text of range.
|
|
816
|
+
</summary>
|
|
817
|
+
"""
|
|
818
|
+
GetDllLibXls().XlsRange_get_Text.argtypes=[c_void_p]
|
|
819
|
+
GetDllLibXls().XlsRange_get_Text.restype=c_void_p
|
|
820
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_Text, self.Ptr))
|
|
821
|
+
return ret
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
@Text.setter
|
|
825
|
+
def Text(self, value:str):
|
|
826
|
+
GetDllLibXls().XlsRange_set_Text.argtypes=[c_void_p, c_wchar_p]
|
|
827
|
+
CallCFunction(GetDllLibXls().XlsRange_set_Text, self.Ptr, value)
|
|
828
|
+
|
|
829
|
+
@dispatch
|
|
830
|
+
|
|
831
|
+
def get_Item(self ,row:int,column:int,lastRow:int,lastColumn:int)->IXLSRange:
|
|
832
|
+
"""
|
|
833
|
+
|
|
834
|
+
"""
|
|
835
|
+
|
|
836
|
+
GetDllLibXls().XlsRange_get_Item.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
|
|
837
|
+
GetDllLibXls().XlsRange_get_Item.restype=c_void_p
|
|
838
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Item, self.Ptr, row,column,lastRow,lastColumn)
|
|
839
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
840
|
+
return ret
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
@dispatch
|
|
844
|
+
|
|
845
|
+
def get_Item(self ,row:int,column:int)->IXLSRange:
|
|
846
|
+
"""
|
|
847
|
+
|
|
848
|
+
"""
|
|
849
|
+
|
|
850
|
+
GetDllLibXls().XlsRange_get_ItemRC.argtypes=[c_void_p ,c_int,c_int]
|
|
851
|
+
GetDllLibXls().XlsRange_get_ItemRC.restype=c_void_p
|
|
852
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_ItemRC, self.Ptr, row,column)
|
|
853
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
854
|
+
return ret
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
def set_Item(self ,row:int,column:int,value:'IXLSRange'):
|
|
859
|
+
"""
|
|
860
|
+
|
|
861
|
+
"""
|
|
862
|
+
intPtrvalue:c_void_p = value.Ptr
|
|
863
|
+
|
|
864
|
+
GetDllLibXls().XlsRange_set_Item.argtypes=[c_void_p ,c_int,c_int,c_void_p]
|
|
865
|
+
CallCFunction(GetDllLibXls().XlsRange_set_Item, self.Ptr, row,column,intPtrvalue)
|
|
866
|
+
|
|
867
|
+
@dispatch
|
|
868
|
+
|
|
869
|
+
def get_Item(self ,name:str,IsR1C1Notation:bool)->IXLSRange:
|
|
870
|
+
"""
|
|
871
|
+
|
|
872
|
+
"""
|
|
873
|
+
|
|
874
|
+
GetDllLibXls().XlsRange_get_ItemNI.argtypes=[c_void_p ,c_void_p,c_bool]
|
|
875
|
+
GetDllLibXls().XlsRange_get_ItemNI.restype=c_void_p
|
|
876
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_ItemNI, self.Ptr, name,IsR1C1Notation)
|
|
877
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
878
|
+
return ret
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
@dispatch
|
|
882
|
+
|
|
883
|
+
def get_Item(self ,name:str)->IXLSRange:
|
|
884
|
+
"""
|
|
885
|
+
|
|
886
|
+
"""
|
|
887
|
+
|
|
888
|
+
GetDllLibXls().XlsRange_get_ItemN.argtypes=[c_void_p ,c_void_p]
|
|
889
|
+
GetDllLibXls().XlsRange_get_ItemN.restype=c_void_p
|
|
890
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_ItemN, self.Ptr, name)
|
|
891
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
892
|
+
return ret
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
@property
|
|
896
|
+
|
|
897
|
+
def TimeSpanValue(self)->'TimeSpan':
|
|
898
|
+
"""
|
|
899
|
+
<summary>
|
|
900
|
+
Gets or sets timespan value of cell.
|
|
901
|
+
</summary>
|
|
902
|
+
"""
|
|
903
|
+
GetDllLibXls().XlsRange_get_TimeSpanValue.argtypes=[c_void_p]
|
|
904
|
+
GetDllLibXls().XlsRange_get_TimeSpanValue.restype=c_void_p
|
|
905
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_TimeSpanValue, self.Ptr)
|
|
906
|
+
ret = None if intPtr==None else TimeSpan(intPtr)
|
|
907
|
+
return ret
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
@TimeSpanValue.setter
|
|
911
|
+
def TimeSpanValue(self, value:'TimeSpan'):
|
|
912
|
+
GetDllLibXls().XlsRange_set_TimeSpanValue.argtypes=[c_void_p, c_void_p]
|
|
913
|
+
CallCFunction(GetDllLibXls().XlsRange_set_TimeSpanValue, self.Ptr, value.Ptr)
|
|
914
|
+
|
|
915
|
+
@property
|
|
916
|
+
|
|
917
|
+
def Value(self)->str:
|
|
918
|
+
"""
|
|
919
|
+
<summary>
|
|
920
|
+
Returns or sets the value of the specified range.
|
|
921
|
+
<example>The following code illustrates how to set Value of the specified range:
|
|
922
|
+
<code>
|
|
923
|
+
//Create worksheet
|
|
924
|
+
Workbook workbook = new Workbook();
|
|
925
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
926
|
+
//Set value of the range
|
|
927
|
+
XlsRange range= worksheet.Range[3, 1];
|
|
928
|
+
range.Value = "1/1/2015";
|
|
929
|
+
//Save to file
|
|
930
|
+
workbook.SaveToFile("Value.xlsx");
|
|
931
|
+
</code>
|
|
932
|
+
</example>
|
|
933
|
+
</summary>
|
|
934
|
+
"""
|
|
935
|
+
GetDllLibXls().XlsRange_get_Value.argtypes=[c_void_p]
|
|
936
|
+
GetDllLibXls().XlsRange_get_Value.restype=c_void_p
|
|
937
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_Value, self.Ptr))
|
|
938
|
+
return ret
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
@Value.setter
|
|
942
|
+
def Value(self, value:str):
|
|
943
|
+
GetDllLibXls().XlsRange_set_Value.argtypes=[c_void_p, c_wchar_p]
|
|
944
|
+
CallCFunction(GetDllLibXls().XlsRange_set_Value, self.Ptr, value)
|
|
945
|
+
|
|
946
|
+
@property
|
|
947
|
+
def Value2(self)->'SpireObject':
|
|
948
|
+
"""
|
|
949
|
+
<summary>
|
|
950
|
+
Returns or sets the cell value.
|
|
951
|
+
It's not use for current and datetime types.
|
|
952
|
+
<example>The following code illustrates how to access Value2 property of the Range:
|
|
953
|
+
<code>
|
|
954
|
+
//Create worksheet
|
|
955
|
+
Workbook workbook = new Workbook();
|
|
956
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
957
|
+
//Assigning Value2 property of the Range
|
|
958
|
+
worksheet["A1"].Value2 = DateTime.Now;
|
|
959
|
+
worksheet["A3"].Value2 = false;
|
|
960
|
+
//Checking Range types
|
|
961
|
+
Console.WriteLine(worksheet["A1"].HasDateTime);
|
|
962
|
+
Console.WriteLine(worksheet["A3"].HasBoolean);
|
|
963
|
+
</code>
|
|
964
|
+
</example>
|
|
965
|
+
</summary>
|
|
966
|
+
"""
|
|
967
|
+
GetDllLibXls().XlsRange_get_Value2.argtypes=[c_void_p]
|
|
968
|
+
GetDllLibXls().XlsRange_get_Value2.restype=c_void_p
|
|
969
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Value2, self.Ptr)
|
|
970
|
+
ret = None if intPtr==None else SpireObject(intPtr)
|
|
971
|
+
return ret
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
@Value2.setter
|
|
975
|
+
def Value2(self, value:'SpireObject'):
|
|
976
|
+
GetDllLibXls().XlsRange_set_Value2.argtypes=[c_void_p, c_void_p]
|
|
977
|
+
CallCFunction(GetDllLibXls().XlsRange_set_Value2, self.Ptr, value.Ptr)
|
|
978
|
+
|
|
979
|
+
@property
|
|
980
|
+
|
|
981
|
+
def VerticalAlignment(self)->'VerticalAlignType':
|
|
982
|
+
"""
|
|
983
|
+
<summary>
|
|
984
|
+
Returns or sets the vertical alignment of the specified object.
|
|
985
|
+
<example>The following code illustrates how to set vertical alignment type:
|
|
986
|
+
<code>
|
|
987
|
+
//Create worksheet
|
|
988
|
+
Workbook workbook = new Workbook();
|
|
989
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
990
|
+
//Set text
|
|
991
|
+
worksheet["A1"].Text = "Test";
|
|
992
|
+
//Set alignment
|
|
993
|
+
worksheet["A1"].VerticalAlignment = VerticalAlignType.Top;
|
|
994
|
+
//Save to file
|
|
995
|
+
workbook.SaveToFile("VerticalAlignment.xlsx");
|
|
996
|
+
</code>
|
|
997
|
+
</example>
|
|
998
|
+
</summary>
|
|
999
|
+
"""
|
|
1000
|
+
GetDllLibXls().XlsRange_get_VerticalAlignment.argtypes=[c_void_p]
|
|
1001
|
+
GetDllLibXls().XlsRange_get_VerticalAlignment.restype=c_int
|
|
1002
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_VerticalAlignment, self.Ptr)
|
|
1003
|
+
objwraped = VerticalAlignType(ret)
|
|
1004
|
+
return objwraped
|
|
1005
|
+
|
|
1006
|
+
@VerticalAlignment.setter
|
|
1007
|
+
def VerticalAlignment(self, value:'VerticalAlignType'):
|
|
1008
|
+
GetDllLibXls().XlsRange_set_VerticalAlignment.argtypes=[c_void_p, c_int]
|
|
1009
|
+
CallCFunction(GetDllLibXls().XlsRange_set_VerticalAlignment, self.Ptr, value.value)
|
|
1010
|
+
|
|
1011
|
+
@property
|
|
1012
|
+
|
|
1013
|
+
def Worksheet(self)->'IWorksheet':
|
|
1014
|
+
"""
|
|
1015
|
+
<summary>
|
|
1016
|
+
Returns a worksheet object that represents the worksheet
|
|
1017
|
+
containing the specified range.
|
|
1018
|
+
</summary>
|
|
1019
|
+
"""
|
|
1020
|
+
GetDllLibXls().XlsRange_get_Worksheet.argtypes=[c_void_p]
|
|
1021
|
+
GetDllLibXls().XlsRange_get_Worksheet.restype=c_void_p
|
|
1022
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Worksheet, self.Ptr)
|
|
1023
|
+
ret = None if intPtr==None else XlsWorksheet(intPtr)
|
|
1024
|
+
return ret
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
#
|
|
1028
|
+
# def GetNewRangeLocation(self ,names:'Dictionary2',sheetName:'String&')->str:
|
|
1029
|
+
# """
|
|
1030
|
+
#
|
|
1031
|
+
# """
|
|
1032
|
+
# intPtrnames:c_void_p = names.Ptr
|
|
1033
|
+
# intPtrsheetName:c_void_p = sheetName.Ptr
|
|
1034
|
+
#
|
|
1035
|
+
# GetDllLibXls().XlsRange_GetNewRangeLocation.argtypes=[c_void_p ,c_void_p,c_void_p]
|
|
1036
|
+
# GetDllLibXls().XlsRange_GetNewRangeLocation.restype=c_wchar_p
|
|
1037
|
+
# ret = CallCFunction(GetDllLibXls().XlsRange_GetNewRangeLocation, self.Ptr, intPtrnames,intPtrsheetName)
|
|
1038
|
+
# return ret
|
|
1039
|
+
#
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
#
|
|
1043
|
+
# def Clone(self ,parent:'SpireObject',rangeNames:'Dictionary2',book:'XlsWorkbook')->'IXLSRange':
|
|
1044
|
+
# """
|
|
1045
|
+
#
|
|
1046
|
+
# """
|
|
1047
|
+
# intPtrparent:c_void_p = parent.Ptr
|
|
1048
|
+
# intPtrrangeNames:c_void_p = rangeNames.Ptr
|
|
1049
|
+
# intPtrbook:c_void_p = book.Ptr
|
|
1050
|
+
#
|
|
1051
|
+
# GetDllLibXls().XlsRange_Clone.argtypes=[c_void_p ,c_void_p,c_void_p,c_void_p]
|
|
1052
|
+
# GetDllLibXls().XlsRange_Clone.restype=c_void_p
|
|
1053
|
+
# intPtr = CallCFunction(GetDllLibXls().XlsRange_Clone, self.Ptr, intPtrparent,intPtrrangeNames,intPtrbook)
|
|
1054
|
+
# ret = None if intPtr==None else XlsRange(intPtr)
|
|
1055
|
+
# return ret
|
|
1056
|
+
#
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
def ClearConditionalFormats(self):
|
|
1060
|
+
"""
|
|
1061
|
+
<summary>
|
|
1062
|
+
Clears conditional formats.
|
|
1063
|
+
</summary>
|
|
1064
|
+
"""
|
|
1065
|
+
GetDllLibXls().XlsRange_ClearConditionalFormats.argtypes=[c_void_p]
|
|
1066
|
+
CallCFunction(GetDllLibXls().XlsRange_ClearConditionalFormats, self.Ptr)
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
def GetRectangles(self)->List['Rectangle']:
|
|
1070
|
+
"""
|
|
1071
|
+
<summary>
|
|
1072
|
+
Gets rectangle information of current range.
|
|
1073
|
+
</summary>
|
|
1074
|
+
<returns>Rectangles information</returns>
|
|
1075
|
+
"""
|
|
1076
|
+
GetDllLibXls().XlsRange_GetRectangles.argtypes=[c_void_p]
|
|
1077
|
+
GetDllLibXls().XlsRange_GetRectangles.restype=IntPtrArray
|
|
1078
|
+
intPtrArray = CallCFunction(GetDllLibXls().XlsRange_GetRectangles, self.Ptr)
|
|
1079
|
+
ret = GetVectorFromArray(intPtrArray, Rectangle)
|
|
1080
|
+
return ret
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
def GetRectanglesCount(self)->int:
|
|
1084
|
+
"""
|
|
1085
|
+
<summary>
|
|
1086
|
+
Returns number of rectangles..
|
|
1087
|
+
</summary>
|
|
1088
|
+
<returns>Number of rectangles.</returns>
|
|
1089
|
+
"""
|
|
1090
|
+
GetDllLibXls().XlsRange_GetRectanglesCount.argtypes=[c_void_p]
|
|
1091
|
+
GetDllLibXls().XlsRange_GetRectanglesCount.restype=c_int
|
|
1092
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_GetRectanglesCount, self.Ptr)
|
|
1093
|
+
return ret
|
|
1094
|
+
|
|
1095
|
+
@property
|
|
1096
|
+
|
|
1097
|
+
def WorksheetName(self)->str:
|
|
1098
|
+
"""
|
|
1099
|
+
<summary>
|
|
1100
|
+
Returns name of the parent worksheet.
|
|
1101
|
+
</summary>
|
|
1102
|
+
"""
|
|
1103
|
+
GetDllLibXls().XlsRange_get_WorksheetName.argtypes=[c_void_p]
|
|
1104
|
+
GetDllLibXls().XlsRange_get_WorksheetName.restype=c_void_p
|
|
1105
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_WorksheetName, self.Ptr))
|
|
1106
|
+
return ret
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
@property
|
|
1110
|
+
def CellsCount(self)->int:
|
|
1111
|
+
"""
|
|
1112
|
+
<summary>
|
|
1113
|
+
Gets number of cells.
|
|
1114
|
+
</summary>
|
|
1115
|
+
"""
|
|
1116
|
+
GetDllLibXls().XlsRange_get_CellsCount.argtypes=[c_void_p]
|
|
1117
|
+
GetDllLibXls().XlsRange_get_CellsCount.restype=c_int
|
|
1118
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_CellsCount, self.Ptr)
|
|
1119
|
+
return ret
|
|
1120
|
+
|
|
1121
|
+
@property
|
|
1122
|
+
|
|
1123
|
+
def RangeGlobalAddress2007(self)->str:
|
|
1124
|
+
"""
|
|
1125
|
+
<summary>
|
|
1126
|
+
Gets address global in the format required by Excel 2007.
|
|
1127
|
+
</summary>
|
|
1128
|
+
"""
|
|
1129
|
+
GetDllLibXls().XlsRange_get_RangeGlobalAddress2007.argtypes=[c_void_p]
|
|
1130
|
+
GetDllLibXls().XlsRange_get_RangeGlobalAddress2007.restype=c_void_p
|
|
1131
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_RangeGlobalAddress2007, self.Ptr))
|
|
1132
|
+
return ret
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
def CalculateAllValue(self):
|
|
1136
|
+
"""
|
|
1137
|
+
<summary>
|
|
1138
|
+
Caculate all formula for the specified range
|
|
1139
|
+
</summary>
|
|
1140
|
+
"""
|
|
1141
|
+
GetDllLibXls().XlsRange_CalculateAllValue.argtypes=[c_void_p]
|
|
1142
|
+
CallCFunction(GetDllLibXls().XlsRange_CalculateAllValue, self.Ptr)
|
|
1143
|
+
|
|
1144
|
+
@dispatch
|
|
1145
|
+
|
|
1146
|
+
def Activate(self ,scroll:bool)->IXLSRange:
|
|
1147
|
+
"""
|
|
1148
|
+
<summary>
|
|
1149
|
+
Activates a single cell, scroll to it and activates the corresponding sheet.
|
|
1150
|
+
To select a range of cells, use the Select method.
|
|
1151
|
+
<example>The following code illustrates how to activate a Range with scroll flag:
|
|
1152
|
+
<code>
|
|
1153
|
+
//Create worksheet
|
|
1154
|
+
Workbook workbook = new Workbook();
|
|
1155
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1156
|
+
//Activates 'F1' cell.
|
|
1157
|
+
worksheet.Range["F1"].Activate(true);
|
|
1158
|
+
//Save to file
|
|
1159
|
+
workbook.SaveToFile("Activate.xlsx");
|
|
1160
|
+
</code>
|
|
1161
|
+
</example>
|
|
1162
|
+
</summary>
|
|
1163
|
+
<param name="scroll">True to scroll to the cell</param>
|
|
1164
|
+
<returns>Returns the active cell.</returns>
|
|
1165
|
+
"""
|
|
1166
|
+
|
|
1167
|
+
GetDllLibXls().XlsRange_Activate.argtypes=[c_void_p ,c_bool]
|
|
1168
|
+
GetDllLibXls().XlsRange_Activate.restype=c_void_p
|
|
1169
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_Activate, self.Ptr, scroll)
|
|
1170
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
1171
|
+
return ret
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
@dispatch
|
|
1175
|
+
|
|
1176
|
+
def Activate(self)->IXLSRange:
|
|
1177
|
+
"""
|
|
1178
|
+
<summary>
|
|
1179
|
+
Active single cell in the worksheet
|
|
1180
|
+
</summary>
|
|
1181
|
+
<returns>Returns the active cell.</returns>
|
|
1182
|
+
"""
|
|
1183
|
+
GetDllLibXls().XlsRange_Activate1.argtypes=[c_void_p]
|
|
1184
|
+
GetDllLibXls().XlsRange_Activate1.restype=c_void_p
|
|
1185
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_Activate1, self.Ptr)
|
|
1186
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
1187
|
+
return ret
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
@dispatch
|
|
1191
|
+
|
|
1192
|
+
def AddComment(self)->ICommentShape:
|
|
1193
|
+
"""
|
|
1194
|
+
<summary>
|
|
1195
|
+
Adds a comment to the range.
|
|
1196
|
+
</summary>
|
|
1197
|
+
<returns>Created comment or exists one.</returns>
|
|
1198
|
+
"""
|
|
1199
|
+
GetDllLibXls().XlsRange_AddComment1.argtypes=[c_void_p]
|
|
1200
|
+
GetDllLibXls().XlsRange_AddComment1.restype=c_void_p
|
|
1201
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_AddComment1, self.Ptr)
|
|
1202
|
+
ret = None if intPtr==None else XlsComment(intPtr)
|
|
1203
|
+
return ret
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
def AutoFitColumns(self):
|
|
1207
|
+
"""
|
|
1208
|
+
<summary>
|
|
1209
|
+
Changes the width of the columns in the range in the range to achieve the best fit.
|
|
1210
|
+
<example>The following code illustrates how to auto-size column width to its cell content:
|
|
1211
|
+
<code>
|
|
1212
|
+
//Create worksheet
|
|
1213
|
+
Workbook workbook = new Workbook();
|
|
1214
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1215
|
+
//Auto-fit columns
|
|
1216
|
+
worksheet.Range["B4"].Text = "Fit the content to column";
|
|
1217
|
+
worksheet.Range["B4"].AutoFitColumns();
|
|
1218
|
+
//Save to file
|
|
1219
|
+
workbook.SaveToFile("AutoFitRows.xlsx");
|
|
1220
|
+
</code>
|
|
1221
|
+
</example>
|
|
1222
|
+
</summary>
|
|
1223
|
+
"""
|
|
1224
|
+
GetDllLibXls().XlsRange_AutoFitColumns.argtypes=[c_void_p]
|
|
1225
|
+
CallCFunction(GetDllLibXls().XlsRange_AutoFitColumns, self.Ptr)
|
|
1226
|
+
|
|
1227
|
+
def AutoFitRows(self):
|
|
1228
|
+
"""
|
|
1229
|
+
<summary>
|
|
1230
|
+
Changes the width of the height of the rows in the range to achieve the best fit.
|
|
1231
|
+
<example>The following code illustrates how to auto-size row height to its cell content:
|
|
1232
|
+
<code>
|
|
1233
|
+
//Create worksheet
|
|
1234
|
+
Workbook workbook = new Workbook();
|
|
1235
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1236
|
+
//Auto-fit rows
|
|
1237
|
+
worksheet.Range["A2"].Text = "Fit the content to row";
|
|
1238
|
+
worksheet.Range["A2"].IsWrapText = true;
|
|
1239
|
+
worksheet.Range["A2"].AutoFitRows();
|
|
1240
|
+
//Save to file
|
|
1241
|
+
workbook.SaveToFile("AutoFitRows.xlsx");
|
|
1242
|
+
</code>
|
|
1243
|
+
</example>
|
|
1244
|
+
</summary>
|
|
1245
|
+
"""
|
|
1246
|
+
GetDllLibXls().XlsRange_AutoFitRows.argtypes=[c_void_p]
|
|
1247
|
+
CallCFunction(GetDllLibXls().XlsRange_AutoFitRows, self.Ptr)
|
|
1248
|
+
|
|
1249
|
+
@dispatch
|
|
1250
|
+
def BorderAround(self):
|
|
1251
|
+
"""
|
|
1252
|
+
<summary>
|
|
1253
|
+
Sets around border for current range.
|
|
1254
|
+
<example>The following code illustrates how to apply border around the Range:
|
|
1255
|
+
<code>
|
|
1256
|
+
//Create worksheet
|
|
1257
|
+
Workbook workbook = new Workbook();
|
|
1258
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1259
|
+
//Set text
|
|
1260
|
+
worksheet["C2"].Text = "Sample";
|
|
1261
|
+
worksheet["D2"].Text = "text";
|
|
1262
|
+
worksheet["C3"].Text = "in";
|
|
1263
|
+
worksheet["D3"].Text = "cell";
|
|
1264
|
+
//Set border
|
|
1265
|
+
worksheet["C2:D3"].BorderAround();
|
|
1266
|
+
//Save to file
|
|
1267
|
+
workbook.SaveToFile("BorderAround.xlsx");
|
|
1268
|
+
</code>
|
|
1269
|
+
</example>
|
|
1270
|
+
</summary>
|
|
1271
|
+
"""
|
|
1272
|
+
GetDllLibXls().XlsRange_BorderAround.argtypes=[c_void_p]
|
|
1273
|
+
CallCFunction(GetDllLibXls().XlsRange_BorderAround, self.Ptr)
|
|
1274
|
+
|
|
1275
|
+
@dispatch
|
|
1276
|
+
|
|
1277
|
+
def BorderAround(self ,borderLine:LineStyleType):
|
|
1278
|
+
"""
|
|
1279
|
+
<summary>
|
|
1280
|
+
Sets around border for current range.
|
|
1281
|
+
<example>The following code illustrates how to apply border around the Range:
|
|
1282
|
+
<code>
|
|
1283
|
+
//Create worksheet
|
|
1284
|
+
Workbook workbook = new Workbook();
|
|
1285
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1286
|
+
//Set text
|
|
1287
|
+
worksheet["C2"].Text = "Sample";
|
|
1288
|
+
worksheet["D2"].Text = "text";
|
|
1289
|
+
worksheet["C3"].Text = "in";
|
|
1290
|
+
worksheet["D3"].Text = "cell";
|
|
1291
|
+
//Set border
|
|
1292
|
+
worksheet["C2:D3"].BorderAround(LineStyleType.Thick);
|
|
1293
|
+
//Save to file
|
|
1294
|
+
workbook.SaveToFile("BorderAround.xlsx");
|
|
1295
|
+
</code>
|
|
1296
|
+
</example>
|
|
1297
|
+
</summary>
|
|
1298
|
+
<param name="borderLine">Represents border line.</param>
|
|
1299
|
+
"""
|
|
1300
|
+
enumborderLine:c_int = borderLine.value
|
|
1301
|
+
|
|
1302
|
+
GetDllLibXls().XlsRange_BorderAroundB.argtypes=[c_void_p ,c_int]
|
|
1303
|
+
CallCFunction(GetDllLibXls().XlsRange_BorderAroundB, self.Ptr, enumborderLine)
|
|
1304
|
+
|
|
1305
|
+
@dispatch
|
|
1306
|
+
|
|
1307
|
+
def BorderAround(self ,borderLine:LineStyleType,borderColor:Color):
|
|
1308
|
+
"""
|
|
1309
|
+
<summary>
|
|
1310
|
+
Sets around border for current range.
|
|
1311
|
+
<example>The following code illustrates how to apply border around the Range with color from System.Drawing.Color structure:
|
|
1312
|
+
<code>
|
|
1313
|
+
//Create worksheet
|
|
1314
|
+
Workbook workbook = new Workbook();
|
|
1315
|
+
Worksheet 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 , Color.Red);
|
|
1323
|
+
//Save to file
|
|
1324
|
+
workbook.SaveToFile("BorderAround.xlsx");
|
|
1325
|
+
</code>
|
|
1326
|
+
</example>
|
|
1327
|
+
</summary>
|
|
1328
|
+
<param name="borderLine">Represents border line.</param>
|
|
1329
|
+
<param name="borderColor">Represents border color.</param>
|
|
1330
|
+
"""
|
|
1331
|
+
enumborderLine:c_int = borderLine.value
|
|
1332
|
+
intPtrborderColor:c_void_p = borderColor.Ptr
|
|
1333
|
+
|
|
1334
|
+
GetDllLibXls().XlsRange_BorderAroundBB.argtypes=[c_void_p ,c_int,c_void_p]
|
|
1335
|
+
CallCFunction(GetDllLibXls().XlsRange_BorderAroundBB, self.Ptr, enumborderLine,intPtrborderColor)
|
|
1336
|
+
|
|
1337
|
+
@dispatch
|
|
1338
|
+
|
|
1339
|
+
def BorderAround(self ,borderLine:LineStyleType,borderColor:ExcelColors):
|
|
1340
|
+
"""
|
|
1341
|
+
<summary>
|
|
1342
|
+
Sets around border for current range.
|
|
1343
|
+
<example>The following code illustrates how to apply border around the Range with color from Spire.Xls.ExcelColors structure:
|
|
1344
|
+
<code>
|
|
1345
|
+
//Create worksheet
|
|
1346
|
+
Workbook workbook = new Workbook();
|
|
1347
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1348
|
+
//Set text
|
|
1349
|
+
worksheet["C2"].Text = "Sample";
|
|
1350
|
+
worksheet["D2"].Text = "text";
|
|
1351
|
+
worksheet["C3"].Text = "in";
|
|
1352
|
+
worksheet["D3"].Text = "cell";
|
|
1353
|
+
//Set border
|
|
1354
|
+
worksheet["C2:D3"].BorderAround(LineStyleType.Thick , ExcelColors.Red);
|
|
1355
|
+
//Save to file
|
|
1356
|
+
workbook.SaveToFile("BorderAround.xlsx");
|
|
1357
|
+
</code>
|
|
1358
|
+
</example>
|
|
1359
|
+
</summary>
|
|
1360
|
+
<param name="borderLine">Represents border line.</param>
|
|
1361
|
+
<param name="borderColor">Represents border color as ExcelColors.</param>
|
|
1362
|
+
"""
|
|
1363
|
+
enumborderLine:c_int = borderLine.value
|
|
1364
|
+
enumborderColor:c_int = borderColor.value
|
|
1365
|
+
|
|
1366
|
+
GetDllLibXls().XlsRange_BorderAroundBB1.argtypes=[c_void_p ,c_int,c_int]
|
|
1367
|
+
CallCFunction(GetDllLibXls().XlsRange_BorderAroundBB1, self.Ptr, enumborderLine,enumborderColor)
|
|
1368
|
+
|
|
1369
|
+
@dispatch
|
|
1370
|
+
def BorderInside(self):
|
|
1371
|
+
"""
|
|
1372
|
+
<summary>
|
|
1373
|
+
Sets inside border for current range.
|
|
1374
|
+
<example>The following code illustrates how to apply border inside the Range:
|
|
1375
|
+
<code>
|
|
1376
|
+
//Create worksheet
|
|
1377
|
+
Workbook workbook = new Workbook();
|
|
1378
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1379
|
+
//Set text
|
|
1380
|
+
worksheet["C2"].Text = "Sample";
|
|
1381
|
+
worksheet["D2"].Text = "text";
|
|
1382
|
+
worksheet["C3"].Text = "in";
|
|
1383
|
+
worksheet["D3"].Text = "cell";
|
|
1384
|
+
//Set border
|
|
1385
|
+
worksheet["C2:D3"].BorderInside();
|
|
1386
|
+
//Save to file
|
|
1387
|
+
workbook.SaveToFile("BorderInside.xlsx");
|
|
1388
|
+
</code>
|
|
1389
|
+
</example>
|
|
1390
|
+
</summary>
|
|
1391
|
+
"""
|
|
1392
|
+
GetDllLibXls().XlsRange_BorderInside.argtypes=[c_void_p]
|
|
1393
|
+
CallCFunction(GetDllLibXls().XlsRange_BorderInside, self.Ptr)
|
|
1394
|
+
|
|
1395
|
+
@dispatch
|
|
1396
|
+
|
|
1397
|
+
def BorderInside(self ,borderLine:LineStyleType):
|
|
1398
|
+
"""
|
|
1399
|
+
<summary>
|
|
1400
|
+
Sets inside border for current range.
|
|
1401
|
+
<example>The following code illustrates how to apply border inside the Range:
|
|
1402
|
+
<code>
|
|
1403
|
+
//Create worksheet
|
|
1404
|
+
Workbook workbook = new Workbook();
|
|
1405
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1406
|
+
//Set text
|
|
1407
|
+
worksheet["C2"].Text = "Sample";
|
|
1408
|
+
worksheet["D2"].Text = "text";
|
|
1409
|
+
worksheet["C3"].Text = "in";
|
|
1410
|
+
worksheet["D3"].Text = "cell";
|
|
1411
|
+
//Set border
|
|
1412
|
+
worksheet["C2:D3"].BorderInside(LineStyleType.Thick);
|
|
1413
|
+
//Save to file
|
|
1414
|
+
workbook.SaveToFile("BorderInside.xlsx");
|
|
1415
|
+
</code>
|
|
1416
|
+
</example>
|
|
1417
|
+
</summary>
|
|
1418
|
+
<param name="borderLine">Represents border line.</param>
|
|
1419
|
+
"""
|
|
1420
|
+
enumborderLine:c_int = borderLine.value
|
|
1421
|
+
|
|
1422
|
+
GetDllLibXls().XlsRange_BorderInsideB.argtypes=[c_void_p ,c_int]
|
|
1423
|
+
CallCFunction(GetDllLibXls().XlsRange_BorderInsideB, self.Ptr, enumborderLine)
|
|
1424
|
+
|
|
1425
|
+
@dispatch
|
|
1426
|
+
|
|
1427
|
+
def BorderInside(self ,borderLine:LineStyleType,borderColor:Color):
|
|
1428
|
+
"""
|
|
1429
|
+
<summary>
|
|
1430
|
+
Sets inside border for current range.
|
|
1431
|
+
<example>The following code illustrates how to apply border inside the Range with color from System.Drawing.Color structure:
|
|
1432
|
+
<code>
|
|
1433
|
+
//Create worksheet
|
|
1434
|
+
Workbook workbook = new Workbook();
|
|
1435
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1436
|
+
//Set text
|
|
1437
|
+
worksheet["C2"].Text = "Sample";
|
|
1438
|
+
worksheet["D2"].Text = "text";
|
|
1439
|
+
worksheet["C3"].Text = "in";
|
|
1440
|
+
worksheet["D3"].Text = "cell";
|
|
1441
|
+
//Set border
|
|
1442
|
+
worksheet["C2:D3"].BorderInside(LineStyleType.Thick , Color.Red);
|
|
1443
|
+
//Save to file
|
|
1444
|
+
workbook.SaveToFile("BorderInside.xlsx");
|
|
1445
|
+
</code>
|
|
1446
|
+
</example>
|
|
1447
|
+
</summary>
|
|
1448
|
+
<param name="borderLine">Represents border line.</param>
|
|
1449
|
+
<param name="borderColor">Represents border color.</param>
|
|
1450
|
+
"""
|
|
1451
|
+
enumborderLine:c_int = borderLine.value
|
|
1452
|
+
intPtrborderColor:c_void_p = borderColor.Ptr
|
|
1453
|
+
|
|
1454
|
+
GetDllLibXls().XlsRange_BorderInsideBB.argtypes=[c_void_p ,c_int,c_void_p]
|
|
1455
|
+
CallCFunction(GetDllLibXls().XlsRange_BorderInsideBB, self.Ptr, enumborderLine,intPtrborderColor)
|
|
1456
|
+
|
|
1457
|
+
@dispatch
|
|
1458
|
+
|
|
1459
|
+
def BorderInside(self ,borderLine:LineStyleType,borderColor:ExcelColors):
|
|
1460
|
+
"""
|
|
1461
|
+
<summary>
|
|
1462
|
+
Sets inside border for current range.
|
|
1463
|
+
<example>The following code illustrates how to apply border inside the Range with color from Spire.Xls.ExcelColors structure:
|
|
1464
|
+
<code>
|
|
1465
|
+
//Create worksheet
|
|
1466
|
+
Workbook workbook = new Workbook();
|
|
1467
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1468
|
+
//Set text
|
|
1469
|
+
worksheet["C2"].Text = "Sample";
|
|
1470
|
+
worksheet["D2"].Text = "text";
|
|
1471
|
+
worksheet["C3"].Text = "in";
|
|
1472
|
+
worksheet["D3"].Text = "cell";
|
|
1473
|
+
//Set border
|
|
1474
|
+
worksheet["C2:D3"].BorderInside(LineStyleType.Thick , ExcelColors.Red);
|
|
1475
|
+
//Save to file
|
|
1476
|
+
workbook.SaveToFile("BorderInside.xlsx");
|
|
1477
|
+
</code>
|
|
1478
|
+
</example>
|
|
1479
|
+
</summary>
|
|
1480
|
+
<param name="borderLine">Represents border line.</param>
|
|
1481
|
+
<param name="borderColor">Represents border color as ExcelColors.</param>
|
|
1482
|
+
"""
|
|
1483
|
+
enumborderLine:c_int = borderLine.value
|
|
1484
|
+
enumborderColor:c_int = borderColor.value
|
|
1485
|
+
|
|
1486
|
+
GetDllLibXls().XlsRange_BorderInsideBB1.argtypes=[c_void_p ,c_int,c_int]
|
|
1487
|
+
CallCFunction(GetDllLibXls().XlsRange_BorderInsideBB1, self.Ptr, enumborderLine,enumborderColor)
|
|
1488
|
+
|
|
1489
|
+
def BorderNone(self):
|
|
1490
|
+
"""
|
|
1491
|
+
<summary>
|
|
1492
|
+
Sets none border for current range.
|
|
1493
|
+
<example>The following code illustrates how to remove borders in the Range:
|
|
1494
|
+
<code>
|
|
1495
|
+
//Create worksheet
|
|
1496
|
+
Workbook workbook = new Workbook();
|
|
1497
|
+
workbook.LoadFromFile("Sample.xlsx");
|
|
1498
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1499
|
+
//Remove borders
|
|
1500
|
+
worksheet["C2"].BorderNone();
|
|
1501
|
+
//Save to file
|
|
1502
|
+
workbook.SaveToFile("BorderNone.xlsx");
|
|
1503
|
+
</code>
|
|
1504
|
+
</example>
|
|
1505
|
+
</summary>
|
|
1506
|
+
"""
|
|
1507
|
+
GetDllLibXls().XlsRange_BorderNone.argtypes=[c_void_p]
|
|
1508
|
+
CallCFunction(GetDllLibXls().XlsRange_BorderNone, self.Ptr)
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
def Clear(self ,option:'ExcelClearOptions'):
|
|
1512
|
+
"""
|
|
1513
|
+
<summary>
|
|
1514
|
+
Clears the cell based on clear options.
|
|
1515
|
+
<example>The following code illustrates how to clear the Range with clear options:
|
|
1516
|
+
<code>
|
|
1517
|
+
//Create worksheet
|
|
1518
|
+
Workbook workbook = new Workbook();
|
|
1519
|
+
workbook.LoadFromFile("Sample.xlsx");
|
|
1520
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1521
|
+
//Clears the Range C2 with its clear options
|
|
1522
|
+
worksheet.Range["C2"].Clear(ExcelClearOptions.ClearAll);
|
|
1523
|
+
//Save to file
|
|
1524
|
+
workbook.SaveToFile("ClearContents.xlsx");
|
|
1525
|
+
</code>
|
|
1526
|
+
</example>
|
|
1527
|
+
</summary>
|
|
1528
|
+
<param name="option">Represents the clear options.</param>
|
|
1529
|
+
"""
|
|
1530
|
+
enumoption:c_int = option.value
|
|
1531
|
+
|
|
1532
|
+
GetDllLibXls().XlsRange_Clear.argtypes=[c_void_p ,c_int]
|
|
1533
|
+
CallCFunction(GetDllLibXls().XlsRange_Clear, self.Ptr, enumoption)
|
|
1534
|
+
|
|
1535
|
+
def ClearAll(self):
|
|
1536
|
+
"""
|
|
1537
|
+
<summary>
|
|
1538
|
+
Clears the entire object.
|
|
1539
|
+
</summary>
|
|
1540
|
+
"""
|
|
1541
|
+
GetDllLibXls().XlsRange_ClearAll.argtypes=[c_void_p]
|
|
1542
|
+
CallCFunction(GetDllLibXls().XlsRange_ClearAll, self.Ptr)
|
|
1543
|
+
|
|
1544
|
+
def ClearContents(self):
|
|
1545
|
+
"""
|
|
1546
|
+
<summary>
|
|
1547
|
+
Clear the contents of the Range.
|
|
1548
|
+
<example>The following code illustrates how to clear the Range:
|
|
1549
|
+
<code>
|
|
1550
|
+
//Create worksheet
|
|
1551
|
+
Workbook workbook = new Workbook();
|
|
1552
|
+
workbook.LoadFromFile("Sample.xlsx");
|
|
1553
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1554
|
+
//Clears the Range C2
|
|
1555
|
+
worksheet.Range["C2"].ClearContents();
|
|
1556
|
+
//Save to file
|
|
1557
|
+
workbook.SaveToFile("ClearContents.xlsx");
|
|
1558
|
+
</code>
|
|
1559
|
+
</example>
|
|
1560
|
+
</summary>
|
|
1561
|
+
"""
|
|
1562
|
+
GetDllLibXls().XlsRange_ClearContents.argtypes=[c_void_p]
|
|
1563
|
+
CallCFunction(GetDllLibXls().XlsRange_ClearContents, self.Ptr)
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
def GroupByColumns(self ,isCollapsed:bool)->'XlsRange':
|
|
1567
|
+
"""
|
|
1568
|
+
<summary>
|
|
1569
|
+
Groups columns.
|
|
1570
|
+
</summary>
|
|
1571
|
+
<param name="isCollapsed">Indicates whether group should be collapsed.</param>
|
|
1572
|
+
<returns></returns>
|
|
1573
|
+
"""
|
|
1574
|
+
|
|
1575
|
+
GetDllLibXls().XlsRange_GroupByColumns.argtypes=[c_void_p ,c_bool]
|
|
1576
|
+
GetDllLibXls().XlsRange_GroupByColumns.restype=c_void_p
|
|
1577
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_GroupByColumns, self.Ptr, isCollapsed)
|
|
1578
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
1579
|
+
return ret
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
def GroupByRows(self ,isCollapsed:bool)->'XlsRange':
|
|
1584
|
+
"""
|
|
1585
|
+
<summary>
|
|
1586
|
+
Groups row.
|
|
1587
|
+
</summary>
|
|
1588
|
+
<param name="isCollapsed">Indicates whether group should be collapsed.</param>
|
|
1589
|
+
<returns></returns>
|
|
1590
|
+
"""
|
|
1591
|
+
|
|
1592
|
+
GetDllLibXls().XlsRange_GroupByRows.argtypes=[c_void_p ,c_bool]
|
|
1593
|
+
GetDllLibXls().XlsRange_GroupByRows.restype=c_void_p
|
|
1594
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_GroupByRows, self.Ptr, isCollapsed)
|
|
1595
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
1596
|
+
return ret
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
def UngroupByColumns(self)->'XlsRange':
|
|
1601
|
+
"""
|
|
1602
|
+
<summary>
|
|
1603
|
+
Ungroups column.
|
|
1604
|
+
</summary>
|
|
1605
|
+
<returns></returns>
|
|
1606
|
+
"""
|
|
1607
|
+
GetDllLibXls().XlsRange_UngroupByColumns.argtypes=[c_void_p]
|
|
1608
|
+
GetDllLibXls().XlsRange_UngroupByColumns.restype=c_void_p
|
|
1609
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_UngroupByColumns, self.Ptr)
|
|
1610
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
1611
|
+
return ret
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
def UngroupByRows(self)->'XlsRange':
|
|
1616
|
+
"""
|
|
1617
|
+
<summary>
|
|
1618
|
+
Ungroups row.
|
|
1619
|
+
</summary>
|
|
1620
|
+
<returns></returns>
|
|
1621
|
+
"""
|
|
1622
|
+
GetDllLibXls().XlsRange_UngroupByRows.argtypes=[c_void_p]
|
|
1623
|
+
GetDllLibXls().XlsRange_UngroupByRows.restype=c_void_p
|
|
1624
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_UngroupByRows, self.Ptr)
|
|
1625
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
1626
|
+
return ret
|
|
1627
|
+
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
def CollapseGroup(self ,groupBy:'GroupByType'):
|
|
1631
|
+
"""
|
|
1632
|
+
<summary>
|
|
1633
|
+
Collapses current group.
|
|
1634
|
+
<example>The following code illustrates how to remove borders in the Range:
|
|
1635
|
+
<code>
|
|
1636
|
+
//Create worksheet
|
|
1637
|
+
Workbook workbook = new Workbook();
|
|
1638
|
+
workbook.LoadFromFile("Sample.xlsx");
|
|
1639
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1640
|
+
//Collapse group
|
|
1641
|
+
worksheet.Range["A5:A15"].CollapseGroup(GroupByType.ByRows);
|
|
1642
|
+
//Save to file
|
|
1643
|
+
workbook.SaveToFile("CollapseGroup.xlsx");
|
|
1644
|
+
</code>
|
|
1645
|
+
</example>
|
|
1646
|
+
</summary>
|
|
1647
|
+
<param name="groupBy">
|
|
1648
|
+
This parameter specifies whether the grouping should be performed by rows or by columns.
|
|
1649
|
+
</param>
|
|
1650
|
+
"""
|
|
1651
|
+
enumgroupBy:c_int = groupBy.value
|
|
1652
|
+
|
|
1653
|
+
GetDllLibXls().XlsRange_CollapseGroup.argtypes=[c_void_p ,c_int]
|
|
1654
|
+
CallCFunction(GetDllLibXls().XlsRange_CollapseGroup, self.Ptr, enumgroupBy)
|
|
1655
|
+
|
|
1656
|
+
def CopyToClipboard(self):
|
|
1657
|
+
"""
|
|
1658
|
+
|
|
1659
|
+
"""
|
|
1660
|
+
GetDllLibXls().XlsRange_CopyToClipboard.argtypes=[c_void_p]
|
|
1661
|
+
CallCFunction(GetDllLibXls().XlsRange_CopyToClipboard, self.Ptr)
|
|
1662
|
+
|
|
1663
|
+
def Dispose(self):
|
|
1664
|
+
"""
|
|
1665
|
+
|
|
1666
|
+
"""
|
|
1667
|
+
GetDllLibXls().XlsRange_Dispose.argtypes=[c_void_p]
|
|
1668
|
+
CallCFunction(GetDllLibXls().XlsRange_Dispose, self.Ptr)
|
|
1669
|
+
|
|
1670
|
+
@dispatch
|
|
1671
|
+
|
|
1672
|
+
def ExpandGroup(self ,groupBy:GroupByType):
|
|
1673
|
+
"""
|
|
1674
|
+
<summary>
|
|
1675
|
+
Expands current group.
|
|
1676
|
+
<example>The following code illustrates how to expand the group in the Range:
|
|
1677
|
+
<code>
|
|
1678
|
+
//Create worksheet
|
|
1679
|
+
Workbook workbook = new Workbook();
|
|
1680
|
+
workbook.LoadFromFile("Sample.xlsx");
|
|
1681
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1682
|
+
//Expand group with flag set to expand parent
|
|
1683
|
+
worksheet.Range["A5:A15"].ExpandGroup(GroupByType.ByRows);
|
|
1684
|
+
//Save to file
|
|
1685
|
+
workbook.SaveToFile("ExpandGroup.xlsx");
|
|
1686
|
+
</code>
|
|
1687
|
+
</example>
|
|
1688
|
+
</summary>
|
|
1689
|
+
<param name="groupBy">
|
|
1690
|
+
This parameter specifies whether the grouping should be performed by rows or by columns.
|
|
1691
|
+
</param>
|
|
1692
|
+
"""
|
|
1693
|
+
enumgroupBy:c_int = groupBy.value
|
|
1694
|
+
|
|
1695
|
+
GetDllLibXls().XlsRange_ExpandGroup.argtypes=[c_void_p ,c_int]
|
|
1696
|
+
CallCFunction(GetDllLibXls().XlsRange_ExpandGroup, self.Ptr, enumgroupBy)
|
|
1697
|
+
|
|
1698
|
+
@dispatch
|
|
1699
|
+
|
|
1700
|
+
def ExpandGroup(self ,groupBy:GroupByType,flags:ExpandCollapseFlags):
|
|
1701
|
+
"""
|
|
1702
|
+
<summary>
|
|
1703
|
+
Expands current group.
|
|
1704
|
+
<example>The following code illustrates how to perform ExpandGroup in the Range with collapse option:
|
|
1705
|
+
<code>
|
|
1706
|
+
//Create worksheet
|
|
1707
|
+
Workbook workbook = new Workbook();
|
|
1708
|
+
workbook.LoadFromFile("Sample.xlsx");
|
|
1709
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1710
|
+
//Expand group with flag set to expand parent
|
|
1711
|
+
worksheet.Range["A5:A15"].ExpandGroup(GroupByType.ByRows, ExpandCollapseFlags.ExpandParent);
|
|
1712
|
+
//Save to file
|
|
1713
|
+
workbook.SaveToFile("ExpandGroup.xlsx");
|
|
1714
|
+
</code>
|
|
1715
|
+
</example>
|
|
1716
|
+
</summary>
|
|
1717
|
+
<param name="groupBy">
|
|
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>
|
|
1721
|
+
"""
|
|
1722
|
+
enumgroupBy:c_int = groupBy.value
|
|
1723
|
+
enumflags:c_int = flags.value
|
|
1724
|
+
|
|
1725
|
+
GetDllLibXls().XlsRange_ExpandGroupGF.argtypes=[c_void_p ,c_int,c_int]
|
|
1726
|
+
CallCFunction(GetDllLibXls().XlsRange_ExpandGroupGF, self.Ptr, enumgroupBy,enumflags)
|
|
1727
|
+
|
|
1728
|
+
def FreezePanes(self):
|
|
1729
|
+
"""
|
|
1730
|
+
<summary>
|
|
1731
|
+
Freezes panes at the current range in the worksheet. current range should be single cell range.
|
|
1732
|
+
<example>The following code illustrates how to freeze a pane in the Range:
|
|
1733
|
+
<code>
|
|
1734
|
+
//Create worksheet
|
|
1735
|
+
Workbook workbook = new Workbook();
|
|
1736
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1737
|
+
//Applying Freeze Pane to the sheet by specifying a cell
|
|
1738
|
+
worksheet.Range["B2"].FreezePanes();
|
|
1739
|
+
//Save to file
|
|
1740
|
+
workbook.SaveToFile("FreezePanes.xlsx");
|
|
1741
|
+
</code>
|
|
1742
|
+
</example>
|
|
1743
|
+
</summary>
|
|
1744
|
+
"""
|
|
1745
|
+
GetDllLibXls().XlsRange_FreezePanes.argtypes=[c_void_p]
|
|
1746
|
+
CallCFunction(GetDllLibXls().XlsRange_FreezePanes, self.Ptr)
|
|
1747
|
+
|
|
1748
|
+
@property
|
|
1749
|
+
def BooleanValue(self)->bool:
|
|
1750
|
+
"""
|
|
1751
|
+
<summary>
|
|
1752
|
+
Returns or sets the bool value of the specified range.
|
|
1753
|
+
<example>The following code illustrates how to access Boolean property of the Range:
|
|
1754
|
+
<code>
|
|
1755
|
+
//Create worksheet
|
|
1756
|
+
Workbook workbook = new Workbook();
|
|
1757
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1758
|
+
//Set and get BooleanValue
|
|
1759
|
+
worksheet.Range[2, 4].BooleanValue = true;
|
|
1760
|
+
bool boolean = worksheet.Range[2, 4].BooleanValue;
|
|
1761
|
+
</code>
|
|
1762
|
+
</example>
|
|
1763
|
+
</summary>
|
|
1764
|
+
"""
|
|
1765
|
+
GetDllLibXls().XlsRange_get_BooleanValue.argtypes=[c_void_p]
|
|
1766
|
+
GetDllLibXls().XlsRange_get_BooleanValue.restype=c_bool
|
|
1767
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_BooleanValue, self.Ptr)
|
|
1768
|
+
return ret
|
|
1769
|
+
|
|
1770
|
+
@BooleanValue.setter
|
|
1771
|
+
def BooleanValue(self, value:bool):
|
|
1772
|
+
GetDllLibXls().XlsRange_set_BooleanValue.argtypes=[c_void_p, c_bool]
|
|
1773
|
+
CallCFunction(GetDllLibXls().XlsRange_set_BooleanValue, self.Ptr, value)
|
|
1774
|
+
|
|
1775
|
+
@property
|
|
1776
|
+
|
|
1777
|
+
def Borders(self)->'IBorders':
|
|
1778
|
+
"""
|
|
1779
|
+
|
|
1780
|
+
"""
|
|
1781
|
+
from spire.xls.XlsBordersCollection import XlsBordersCollection
|
|
1782
|
+
GetDllLibXls().XlsRange_get_Borders.argtypes=[c_void_p]
|
|
1783
|
+
GetDllLibXls().XlsRange_get_Borders.restype=c_void_p
|
|
1784
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Borders, self.Ptr)
|
|
1785
|
+
ret = None if intPtr==None else XlsBordersCollection(intPtr)
|
|
1786
|
+
return ret
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
@property
|
|
1790
|
+
|
|
1791
|
+
def BuiltInStyle(self)->BuiltInStyles:
|
|
1792
|
+
"""
|
|
1793
|
+
<summary>
|
|
1794
|
+
Gets/sets built in style.
|
|
1795
|
+
<example>The following code illustrates how to access BuiltInStyle property:
|
|
1796
|
+
<code>
|
|
1797
|
+
//Create worksheet
|
|
1798
|
+
Workbook workbook = new Workbook();
|
|
1799
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1800
|
+
//Set text
|
|
1801
|
+
worksheet["C2"].Text = "Sample";
|
|
1802
|
+
//Set built in style
|
|
1803
|
+
worksheet["C2"].BuiltInStyle = BuiltInStyles.Accent3;
|
|
1804
|
+
//Save to file
|
|
1805
|
+
workbook.SaveToFile("BuiltInStyle.xlsx");
|
|
1806
|
+
</code>
|
|
1807
|
+
</example>
|
|
1808
|
+
</summary>
|
|
1809
|
+
"""
|
|
1810
|
+
GetDllLibXls().XlsRange_get_BuiltInStyle.argtypes=[c_void_p]
|
|
1811
|
+
GetDllLibXls().XlsRange_get_BuiltInStyle.restype=c_int
|
|
1812
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_BuiltInStyle, self.Ptr)
|
|
1813
|
+
ret = None if intPtr==None else BuiltInStyles(intPtr)
|
|
1814
|
+
return ret
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
|
|
1818
|
+
@BuiltInStyle.setter
|
|
1819
|
+
def BuiltInStyle(self, value:BuiltInStyles):
|
|
1820
|
+
GetDllLibXls().XlsRange_set_BuiltInStyle.argtypes=[c_void_p, c_int]
|
|
1821
|
+
CallCFunction(GetDllLibXls().XlsRange_set_BuiltInStyle, self.Ptr, value.value)
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
@property
|
|
1825
|
+
|
|
1826
|
+
def Cells(self)->'ListXlsRanges':
|
|
1827
|
+
"""
|
|
1828
|
+
|
|
1829
|
+
"""
|
|
1830
|
+
GetDllLibXls().XlsRange_get_Cells.argtypes=[c_void_p]
|
|
1831
|
+
GetDllLibXls().XlsRange_get_Cells.restype=c_void_p
|
|
1832
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Cells, self.Ptr)
|
|
1833
|
+
ret = None if intPtr==None else ListXlsRanges(intPtr)
|
|
1834
|
+
return ret
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
# @property
|
|
1838
|
+
#
|
|
1839
|
+
# def CellList(self)->'List1':
|
|
1840
|
+
# """
|
|
1841
|
+
#
|
|
1842
|
+
# """
|
|
1843
|
+
# GetDllLibXls().XlsRange_get_CellList.argtypes=[c_void_p]
|
|
1844
|
+
# GetDllLibXls().XlsRange_get_CellList.restype=c_void_p
|
|
1845
|
+
# intPtr = CallCFunction(GetDllLibXls().XlsRange_get_CellList, self.Ptr)
|
|
1846
|
+
# ret = None if intPtr==None else List1(intPtr)
|
|
1847
|
+
# return ret
|
|
1848
|
+
#
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
@property
|
|
1852
|
+
|
|
1853
|
+
def CellStyleName(self)->str:
|
|
1854
|
+
"""
|
|
1855
|
+
<summary>
|
|
1856
|
+
Gets/sets name of the style for the current range.
|
|
1857
|
+
<example>The following code illustrates how to access CellStyleName of the specified range:
|
|
1858
|
+
<code>
|
|
1859
|
+
//Create worksheet
|
|
1860
|
+
Workbook workbook = new Workbook();
|
|
1861
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1862
|
+
//Add and set style
|
|
1863
|
+
CellStyle style = workbook.Styles.Add("CustomStyle");
|
|
1864
|
+
worksheet["C2"].Style = style;
|
|
1865
|
+
//Check Style name
|
|
1866
|
+
Console.Write(worksheet["C2"].CellStyleName);
|
|
1867
|
+
</code>
|
|
1868
|
+
</example>
|
|
1869
|
+
</summary>
|
|
1870
|
+
"""
|
|
1871
|
+
GetDllLibXls().XlsRange_get_CellStyleName.argtypes=[c_void_p]
|
|
1872
|
+
GetDllLibXls().XlsRange_get_CellStyleName.restype=c_void_p
|
|
1873
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_CellStyleName, self.Ptr))
|
|
1874
|
+
return ret
|
|
1875
|
+
|
|
1876
|
+
|
|
1877
|
+
@CellStyleName.setter
|
|
1878
|
+
def CellStyleName(self, value:str):
|
|
1879
|
+
GetDllLibXls().XlsRange_set_CellStyleName.argtypes=[c_void_p, c_wchar_p]
|
|
1880
|
+
CallCFunction(GetDllLibXls().XlsRange_set_CellStyleName, self.Ptr, value)
|
|
1881
|
+
|
|
1882
|
+
@property
|
|
1883
|
+
def Column(self)->int:
|
|
1884
|
+
"""
|
|
1885
|
+
<summary>
|
|
1886
|
+
Returns the number of the first column in the first area in the specified range.
|
|
1887
|
+
<example>The following code illustrates how to access Column property of the Range:
|
|
1888
|
+
<code>
|
|
1889
|
+
//Create worksheet
|
|
1890
|
+
Workbook workbook = new Workbook();
|
|
1891
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1892
|
+
//Get specified column
|
|
1893
|
+
int firstColumn = worksheet["E1:R3"].Column;
|
|
1894
|
+
</code>
|
|
1895
|
+
</example>
|
|
1896
|
+
</summary>
|
|
1897
|
+
"""
|
|
1898
|
+
GetDllLibXls().XlsRange_get_Column.argtypes=[c_void_p]
|
|
1899
|
+
GetDllLibXls().XlsRange_get_Column.restype=c_int
|
|
1900
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_Column, self.Ptr)
|
|
1901
|
+
return ret
|
|
1902
|
+
|
|
1903
|
+
@property
|
|
1904
|
+
def ColumnGroupLevel(self)->int:
|
|
1905
|
+
"""
|
|
1906
|
+
<summary>
|
|
1907
|
+
Column group level.
|
|
1908
|
+
</summary>
|
|
1909
|
+
<remarks>
|
|
1910
|
+
-1 - column group is not same.
|
|
1911
|
+
0 - Not group
|
|
1912
|
+
1 - 7 - group level.
|
|
1913
|
+
</remarks>
|
|
1914
|
+
"""
|
|
1915
|
+
GetDllLibXls().XlsRange_get_ColumnGroupLevel.argtypes=[c_void_p]
|
|
1916
|
+
GetDllLibXls().XlsRange_get_ColumnGroupLevel.restype=c_int
|
|
1917
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_ColumnGroupLevel, self.Ptr)
|
|
1918
|
+
return ret
|
|
1919
|
+
|
|
1920
|
+
@property
|
|
1921
|
+
|
|
1922
|
+
def Columns(self)->'ListXlsRanges':
|
|
1923
|
+
"""
|
|
1924
|
+
|
|
1925
|
+
"""
|
|
1926
|
+
GetDllLibXls().XlsRange_get_Columns.argtypes=[c_void_p]
|
|
1927
|
+
GetDllLibXls().XlsRange_get_Columns.restype=c_void_p
|
|
1928
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Columns, self.Ptr)
|
|
1929
|
+
ret = None if intPtr==None else ListXlsRanges(intPtr)
|
|
1930
|
+
return ret
|
|
1931
|
+
|
|
1932
|
+
|
|
1933
|
+
@property
|
|
1934
|
+
def ColumnWidth(self)->float:
|
|
1935
|
+
"""
|
|
1936
|
+
<summary>
|
|
1937
|
+
Returns or sets the width of all columns in the specified range.
|
|
1938
|
+
<example>The following code illustrates how to set the width of all columns in the specified range:
|
|
1939
|
+
<code>
|
|
1940
|
+
//Create worksheet
|
|
1941
|
+
Workbook workbook = new Workbook();
|
|
1942
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
1943
|
+
//Set the ColumnWidth
|
|
1944
|
+
worksheet["A1"].Text = "This cell contains sample text";
|
|
1945
|
+
worksheet["A1"].ColumnWidth = 25;
|
|
1946
|
+
//Save to file
|
|
1947
|
+
workbook.SaveToFile("ColumnWidth.xlsx");
|
|
1948
|
+
</code>
|
|
1949
|
+
</example>
|
|
1950
|
+
</summary>
|
|
1951
|
+
"""
|
|
1952
|
+
GetDllLibXls().XlsRange_get_ColumnWidth.argtypes=[c_void_p]
|
|
1953
|
+
GetDllLibXls().XlsRange_get_ColumnWidth.restype=c_double
|
|
1954
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_ColumnWidth, self.Ptr)
|
|
1955
|
+
return ret
|
|
1956
|
+
|
|
1957
|
+
@ColumnWidth.setter
|
|
1958
|
+
def ColumnWidth(self, value:float):
|
|
1959
|
+
GetDllLibXls().XlsRange_set_ColumnWidth.argtypes=[c_void_p, c_double]
|
|
1960
|
+
CallCFunction(GetDllLibXls().XlsRange_set_ColumnWidth, self.Ptr, value)
|
|
1961
|
+
|
|
1962
|
+
@property
|
|
1963
|
+
|
|
1964
|
+
def Comment(self)->'ICommentShape':
|
|
1965
|
+
"""
|
|
1966
|
+
<summary>
|
|
1967
|
+
Returns a Comment object that represents the comment associated with the cell in the upper-left corner of the range.
|
|
1968
|
+
</summary>
|
|
1969
|
+
"""
|
|
1970
|
+
GetDllLibXls().XlsRange_get_Comment.argtypes=[c_void_p]
|
|
1971
|
+
GetDllLibXls().XlsRange_get_Comment.restype=c_void_p
|
|
1972
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Comment, self.Ptr)
|
|
1973
|
+
ret = None if intPtr==None else XlsComment(intPtr)
|
|
1974
|
+
return ret
|
|
1975
|
+
|
|
1976
|
+
|
|
1977
|
+
@property
|
|
1978
|
+
|
|
1979
|
+
def ConditionalFormats(self)->'ConditionalFormats':
|
|
1980
|
+
"""
|
|
1981
|
+
|
|
1982
|
+
"""
|
|
1983
|
+
GetDllLibXls().XlsRange_get_ConditionalFormats.argtypes=[c_void_p]
|
|
1984
|
+
GetDllLibXls().XlsRange_get_ConditionalFormats.restype=c_void_p
|
|
1985
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_ConditionalFormats, self.Ptr)
|
|
1986
|
+
ret = None if intPtr==None else ConditionalFormats(intPtr)
|
|
1987
|
+
return ret
|
|
1988
|
+
|
|
1989
|
+
|
|
1990
|
+
@property
|
|
1991
|
+
def Count(self)->int:
|
|
1992
|
+
"""
|
|
1993
|
+
<summary>
|
|
1994
|
+
Returns the number of objects in the collection.
|
|
1995
|
+
</summary>
|
|
1996
|
+
"""
|
|
1997
|
+
GetDllLibXls().XlsRange_get_Count.argtypes=[c_void_p]
|
|
1998
|
+
GetDllLibXls().XlsRange_get_Count.restype=c_int
|
|
1999
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_Count, self.Ptr)
|
|
2000
|
+
return ret
|
|
2001
|
+
|
|
2002
|
+
@property
|
|
2003
|
+
|
|
2004
|
+
def CurrentRegion(self)->'IXLSRange':
|
|
2005
|
+
"""
|
|
2006
|
+
<summary>
|
|
2007
|
+
Get the range associated with a range.
|
|
2008
|
+
</summary>
|
|
2009
|
+
"""
|
|
2010
|
+
GetDllLibXls().XlsRange_get_CurrentRegion.argtypes=[c_void_p]
|
|
2011
|
+
GetDllLibXls().XlsRange_get_CurrentRegion.restype=c_void_p
|
|
2012
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_CurrentRegion, self.Ptr)
|
|
2013
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
2014
|
+
return ret
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
@property
|
|
2018
|
+
|
|
2019
|
+
def DataValidation(self)->'Validation':
|
|
2020
|
+
"""
|
|
2021
|
+
<summary>
|
|
2022
|
+
Get dataValidation of the sheet. Read Only.
|
|
2023
|
+
<example>The following code illustrates how to access DataValidation property of the Range:
|
|
2024
|
+
<code>
|
|
2025
|
+
//Create worksheet
|
|
2026
|
+
Workbook workbook = new Workbook();
|
|
2027
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
2028
|
+
//Data validation for number
|
|
2029
|
+
IDataValidation validation = worksheet.Range["A3"].DataValidation;
|
|
2030
|
+
validation.AllowType = CellDataType.Integer;
|
|
2031
|
+
//Value between 0 to 10
|
|
2032
|
+
validation.CompareOperator = ValidationComparisonOperator.Between;
|
|
2033
|
+
validation.Formula1 = "0";
|
|
2034
|
+
validation.Formula2 = "10";
|
|
2035
|
+
//Save to file
|
|
2036
|
+
workbook.SaveToFile("DataValidation.xlsx");
|
|
2037
|
+
</code>
|
|
2038
|
+
</example>
|
|
2039
|
+
</summary>
|
|
2040
|
+
"""
|
|
2041
|
+
GetDllLibXls().XlsRange_get_DataValidation.argtypes=[c_void_p]
|
|
2042
|
+
GetDllLibXls().XlsRange_get_DataValidation.restype=c_void_p
|
|
2043
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_DataValidation, self.Ptr)
|
|
2044
|
+
ret = None if intPtr==None else Validation(intPtr)
|
|
2045
|
+
return ret
|
|
2046
|
+
|
|
2047
|
+
|
|
2048
|
+
@property
|
|
2049
|
+
|
|
2050
|
+
def DateTimeValue(self)->'DateTime':
|
|
2051
|
+
"""
|
|
2052
|
+
<summary>
|
|
2053
|
+
Gets/sets DateTime value of the range.
|
|
2054
|
+
<example>The following code illustrates how to set and access DateTimeValue property of the Range:
|
|
2055
|
+
<code>
|
|
2056
|
+
//Create worksheet
|
|
2057
|
+
Workbook workbook = new Workbook();
|
|
2058
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
2059
|
+
//Set and get the DateTimeValue of specified range
|
|
2060
|
+
worksheet.Range[2, 4].DateTimeValue = DateTime.Now;
|
|
2061
|
+
DateTime dateTime = worksheet.Range[2, 4].DateTimeValue;
|
|
2062
|
+
//Save to file
|
|
2063
|
+
workbook.SaveToFile("DateTimeValue.xlsx");
|
|
2064
|
+
</code>
|
|
2065
|
+
</example>
|
|
2066
|
+
</summary>
|
|
2067
|
+
"""
|
|
2068
|
+
GetDllLibXls().XlsRange_get_DateTimeValue.argtypes=[c_void_p]
|
|
2069
|
+
GetDllLibXls().XlsRange_get_DateTimeValue.restype=c_void_p
|
|
2070
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_DateTimeValue, self.Ptr)
|
|
2071
|
+
ret = None if intPtr==None else DateTime(intPtr)
|
|
2072
|
+
return ret
|
|
2073
|
+
|
|
2074
|
+
|
|
2075
|
+
@DateTimeValue.setter
|
|
2076
|
+
def DateTimeValue(self, value:'DateTime'):
|
|
2077
|
+
GetDllLibXls().XlsRange_set_DateTimeValue.argtypes=[c_void_p, c_void_p]
|
|
2078
|
+
CallCFunction(GetDllLibXls().XlsRange_set_DateTimeValue, self.Ptr, value.Ptr)
|
|
2079
|
+
|
|
2080
|
+
@property
|
|
2081
|
+
|
|
2082
|
+
def EndCell(self)->'IXLSRange':
|
|
2083
|
+
"""
|
|
2084
|
+
|
|
2085
|
+
"""
|
|
2086
|
+
GetDllLibXls().XlsRange_get_EndCell.argtypes=[c_void_p]
|
|
2087
|
+
GetDllLibXls().XlsRange_get_EndCell.restype=c_void_p
|
|
2088
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_EndCell, self.Ptr)
|
|
2089
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
2090
|
+
return ret
|
|
2091
|
+
|
|
2092
|
+
|
|
2093
|
+
@property
|
|
2094
|
+
|
|
2095
|
+
def EntireColumn(self)->'IXLSRange':
|
|
2096
|
+
"""
|
|
2097
|
+
|
|
2098
|
+
"""
|
|
2099
|
+
GetDllLibXls().XlsRange_get_EntireColumn.argtypes=[c_void_p]
|
|
2100
|
+
GetDllLibXls().XlsRange_get_EntireColumn.restype=c_void_p
|
|
2101
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_EntireColumn, self.Ptr)
|
|
2102
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
2103
|
+
return ret
|
|
2104
|
+
|
|
2105
|
+
|
|
2106
|
+
@property
|
|
2107
|
+
|
|
2108
|
+
def EntireRow(self)->'IXLSRange':
|
|
2109
|
+
"""
|
|
2110
|
+
<summary>
|
|
2111
|
+
Returns a Range object that represents the entire row (or
|
|
2112
|
+
rows) that contains the specified range. Read-only.
|
|
2113
|
+
</summary>
|
|
2114
|
+
"""
|
|
2115
|
+
GetDllLibXls().XlsRange_get_EntireRow.argtypes=[c_void_p]
|
|
2116
|
+
GetDllLibXls().XlsRange_get_EntireRow.restype=c_void_p
|
|
2117
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_EntireRow, self.Ptr)
|
|
2118
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
2119
|
+
return ret
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
@property
|
|
2123
|
+
|
|
2124
|
+
def EnvalutedValue(self)->str:
|
|
2125
|
+
"""
|
|
2126
|
+
<summary>
|
|
2127
|
+
Returns the calculated value of a formula.
|
|
2128
|
+
<example>The following code illustrates how to access a calculated value:
|
|
2129
|
+
<code>
|
|
2130
|
+
//Create worksheet
|
|
2131
|
+
Workbook workbook = new Workbook();
|
|
2132
|
+
workbook.LoadFromFile("Sample.xlsx");
|
|
2133
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
2134
|
+
//Returns the calculated value of a formula using the most current inputs
|
|
2135
|
+
string calculatedValue = worksheet["C1"].EnvalutedValue;
|
|
2136
|
+
Console.WriteLine(calculatedValue);
|
|
2137
|
+
</code>
|
|
2138
|
+
</example>
|
|
2139
|
+
</summary>
|
|
2140
|
+
"""
|
|
2141
|
+
GetDllLibXls().XlsRange_get_EnvalutedValue.argtypes=[c_void_p]
|
|
2142
|
+
GetDllLibXls().XlsRange_get_EnvalutedValue.restype=c_void_p
|
|
2143
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_EnvalutedValue, self.Ptr))
|
|
2144
|
+
return ret
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
@property
|
|
2148
|
+
|
|
2149
|
+
def ErrorValue(self)->str:
|
|
2150
|
+
"""
|
|
2151
|
+
<summary>
|
|
2152
|
+
Gets or sets error value of this range.
|
|
2153
|
+
</summary>
|
|
2154
|
+
"""
|
|
2155
|
+
GetDllLibXls().XlsRange_get_ErrorValue.argtypes=[c_void_p]
|
|
2156
|
+
GetDllLibXls().XlsRange_get_ErrorValue.restype=c_void_p
|
|
2157
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_ErrorValue, self.Ptr))
|
|
2158
|
+
return ret
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
@ErrorValue.setter
|
|
2162
|
+
def ErrorValue(self, value:str):
|
|
2163
|
+
GetDllLibXls().XlsRange_set_ErrorValue.argtypes=[c_void_p, c_wchar_p]
|
|
2164
|
+
CallCFunction(GetDllLibXls().XlsRange_set_ErrorValue, self.Ptr, value)
|
|
2165
|
+
|
|
2166
|
+
@property
|
|
2167
|
+
|
|
2168
|
+
def Formula(self)->str:
|
|
2169
|
+
"""
|
|
2170
|
+
<summary>
|
|
2171
|
+
Returns or sets the object's formula in A1-style notation and in
|
|
2172
|
+
the language of the macro.
|
|
2173
|
+
</summary>
|
|
2174
|
+
"""
|
|
2175
|
+
GetDllLibXls().XlsRange_get_Formula.argtypes=[c_void_p]
|
|
2176
|
+
GetDllLibXls().XlsRange_get_Formula.restype=c_void_p
|
|
2177
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_Formula, self.Ptr))
|
|
2178
|
+
return ret
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
@Formula.setter
|
|
2182
|
+
def Formula(self, value:str):
|
|
2183
|
+
GetDllLibXls().XlsRange_set_Formula.argtypes=[c_void_p, c_wchar_p]
|
|
2184
|
+
CallCFunction(GetDllLibXls().XlsRange_set_Formula, self.Ptr, value)
|
|
2185
|
+
|
|
2186
|
+
@property
|
|
2187
|
+
|
|
2188
|
+
def FormulaArray(self)->str:
|
|
2189
|
+
"""
|
|
2190
|
+
<summary>
|
|
2191
|
+
Returns or sets the array formula of a range.
|
|
2192
|
+
<example>The following code illustrates how to set and access FormulaArray property of the range:
|
|
2193
|
+
<code>
|
|
2194
|
+
//Create worksheet
|
|
2195
|
+
Workbook workbook = new Workbook();
|
|
2196
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
2197
|
+
//Assign array formula
|
|
2198
|
+
worksheet.Range["A1:D1"].FormulaArray = "{1,2,3,4}";
|
|
2199
|
+
//Adding a named range for the range A1 to D1
|
|
2200
|
+
worksheet.Names.Add("ArrayRange", worksheet.Range["A1:D1"]);
|
|
2201
|
+
//Assign formula array with named range
|
|
2202
|
+
worksheet.Range["A2:D2"].FormulaArray = "ArrayRange+100";
|
|
2203
|
+
//Save to file
|
|
2204
|
+
workbook.SaveToFile("FormulaArray.xlsx");
|
|
2205
|
+
</code>
|
|
2206
|
+
</example>
|
|
2207
|
+
</summary>
|
|
2208
|
+
"""
|
|
2209
|
+
GetDllLibXls().XlsRange_get_FormulaArray.argtypes=[c_void_p]
|
|
2210
|
+
GetDllLibXls().XlsRange_get_FormulaArray.restype=c_void_p
|
|
2211
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_FormulaArray, self.Ptr))
|
|
2212
|
+
return ret
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
@FormulaArray.setter
|
|
2216
|
+
def FormulaArray(self, value:str):
|
|
2217
|
+
GetDllLibXls().XlsRange_set_FormulaArray.argtypes=[c_void_p, c_wchar_p]
|
|
2218
|
+
CallCFunction(GetDllLibXls().XlsRange_set_FormulaArray, self.Ptr, value)
|
|
2219
|
+
|
|
2220
|
+
@property
|
|
2221
|
+
|
|
2222
|
+
def FormulaArrayR1C1(self)->str:
|
|
2223
|
+
"""
|
|
2224
|
+
<summary>
|
|
2225
|
+
Returns or sets the formula for the object, using R1C1-style notation in the language of the macro
|
|
2226
|
+
</summary>
|
|
2227
|
+
"""
|
|
2228
|
+
GetDllLibXls().XlsRange_get_FormulaArrayR1C1.argtypes=[c_void_p]
|
|
2229
|
+
GetDllLibXls().XlsRange_get_FormulaArrayR1C1.restype=c_void_p
|
|
2230
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_FormulaArrayR1C1, self.Ptr))
|
|
2231
|
+
return ret
|
|
2232
|
+
|
|
2233
|
+
|
|
2234
|
+
@FormulaArrayR1C1.setter
|
|
2235
|
+
def FormulaArrayR1C1(self, value:str):
|
|
2236
|
+
GetDllLibXls().XlsRange_set_FormulaArrayR1C1.argtypes=[c_void_p, c_wchar_p]
|
|
2237
|
+
CallCFunction(GetDllLibXls().XlsRange_set_FormulaArrayR1C1, self.Ptr, value)
|
|
2238
|
+
|
|
2239
|
+
@property
|
|
2240
|
+
def FormulaBoolValue(self)->bool:
|
|
2241
|
+
"""
|
|
2242
|
+
|
|
2243
|
+
"""
|
|
2244
|
+
GetDllLibXls().XlsRange_get_FormulaBoolValue.argtypes=[c_void_p]
|
|
2245
|
+
GetDllLibXls().XlsRange_get_FormulaBoolValue.restype=c_bool
|
|
2246
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_FormulaBoolValue, self.Ptr)
|
|
2247
|
+
return ret
|
|
2248
|
+
|
|
2249
|
+
@FormulaBoolValue.setter
|
|
2250
|
+
def FormulaBoolValue(self, value:bool):
|
|
2251
|
+
GetDllLibXls().XlsRange_set_FormulaBoolValue.argtypes=[c_void_p, c_bool]
|
|
2252
|
+
CallCFunction(GetDllLibXls().XlsRange_set_FormulaBoolValue, self.Ptr, value)
|
|
2253
|
+
|
|
2254
|
+
@property
|
|
2255
|
+
|
|
2256
|
+
def FormulaDateTime(self)->'DateTime':
|
|
2257
|
+
"""
|
|
2258
|
+
<summary>
|
|
2259
|
+
Gets or sets bool value of the formula.
|
|
2260
|
+
</summary>
|
|
2261
|
+
"""
|
|
2262
|
+
GetDllLibXls().XlsRange_get_FormulaDateTime.argtypes=[c_void_p]
|
|
2263
|
+
GetDllLibXls().XlsRange_get_FormulaDateTime.restype=c_void_p
|
|
2264
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_FormulaDateTime, self.Ptr)
|
|
2265
|
+
ret = None if intPtr==None else DateTime(intPtr)
|
|
2266
|
+
return ret
|
|
2267
|
+
|
|
2268
|
+
|
|
2269
|
+
@FormulaDateTime.setter
|
|
2270
|
+
def FormulaDateTime(self, value:'DateTime'):
|
|
2271
|
+
GetDllLibXls().XlsRange_set_FormulaDateTime.argtypes=[c_void_p, c_void_p]
|
|
2272
|
+
CallCFunction(GetDllLibXls().XlsRange_set_FormulaDateTime, self.Ptr, value.Ptr)
|
|
2273
|
+
|
|
2274
|
+
@property
|
|
2275
|
+
|
|
2276
|
+
def FormulaErrorValue(self)->str:
|
|
2277
|
+
"""
|
|
2278
|
+
<summary>
|
|
2279
|
+
Gets or sets error value of the formula.
|
|
2280
|
+
</summary>
|
|
2281
|
+
"""
|
|
2282
|
+
GetDllLibXls().XlsRange_get_FormulaErrorValue.argtypes=[c_void_p]
|
|
2283
|
+
GetDllLibXls().XlsRange_get_FormulaErrorValue.restype=c_void_p
|
|
2284
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_FormulaErrorValue, self.Ptr))
|
|
2285
|
+
return ret
|
|
2286
|
+
|
|
2287
|
+
|
|
2288
|
+
@FormulaErrorValue.setter
|
|
2289
|
+
def FormulaErrorValue(self, value:str):
|
|
2290
|
+
GetDllLibXls().XlsRange_set_FormulaErrorValue.argtypes=[c_void_p, c_wchar_p]
|
|
2291
|
+
CallCFunction(GetDllLibXls().XlsRange_set_FormulaErrorValue, self.Ptr, value)
|
|
2292
|
+
|
|
2293
|
+
@property
|
|
2294
|
+
def FormulaNumberValue(self)->float:
|
|
2295
|
+
"""
|
|
2296
|
+
<summary>
|
|
2297
|
+
Gets or sets double value of the formula.
|
|
2298
|
+
</summary>
|
|
2299
|
+
"""
|
|
2300
|
+
GetDllLibXls().XlsRange_get_FormulaNumberValue.argtypes=[c_void_p]
|
|
2301
|
+
GetDllLibXls().XlsRange_get_FormulaNumberValue.restype=c_double
|
|
2302
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_FormulaNumberValue, self.Ptr)
|
|
2303
|
+
return ret
|
|
2304
|
+
|
|
2305
|
+
@FormulaNumberValue.setter
|
|
2306
|
+
def FormulaNumberValue(self, value:float):
|
|
2307
|
+
GetDllLibXls().XlsRange_set_FormulaNumberValue.argtypes=[c_void_p, c_double]
|
|
2308
|
+
CallCFunction(GetDllLibXls().XlsRange_set_FormulaNumberValue, self.Ptr, value)
|
|
2309
|
+
|
|
2310
|
+
@property
|
|
2311
|
+
|
|
2312
|
+
def FormulaR1C1(self)->str:
|
|
2313
|
+
"""
|
|
2314
|
+
<summary>
|
|
2315
|
+
Returns or sets the formula for the object, using R1C1-style notation in the language of the macro
|
|
2316
|
+
</summary>
|
|
2317
|
+
"""
|
|
2318
|
+
GetDllLibXls().XlsRange_get_FormulaR1C1.argtypes=[c_void_p]
|
|
2319
|
+
GetDllLibXls().XlsRange_get_FormulaR1C1.restype=c_void_p
|
|
2320
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_FormulaR1C1, self.Ptr))
|
|
2321
|
+
return ret
|
|
2322
|
+
|
|
2323
|
+
|
|
2324
|
+
@FormulaR1C1.setter
|
|
2325
|
+
def FormulaR1C1(self, value:str):
|
|
2326
|
+
GetDllLibXls().XlsRange_set_FormulaR1C1.argtypes=[c_void_p, c_wchar_p]
|
|
2327
|
+
CallCFunction(GetDllLibXls().XlsRange_set_FormulaR1C1, self.Ptr, value)
|
|
2328
|
+
|
|
2329
|
+
@property
|
|
2330
|
+
|
|
2331
|
+
def FormulaStringValue(self)->str:
|
|
2332
|
+
"""
|
|
2333
|
+
<summary>
|
|
2334
|
+
Gets or sets string value of the range.
|
|
2335
|
+
</summary>
|
|
2336
|
+
"""
|
|
2337
|
+
GetDllLibXls().XlsRange_get_FormulaStringValue.argtypes=[c_void_p]
|
|
2338
|
+
GetDllLibXls().XlsRange_get_FormulaStringValue.restype=c_void_p
|
|
2339
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_FormulaStringValue, self.Ptr))
|
|
2340
|
+
return ret
|
|
2341
|
+
|
|
2342
|
+
|
|
2343
|
+
@FormulaStringValue.setter
|
|
2344
|
+
def FormulaStringValue(self, value:str):
|
|
2345
|
+
GetDllLibXls().XlsRange_set_FormulaStringValue.argtypes=[c_void_p, c_wchar_p]
|
|
2346
|
+
CallCFunction(GetDllLibXls().XlsRange_set_FormulaStringValue, self.Ptr, value)
|
|
2347
|
+
|
|
2348
|
+
@property
|
|
2349
|
+
|
|
2350
|
+
def FormulaValue(self)->'str':
|
|
2351
|
+
"""
|
|
2352
|
+
<summary>
|
|
2353
|
+
Gets formula value.
|
|
2354
|
+
</summary>
|
|
2355
|
+
"""
|
|
2356
|
+
GetDllLibXls().XlsRange_get_FormulaValue.argtypes=[c_void_p]
|
|
2357
|
+
GetDllLibXls().XlsRange_get_FormulaValue.restype=c_void_p
|
|
2358
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_FormulaValue, self.Ptr)
|
|
2359
|
+
ret = None if intPtr==None else PtrToStr(intPtr)
|
|
2360
|
+
return ret
|
|
2361
|
+
|
|
2362
|
+
|
|
2363
|
+
@property
|
|
2364
|
+
def HasBoolean(self)->bool:
|
|
2365
|
+
"""
|
|
2366
|
+
<summary>
|
|
2367
|
+
Indicates whether range contains bool value.
|
|
2368
|
+
<example>The following code illustrates how to set and access HasBoolean property of the Range:
|
|
2369
|
+
<code>
|
|
2370
|
+
//Create worksheet
|
|
2371
|
+
Workbook workbook = new Workbook();
|
|
2372
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
2373
|
+
//Assigning Value2 property of the Range
|
|
2374
|
+
worksheet["A3"].Value2 = false;
|
|
2375
|
+
//Checking Range types
|
|
2376
|
+
bool isboolean = worksheet["A3"].HasBoolean;
|
|
2377
|
+
//Save to file
|
|
2378
|
+
workbook.SaveToFile("HasBoolean.xlsx");
|
|
2379
|
+
</code>
|
|
2380
|
+
</example>
|
|
2381
|
+
</summary>
|
|
2382
|
+
"""
|
|
2383
|
+
GetDllLibXls().XlsRange_get_HasBoolean.argtypes=[c_void_p]
|
|
2384
|
+
GetDllLibXls().XlsRange_get_HasBoolean.restype=c_bool
|
|
2385
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasBoolean, self.Ptr)
|
|
2386
|
+
return ret
|
|
2387
|
+
|
|
2388
|
+
@property
|
|
2389
|
+
def HasComment(self)->bool:
|
|
2390
|
+
"""
|
|
2391
|
+
|
|
2392
|
+
"""
|
|
2393
|
+
GetDllLibXls().XlsRange_get_HasComment.argtypes=[c_void_p]
|
|
2394
|
+
GetDllLibXls().XlsRange_get_HasComment.restype=c_bool
|
|
2395
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasComment, self.Ptr)
|
|
2396
|
+
return ret
|
|
2397
|
+
|
|
2398
|
+
@property
|
|
2399
|
+
def ColumnCount(self)->int:
|
|
2400
|
+
"""
|
|
2401
|
+
<summary>
|
|
2402
|
+
Gets number of columns.
|
|
2403
|
+
</summary>
|
|
2404
|
+
"""
|
|
2405
|
+
GetDllLibXls().XlsRange_get_ColumnCount.argtypes=[c_void_p]
|
|
2406
|
+
GetDllLibXls().XlsRange_get_ColumnCount.restype=c_int
|
|
2407
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_ColumnCount, self.Ptr)
|
|
2408
|
+
return ret
|
|
2409
|
+
|
|
2410
|
+
@property
|
|
2411
|
+
def RowCount(self)->int:
|
|
2412
|
+
"""
|
|
2413
|
+
<summary>
|
|
2414
|
+
Gets number of rows.
|
|
2415
|
+
</summary>
|
|
2416
|
+
"""
|
|
2417
|
+
GetDllLibXls().XlsRange_get_RowCount.argtypes=[c_void_p]
|
|
2418
|
+
GetDllLibXls().XlsRange_get_RowCount.restype=c_int
|
|
2419
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_RowCount, self.Ptr)
|
|
2420
|
+
return ret
|
|
2421
|
+
|
|
2422
|
+
@property
|
|
2423
|
+
def HasDataValidation(self)->bool:
|
|
2424
|
+
"""
|
|
2425
|
+
<summary>
|
|
2426
|
+
Indicates whether specified range object has data validation.
|
|
2427
|
+
If Range is not single cell, then returns true only if all cells have data validation. Read-only.
|
|
2428
|
+
</summary>
|
|
2429
|
+
"""
|
|
2430
|
+
GetDllLibXls().XlsRange_get_HasDataValidation.argtypes=[c_void_p]
|
|
2431
|
+
GetDllLibXls().XlsRange_get_HasDataValidation.restype=c_bool
|
|
2432
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasDataValidation, self.Ptr)
|
|
2433
|
+
return ret
|
|
2434
|
+
|
|
2435
|
+
@property
|
|
2436
|
+
def HasDateTime(self)->bool:
|
|
2437
|
+
"""
|
|
2438
|
+
<summary>
|
|
2439
|
+
Determines if all cells in the range contain datetime.
|
|
2440
|
+
<example>The following code illustrates how to set and access HasDateTime property of the Range:
|
|
2441
|
+
<code>
|
|
2442
|
+
//Create worksheet
|
|
2443
|
+
Workbook workbook = new Workbook();
|
|
2444
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
2445
|
+
//Assigning Value2 property of the Range
|
|
2446
|
+
worksheet["A1"].Value2 = DateTime.Now;
|
|
2447
|
+
//Checking Range types
|
|
2448
|
+
bool isDateTime = worksheet["A1"].HasDateTime;
|
|
2449
|
+
//Save to file
|
|
2450
|
+
workbook.SaveToFile("HasDateTime.xlsx");
|
|
2451
|
+
</code>
|
|
2452
|
+
</example>
|
|
2453
|
+
</summary>
|
|
2454
|
+
"""
|
|
2455
|
+
GetDllLibXls().XlsRange_get_HasDateTime.argtypes=[c_void_p]
|
|
2456
|
+
GetDllLibXls().XlsRange_get_HasDateTime.restype=c_bool
|
|
2457
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasDateTime, self.Ptr)
|
|
2458
|
+
return ret
|
|
2459
|
+
|
|
2460
|
+
@property
|
|
2461
|
+
def HasError(self)->bool:
|
|
2462
|
+
"""
|
|
2463
|
+
<summary>
|
|
2464
|
+
Indicates whether range contains error value.
|
|
2465
|
+
</summary>
|
|
2466
|
+
"""
|
|
2467
|
+
GetDllLibXls().XlsRange_get_HasError.argtypes=[c_void_p]
|
|
2468
|
+
GetDllLibXls().XlsRange_get_HasError.restype=c_bool
|
|
2469
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasError, self.Ptr)
|
|
2470
|
+
return ret
|
|
2471
|
+
|
|
2472
|
+
@property
|
|
2473
|
+
def HasExternalFormula(self)->bool:
|
|
2474
|
+
"""
|
|
2475
|
+
<summary>
|
|
2476
|
+
Check if the formula in the range has external links. Read-only.
|
|
2477
|
+
</summary>
|
|
2478
|
+
"""
|
|
2479
|
+
GetDllLibXls().XlsRange_get_HasExternalFormula.argtypes=[c_void_p]
|
|
2480
|
+
GetDllLibXls().XlsRange_get_HasExternalFormula.restype=c_bool
|
|
2481
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasExternalFormula, self.Ptr)
|
|
2482
|
+
return ret
|
|
2483
|
+
|
|
2484
|
+
@property
|
|
2485
|
+
def HasFormula(self)->bool:
|
|
2486
|
+
"""
|
|
2487
|
+
<summary>
|
|
2488
|
+
True if all cells in the range contain formulas;
|
|
2489
|
+
</summary>
|
|
2490
|
+
"""
|
|
2491
|
+
GetDllLibXls().XlsRange_get_HasFormula.argtypes=[c_void_p]
|
|
2492
|
+
GetDllLibXls().XlsRange_get_HasFormula.restype=c_bool
|
|
2493
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasFormula, self.Ptr)
|
|
2494
|
+
return ret
|
|
2495
|
+
|
|
2496
|
+
@property
|
|
2497
|
+
def HasFormulaArray(self)->bool:
|
|
2498
|
+
"""
|
|
2499
|
+
<summary>
|
|
2500
|
+
Determines if all cells in the range contain array-entered formula.
|
|
2501
|
+
</summary>
|
|
2502
|
+
"""
|
|
2503
|
+
GetDllLibXls().XlsRange_get_HasFormulaArray.argtypes=[c_void_p]
|
|
2504
|
+
GetDllLibXls().XlsRange_get_HasFormulaArray.restype=c_bool
|
|
2505
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasFormulaArray, self.Ptr)
|
|
2506
|
+
return ret
|
|
2507
|
+
|
|
2508
|
+
@property
|
|
2509
|
+
def HasFormulaBoolValue(self)->bool:
|
|
2510
|
+
"""
|
|
2511
|
+
<summary>
|
|
2512
|
+
Determines if all cells in the range contain formula bool value..
|
|
2513
|
+
</summary>
|
|
2514
|
+
"""
|
|
2515
|
+
GetDllLibXls().XlsRange_get_HasFormulaBoolValue.argtypes=[c_void_p]
|
|
2516
|
+
GetDllLibXls().XlsRange_get_HasFormulaBoolValue.restype=c_bool
|
|
2517
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasFormulaBoolValue, self.Ptr)
|
|
2518
|
+
return ret
|
|
2519
|
+
|
|
2520
|
+
@property
|
|
2521
|
+
def HasFormulaDateTime(self)->bool:
|
|
2522
|
+
"""
|
|
2523
|
+
<summary>
|
|
2524
|
+
Indicates if current range has formula value formatted as DateTime. Read-only.
|
|
2525
|
+
</summary>
|
|
2526
|
+
"""
|
|
2527
|
+
GetDllLibXls().XlsRange_get_HasFormulaDateTime.argtypes=[c_void_p]
|
|
2528
|
+
GetDllLibXls().XlsRange_get_HasFormulaDateTime.restype=c_bool
|
|
2529
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasFormulaDateTime, self.Ptr)
|
|
2530
|
+
return ret
|
|
2531
|
+
|
|
2532
|
+
@property
|
|
2533
|
+
def HasFormulaErrorValue(self)->bool:
|
|
2534
|
+
"""
|
|
2535
|
+
<summary>
|
|
2536
|
+
Determines if all cells in the range contain error value.
|
|
2537
|
+
</summary>
|
|
2538
|
+
"""
|
|
2539
|
+
GetDllLibXls().XlsRange_get_HasFormulaErrorValue.argtypes=[c_void_p]
|
|
2540
|
+
GetDllLibXls().XlsRange_get_HasFormulaErrorValue.restype=c_bool
|
|
2541
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasFormulaErrorValue, self.Ptr)
|
|
2542
|
+
return ret
|
|
2543
|
+
|
|
2544
|
+
@property
|
|
2545
|
+
def HasFormulaNumberValue(self)->bool:
|
|
2546
|
+
"""
|
|
2547
|
+
<summary>
|
|
2548
|
+
Indicates whether current range has formula number value.
|
|
2549
|
+
</summary>
|
|
2550
|
+
"""
|
|
2551
|
+
GetDllLibXls().XlsRange_get_HasFormulaNumberValue.argtypes=[c_void_p]
|
|
2552
|
+
GetDllLibXls().XlsRange_get_HasFormulaNumberValue.restype=c_bool
|
|
2553
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasFormulaNumberValue, self.Ptr)
|
|
2554
|
+
return ret
|
|
2555
|
+
|
|
2556
|
+
@property
|
|
2557
|
+
def HasFormulaStringValue(self)->bool:
|
|
2558
|
+
"""
|
|
2559
|
+
|
|
2560
|
+
"""
|
|
2561
|
+
GetDllLibXls().XlsRange_get_HasFormulaStringValue.argtypes=[c_void_p]
|
|
2562
|
+
GetDllLibXls().XlsRange_get_HasFormulaStringValue.restype=c_bool
|
|
2563
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasFormulaStringValue, self.Ptr)
|
|
2564
|
+
return ret
|
|
2565
|
+
|
|
2566
|
+
@property
|
|
2567
|
+
def HasMerged(self)->bool:
|
|
2568
|
+
"""
|
|
2569
|
+
<summary>
|
|
2570
|
+
Indicates whether this range is part of merged range.
|
|
2571
|
+
<example>The following code illustrates how to access HasMerged property:
|
|
2572
|
+
<code>
|
|
2573
|
+
//Create worksheet
|
|
2574
|
+
Workbook workbook = new Workbook();
|
|
2575
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
2576
|
+
//Set text
|
|
2577
|
+
worksheet["A1"].Text = "Sample text in cell";
|
|
2578
|
+
//Set merge
|
|
2579
|
+
worksheet["A1:B1"].Merge();
|
|
2580
|
+
//Check merge
|
|
2581
|
+
Console.Write(worksheet["A1:B1"].HasMerged);
|
|
2582
|
+
</code>
|
|
2583
|
+
</example>
|
|
2584
|
+
</summary>
|
|
2585
|
+
"""
|
|
2586
|
+
GetDllLibXls().XlsRange_get_HasMerged.argtypes=[c_void_p]
|
|
2587
|
+
GetDllLibXls().XlsRange_get_HasMerged.restype=c_bool
|
|
2588
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasMerged, self.Ptr)
|
|
2589
|
+
return ret
|
|
2590
|
+
|
|
2591
|
+
@property
|
|
2592
|
+
def HasNumber(self)->bool:
|
|
2593
|
+
"""
|
|
2594
|
+
<summary>
|
|
2595
|
+
Determines if any one cell in the range contain number.
|
|
2596
|
+
<example>The following code illustrates how to set and access Value2 property of the Range:
|
|
2597
|
+
<code>
|
|
2598
|
+
//Create worksheet
|
|
2599
|
+
Workbook workbook = new Workbook();
|
|
2600
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
2601
|
+
//Assigning Value2 property of the Range
|
|
2602
|
+
worksheet["A2"].Value2 = 45;
|
|
2603
|
+
//Checking Range types
|
|
2604
|
+
bool isNumber = worksheet["A2"].HasNumber;
|
|
2605
|
+
//Save to file
|
|
2606
|
+
workbook.SaveToFile("HasNumber.xlsx");
|
|
2607
|
+
</code>
|
|
2608
|
+
</example>
|
|
2609
|
+
</summary>
|
|
2610
|
+
"""
|
|
2611
|
+
GetDllLibXls().XlsRange_get_HasNumber.argtypes=[c_void_p]
|
|
2612
|
+
GetDllLibXls().XlsRange_get_HasNumber.restype=c_bool
|
|
2613
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasNumber, self.Ptr)
|
|
2614
|
+
return ret
|
|
2615
|
+
|
|
2616
|
+
@property
|
|
2617
|
+
def HasPictures(self)->bool:
|
|
2618
|
+
"""
|
|
2619
|
+
<summary>
|
|
2620
|
+
Indicates whether the range is blank.
|
|
2621
|
+
</summary>
|
|
2622
|
+
"""
|
|
2623
|
+
GetDllLibXls().XlsRange_get_HasPictures.argtypes=[c_void_p]
|
|
2624
|
+
GetDllLibXls().XlsRange_get_HasPictures.restype=c_bool
|
|
2625
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasPictures, self.Ptr)
|
|
2626
|
+
return ret
|
|
2627
|
+
|
|
2628
|
+
@property
|
|
2629
|
+
def HasRichText(self)->bool:
|
|
2630
|
+
"""
|
|
2631
|
+
<summary>
|
|
2632
|
+
Determines if all cells in the range contain rich text string.
|
|
2633
|
+
<example>The following code illustrates how to access HasRichText property:
|
|
2634
|
+
<code>
|
|
2635
|
+
//Create worksheet
|
|
2636
|
+
Workbook workbook = new Workbook();
|
|
2637
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
2638
|
+
//Create style
|
|
2639
|
+
IStyle style = workbook.Styles.Add("CustomStyle");
|
|
2640
|
+
//Set rich text
|
|
2641
|
+
IRichTextString richText = worksheet["C2"].RichText;
|
|
2642
|
+
richText.Text = "Sample";
|
|
2643
|
+
IFont font = style.Font;
|
|
2644
|
+
font.Color = Color.Red;
|
|
2645
|
+
richText.SetFont(0, 5, font);
|
|
2646
|
+
//Check HasRichText
|
|
2647
|
+
Console.Write(worksheet["C2"].HasRichText);
|
|
2648
|
+
//Save to file
|
|
2649
|
+
workbook.SaveToFile("HasRichText.xlsx");
|
|
2650
|
+
</code>
|
|
2651
|
+
</example>
|
|
2652
|
+
</summary>
|
|
2653
|
+
"""
|
|
2654
|
+
GetDllLibXls().XlsRange_get_HasRichText.argtypes=[c_void_p]
|
|
2655
|
+
GetDllLibXls().XlsRange_get_HasRichText.restype=c_bool
|
|
2656
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasRichText, self.Ptr)
|
|
2657
|
+
return ret
|
|
2658
|
+
|
|
2659
|
+
@property
|
|
2660
|
+
def HasString(self)->bool:
|
|
2661
|
+
"""
|
|
2662
|
+
<summary>
|
|
2663
|
+
Determines if all cells in the range contain string.
|
|
2664
|
+
</summary>
|
|
2665
|
+
"""
|
|
2666
|
+
GetDllLibXls().XlsRange_get_HasString.argtypes=[c_void_p]
|
|
2667
|
+
GetDllLibXls().XlsRange_get_HasString.restype=c_bool
|
|
2668
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasString, self.Ptr)
|
|
2669
|
+
return ret
|
|
2670
|
+
|
|
2671
|
+
@property
|
|
2672
|
+
def HasStyle(self)->bool:
|
|
2673
|
+
"""
|
|
2674
|
+
<summary>
|
|
2675
|
+
Determines if all cells in the range contain differs from default style.
|
|
2676
|
+
<example>The following code illustrates how to access HasStyle property:
|
|
2677
|
+
<code>
|
|
2678
|
+
//Create worksheet
|
|
2679
|
+
Workbook workbook = new Workbook();
|
|
2680
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
2681
|
+
//Add style
|
|
2682
|
+
CellStyle style = workbook.Styles.Add("CustomStyle");
|
|
2683
|
+
//Set color and style
|
|
2684
|
+
style.Color = Color.Red;
|
|
2685
|
+
worksheet["C2"].Style = style;
|
|
2686
|
+
//Check HasStyle
|
|
2687
|
+
Console.Write(worksheet["C2"].HasStyle);
|
|
2688
|
+
//Save to file
|
|
2689
|
+
workbook.SaveToFile("HasStyle.xlsx");
|
|
2690
|
+
</code>
|
|
2691
|
+
</example>
|
|
2692
|
+
</summary>
|
|
2693
|
+
"""
|
|
2694
|
+
GetDllLibXls().XlsRange_get_HasStyle.argtypes=[c_void_p]
|
|
2695
|
+
GetDllLibXls().XlsRange_get_HasStyle.restype=c_bool
|
|
2696
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasStyle, self.Ptr)
|
|
2697
|
+
return ret
|
|
2698
|
+
|
|
2699
|
+
@property
|
|
2700
|
+
|
|
2701
|
+
def HorizontalAlignment(self)->'HorizontalAlignType':
|
|
2702
|
+
"""
|
|
2703
|
+
<summary>
|
|
2704
|
+
Returns or sets the horizontal alignment for the specified object.
|
|
2705
|
+
<example>The following code illustrates how to set and access HasStyle property:
|
|
2706
|
+
<code>
|
|
2707
|
+
//Create worksheet
|
|
2708
|
+
Workbook workbook = new Workbook();
|
|
2709
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
2710
|
+
//Set text
|
|
2711
|
+
worksheet["A1"].Text = "Test";
|
|
2712
|
+
//Set alignment
|
|
2713
|
+
worksheet["A1"].HorizontalAlignment = HorizontalAlignType.Right;
|
|
2714
|
+
//Save to file
|
|
2715
|
+
workbook.SaveToFile("HorizontalAlignment.xlsx");
|
|
2716
|
+
</code>
|
|
2717
|
+
</example>
|
|
2718
|
+
</summary>
|
|
2719
|
+
"""
|
|
2720
|
+
GetDllLibXls().XlsRange_get_HorizontalAlignment.argtypes=[c_void_p]
|
|
2721
|
+
GetDllLibXls().XlsRange_get_HorizontalAlignment.restype=c_int
|
|
2722
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HorizontalAlignment, self.Ptr)
|
|
2723
|
+
objwraped = HorizontalAlignType(ret)
|
|
2724
|
+
return objwraped
|
|
2725
|
+
|
|
2726
|
+
@HorizontalAlignment.setter
|
|
2727
|
+
def HorizontalAlignment(self, value:'HorizontalAlignType'):
|
|
2728
|
+
GetDllLibXls().XlsRange_set_HorizontalAlignment.argtypes=[c_void_p, c_int]
|
|
2729
|
+
CallCFunction(GetDllLibXls().XlsRange_set_HorizontalAlignment, self.Ptr, value.value)
|
|
2730
|
+
|
|
2731
|
+
@property
|
|
2732
|
+
|
|
2733
|
+
def Hyperlinks(self)->'IHyperLinks':
|
|
2734
|
+
"""
|
|
2735
|
+
<summary>
|
|
2736
|
+
Returns hyperlinks for this range.
|
|
2737
|
+
</summary>
|
|
2738
|
+
"""
|
|
2739
|
+
GetDllLibXls().XlsRange_get_Hyperlinks.argtypes=[c_void_p]
|
|
2740
|
+
GetDllLibXls().XlsRange_get_Hyperlinks.restype=c_void_p
|
|
2741
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Hyperlinks, self.Ptr)
|
|
2742
|
+
ret = None if intPtr==None else XlsHyperLinksCollection(intPtr)
|
|
2743
|
+
return ret
|
|
2744
|
+
|
|
2745
|
+
|
|
2746
|
+
@property
|
|
2747
|
+
|
|
2748
|
+
def IgnoreErrorOptions(self)->'IgnoreErrorType':
|
|
2749
|
+
"""
|
|
2750
|
+
<summary>
|
|
2751
|
+
Represents ignore error options. If not single cell returs concatenateed flags.
|
|
2752
|
+
</summary>
|
|
2753
|
+
"""
|
|
2754
|
+
GetDllLibXls().XlsRange_get_IgnoreErrorOptions.argtypes=[c_void_p]
|
|
2755
|
+
GetDllLibXls().XlsRange_get_IgnoreErrorOptions.restype=c_int
|
|
2756
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_IgnoreErrorOptions, self.Ptr)
|
|
2757
|
+
objwraped = IgnoreErrorType(ret)
|
|
2758
|
+
return objwraped
|
|
2759
|
+
|
|
2760
|
+
@IgnoreErrorOptions.setter
|
|
2761
|
+
def IgnoreErrorOptions(self, value:'IgnoreErrorType'):
|
|
2762
|
+
GetDllLibXls().XlsRange_set_IgnoreErrorOptions.argtypes=[c_void_p, c_int]
|
|
2763
|
+
CallCFunction(GetDllLibXls().XlsRange_set_IgnoreErrorOptions, self.Ptr, value.value)
|
|
2764
|
+
|
|
2765
|
+
@property
|
|
2766
|
+
def IndentLevel(self)->int:
|
|
2767
|
+
"""
|
|
2768
|
+
<summary>
|
|
2769
|
+
Returns or sets the indent level for the cell or range. value should be 0 between 15.
|
|
2770
|
+
<example>The following code illustrates how to set indent level for a cell:
|
|
2771
|
+
<code>
|
|
2772
|
+
//Create worksheet
|
|
2773
|
+
Workbook workbook = new Workbook();
|
|
2774
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
2775
|
+
//Set text
|
|
2776
|
+
worksheet["C2"].Text = "Sample";
|
|
2777
|
+
//Set indent level
|
|
2778
|
+
worksheet["C2"].IndentLevel = 2;
|
|
2779
|
+
//Save to file
|
|
2780
|
+
workbook.SaveToFile("IndentLevel.xlsx");
|
|
2781
|
+
</code>
|
|
2782
|
+
</example>
|
|
2783
|
+
</summary>
|
|
2784
|
+
"""
|
|
2785
|
+
GetDllLibXls().XlsRange_get_IndentLevel.argtypes=[c_void_p]
|
|
2786
|
+
GetDllLibXls().XlsRange_get_IndentLevel.restype=c_int
|
|
2787
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_IndentLevel, self.Ptr)
|
|
2788
|
+
return ret
|
|
2789
|
+
|
|
2790
|
+
@IndentLevel.setter
|
|
2791
|
+
def IndentLevel(self, value:int):
|
|
2792
|
+
GetDllLibXls().XlsRange_set_IndentLevel.argtypes=[c_void_p, c_int]
|
|
2793
|
+
CallCFunction(GetDllLibXls().XlsRange_set_IndentLevel, self.Ptr, value)
|
|
2794
|
+
|
|
2795
|
+
@property
|
|
2796
|
+
def IsAllNumber(self)->bool:
|
|
2797
|
+
"""
|
|
2798
|
+
<summary>
|
|
2799
|
+
Determines if all cells in the range contain number.
|
|
2800
|
+
</summary>
|
|
2801
|
+
"""
|
|
2802
|
+
GetDllLibXls().XlsRange_get_IsAllNumber.argtypes=[c_void_p]
|
|
2803
|
+
GetDllLibXls().XlsRange_get_IsAllNumber.restype=c_bool
|
|
2804
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_IsAllNumber, self.Ptr)
|
|
2805
|
+
return ret
|
|
2806
|
+
|
|
2807
|
+
@property
|
|
2808
|
+
def IsBlank(self)->bool:
|
|
2809
|
+
"""
|
|
2810
|
+
<summary>
|
|
2811
|
+
Indicates whether the range is blank.
|
|
2812
|
+
</summary>
|
|
2813
|
+
"""
|
|
2814
|
+
GetDllLibXls().XlsRange_get_IsBlank.argtypes=[c_void_p]
|
|
2815
|
+
GetDllLibXls().XlsRange_get_IsBlank.restype=c_bool
|
|
2816
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_IsBlank, self.Ptr)
|
|
2817
|
+
return ret
|
|
2818
|
+
|
|
2819
|
+
@property
|
|
2820
|
+
def IsFormulaHidden(self)->bool:
|
|
2821
|
+
"""
|
|
2822
|
+
<summary>
|
|
2823
|
+
Determines if the formula will be hidden when the worksheet is protected.
|
|
2824
|
+
</summary>
|
|
2825
|
+
"""
|
|
2826
|
+
GetDllLibXls().XlsRange_get_IsFormulaHidden.argtypes=[c_void_p]
|
|
2827
|
+
GetDllLibXls().XlsRange_get_IsFormulaHidden.restype=c_bool
|
|
2828
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_IsFormulaHidden, self.Ptr)
|
|
2829
|
+
return ret
|
|
2830
|
+
|
|
2831
|
+
@IsFormulaHidden.setter
|
|
2832
|
+
def IsFormulaHidden(self, value:bool):
|
|
2833
|
+
GetDllLibXls().XlsRange_set_IsFormulaHidden.argtypes=[c_void_p, c_bool]
|
|
2834
|
+
CallCFunction(GetDllLibXls().XlsRange_set_IsFormulaHidden, self.Ptr, value)
|
|
2835
|
+
|
|
2836
|
+
@property
|
|
2837
|
+
def IsGroupedByColumn(self)->bool:
|
|
2838
|
+
"""
|
|
2839
|
+
<summary>
|
|
2840
|
+
Indicates whether this range is grouped by column.
|
|
2841
|
+
</summary>
|
|
2842
|
+
"""
|
|
2843
|
+
GetDllLibXls().XlsRange_get_IsGroupedByColumn.argtypes=[c_void_p]
|
|
2844
|
+
GetDllLibXls().XlsRange_get_IsGroupedByColumn.restype=c_bool
|
|
2845
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_IsGroupedByColumn, self.Ptr)
|
|
2846
|
+
return ret
|
|
2847
|
+
|
|
2848
|
+
@property
|
|
2849
|
+
def IsGroupedByRow(self)->bool:
|
|
2850
|
+
"""
|
|
2851
|
+
<summary>
|
|
2852
|
+
Indicates whether this range is grouped by row.
|
|
2853
|
+
</summary>
|
|
2854
|
+
"""
|
|
2855
|
+
GetDllLibXls().XlsRange_get_IsGroupedByRow.argtypes=[c_void_p]
|
|
2856
|
+
GetDllLibXls().XlsRange_get_IsGroupedByRow.restype=c_bool
|
|
2857
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_IsGroupedByRow, self.Ptr)
|
|
2858
|
+
return ret
|
|
2859
|
+
|
|
2860
|
+
@property
|
|
2861
|
+
def IsInitialized(self)->bool:
|
|
2862
|
+
"""
|
|
2863
|
+
<summary>
|
|
2864
|
+
Indicates whether range has been initialized.
|
|
2865
|
+
</summary>
|
|
2866
|
+
"""
|
|
2867
|
+
GetDllLibXls().XlsRange_get_IsInitialized.argtypes=[c_void_p]
|
|
2868
|
+
GetDllLibXls().XlsRange_get_IsInitialized.restype=c_bool
|
|
2869
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_IsInitialized, self.Ptr)
|
|
2870
|
+
return ret
|
|
2871
|
+
|
|
2872
|
+
@property
|
|
2873
|
+
|
|
2874
|
+
def IsStringsPreserved(self)->bool:
|
|
2875
|
+
"""
|
|
2876
|
+
<summary>
|
|
2877
|
+
Indicates whether all values in the range are preserved as strings.
|
|
2878
|
+
</summary>
|
|
2879
|
+
"""
|
|
2880
|
+
GetDllLibXls().XlsRange_get_IsStringsPreserved.argtypes=[c_void_p]
|
|
2881
|
+
GetDllLibXls().XlsRange_get_IsStringsPreserved.restype=c_bool
|
|
2882
|
+
return CallCFunction(GetDllLibXls().XlsRange_get_IsStringsPreserved, self.Ptr)
|
|
2883
|
+
|
|
2884
|
+
|
|
2885
|
+
|
|
2886
|
+
@IsStringsPreserved.setter
|
|
2887
|
+
def IsStringsPreserved(self, value:bool):
|
|
2888
|
+
GetDllLibXls().XlsRange_set_IsStringsPreserved.argtypes=[c_void_p, c_bool]
|
|
2889
|
+
CallCFunction(GetDllLibXls().XlsRange_set_IsStringsPreserved, self.Ptr, value)
|
|
2890
|
+
|
|
2891
|
+
|
|
2892
|
+
@property
|
|
2893
|
+
def IsWrapText(self)->bool:
|
|
2894
|
+
"""
|
|
2895
|
+
<summary>
|
|
2896
|
+
Determines if Microsoft Excel wraps the text in the object.
|
|
2897
|
+
<example>The following code illustrates how to access WrapText property:
|
|
2898
|
+
<code>
|
|
2899
|
+
//Create worksheet
|
|
2900
|
+
Workbook workbook = new Workbook();
|
|
2901
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
2902
|
+
//Set text
|
|
2903
|
+
worksheet["A1"].Text = "This cell contains sample text";
|
|
2904
|
+
//Set wrap text
|
|
2905
|
+
worksheet["A1"].IsWrapText = true;
|
|
2906
|
+
//Save to file
|
|
2907
|
+
workbook.SaveToFile("IsWrapText.xlsx");
|
|
2908
|
+
</code>
|
|
2909
|
+
</example>
|
|
2910
|
+
</summary>
|
|
2911
|
+
"""
|
|
2912
|
+
GetDllLibXls().XlsRange_get_IsWrapText.argtypes=[c_void_p]
|
|
2913
|
+
GetDllLibXls().XlsRange_get_IsWrapText.restype=c_bool
|
|
2914
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_IsWrapText, self.Ptr)
|
|
2915
|
+
return ret
|
|
2916
|
+
|
|
2917
|
+
@IsWrapText.setter
|
|
2918
|
+
def IsWrapText(self, value:bool):
|
|
2919
|
+
GetDllLibXls().XlsRange_set_IsWrapText.argtypes=[c_void_p, c_bool]
|
|
2920
|
+
CallCFunction(GetDllLibXls().XlsRange_set_IsWrapText, self.Ptr, value)
|
|
2921
|
+
|
|
2922
|
+
@property
|
|
2923
|
+
def LastColumn(self)->int:
|
|
2924
|
+
"""
|
|
2925
|
+
<summary>
|
|
2926
|
+
Gets or sets last column of the range.
|
|
2927
|
+
</summary>
|
|
2928
|
+
"""
|
|
2929
|
+
GetDllLibXls().XlsRange_get_LastColumn.argtypes=[c_void_p]
|
|
2930
|
+
GetDllLibXls().XlsRange_get_LastColumn.restype=c_int
|
|
2931
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_LastColumn, self.Ptr)
|
|
2932
|
+
return ret
|
|
2933
|
+
|
|
2934
|
+
@LastColumn.setter
|
|
2935
|
+
def LastColumn(self, value:int):
|
|
2936
|
+
GetDllLibXls().XlsRange_set_LastColumn.argtypes=[c_void_p, c_int]
|
|
2937
|
+
CallCFunction(GetDllLibXls().XlsRange_set_LastColumn, self.Ptr, value)
|
|
2938
|
+
|
|
2939
|
+
@property
|
|
2940
|
+
def LastRow(self)->int:
|
|
2941
|
+
"""
|
|
2942
|
+
<summary>
|
|
2943
|
+
Gets or sets last row of the range.
|
|
2944
|
+
</summary>
|
|
2945
|
+
"""
|
|
2946
|
+
GetDllLibXls().XlsRange_get_LastRow.argtypes=[c_void_p]
|
|
2947
|
+
GetDllLibXls().XlsRange_get_LastRow.restype=c_int
|
|
2948
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_LastRow, self.Ptr)
|
|
2949
|
+
return ret
|
|
2950
|
+
|
|
2951
|
+
@LastRow.setter
|
|
2952
|
+
def LastRow(self, value:int):
|
|
2953
|
+
GetDllLibXls().XlsRange_set_LastRow.argtypes=[c_void_p, c_int]
|
|
2954
|
+
CallCFunction(GetDllLibXls().XlsRange_set_LastRow, self.Ptr, value)
|
|
2955
|
+
|
|
2956
|
+
@property
|
|
2957
|
+
|
|
2958
|
+
def MergeArea(self)->'IXLSRange':
|
|
2959
|
+
"""
|
|
2960
|
+
|
|
2961
|
+
"""
|
|
2962
|
+
GetDllLibXls().XlsRange_get_MergeArea.argtypes=[c_void_p]
|
|
2963
|
+
GetDllLibXls().XlsRange_get_MergeArea.restype=c_void_p
|
|
2964
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_MergeArea, self.Ptr)
|
|
2965
|
+
ret = None if intPtr==None else XlsRange(intPtr)
|
|
2966
|
+
return ret
|
|
2967
|
+
|
|
2968
|
+
|
|
2969
|
+
@property
|
|
2970
|
+
|
|
2971
|
+
def DisplayedText(self)->str:
|
|
2972
|
+
"""
|
|
2973
|
+
<summary>
|
|
2974
|
+
Gets cell displayed text.
|
|
2975
|
+
</summary>
|
|
2976
|
+
"""
|
|
2977
|
+
GetDllLibXls().XlsRange_get_DisplayedText.argtypes=[c_void_p]
|
|
2978
|
+
GetDllLibXls().XlsRange_get_DisplayedText.restype=c_void_p
|
|
2979
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_DisplayedText, self.Ptr))
|
|
2980
|
+
return ret
|
|
2981
|
+
|
|
2982
|
+
|
|
2983
|
+
@property
|
|
2984
|
+
def HasConditionFormats(self)->bool:
|
|
2985
|
+
"""
|
|
2986
|
+
<summary>
|
|
2987
|
+
Indicates whether each cell of the range has some conditional formatting.
|
|
2988
|
+
</summary>
|
|
2989
|
+
"""
|
|
2990
|
+
GetDllLibXls().XlsRange_get_HasConditionFormats.argtypes=[c_void_p]
|
|
2991
|
+
GetDllLibXls().XlsRange_get_HasConditionFormats.restype=c_bool
|
|
2992
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_HasConditionFormats, self.Ptr)
|
|
2993
|
+
return ret
|
|
2994
|
+
|
|
2995
|
+
@property
|
|
2996
|
+
|
|
2997
|
+
def NumberFormat(self)->str:
|
|
2998
|
+
"""
|
|
2999
|
+
<summary>
|
|
3000
|
+
Returns or sets the format code for the object.
|
|
3001
|
+
<example>The following code illustrates how to set NumberFormat property:
|
|
3002
|
+
<code>
|
|
3003
|
+
//Create worksheet
|
|
3004
|
+
Workbook workbook = new Workbook();
|
|
3005
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
3006
|
+
//Set data
|
|
3007
|
+
worksheet["C2"].Value = "3100.23";
|
|
3008
|
+
//Set number format
|
|
3009
|
+
worksheet["C2"].NumberFormat = "#,##1.##";
|
|
3010
|
+
//Save to file
|
|
3011
|
+
workbook.SaveToFile("NumberFormat.xlsx");
|
|
3012
|
+
</code>
|
|
3013
|
+
</example>
|
|
3014
|
+
</summary>
|
|
3015
|
+
"""
|
|
3016
|
+
GetDllLibXls().XlsRange_get_NumberFormat.argtypes=[c_void_p]
|
|
3017
|
+
GetDllLibXls().XlsRange_get_NumberFormat.restype=c_void_p
|
|
3018
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_NumberFormat, self.Ptr))
|
|
3019
|
+
return ret
|
|
3020
|
+
|
|
3021
|
+
|
|
3022
|
+
@NumberFormat.setter
|
|
3023
|
+
def NumberFormat(self, value:str):
|
|
3024
|
+
GetDllLibXls().XlsRange_set_NumberFormat.argtypes=[c_void_p, c_wchar_p]
|
|
3025
|
+
CallCFunction(GetDllLibXls().XlsRange_set_NumberFormat, self.Ptr, value)
|
|
3026
|
+
|
|
3027
|
+
@property
|
|
3028
|
+
|
|
3029
|
+
def NumberText(self)->str:
|
|
3030
|
+
"""
|
|
3031
|
+
<summary>
|
|
3032
|
+
Returns cell text for number format.
|
|
3033
|
+
<example>The following code illustrates how to access NumberText property of the Range:
|
|
3034
|
+
<code>
|
|
3035
|
+
//Create worksheet
|
|
3036
|
+
Workbook workbook = new Workbook();
|
|
3037
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
3038
|
+
//Gets cell value with its number format
|
|
3039
|
+
XlsRange range= worksheet.Range[3, 1];
|
|
3040
|
+
range.Value = "1/1/2015";
|
|
3041
|
+
range.NumberFormat = "dd-MMM-yyyy";
|
|
3042
|
+
string numberText = range.NumberText;
|
|
3043
|
+
//Save to file
|
|
3044
|
+
workbook.SaveToFile("NumberText.xlsx");
|
|
3045
|
+
</code>
|
|
3046
|
+
</example>
|
|
3047
|
+
</summary>
|
|
3048
|
+
"""
|
|
3049
|
+
GetDllLibXls().XlsRange_get_NumberText.argtypes=[c_void_p]
|
|
3050
|
+
GetDllLibXls().XlsRange_get_NumberText.restype=c_void_p
|
|
3051
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_NumberText, self.Ptr))
|
|
3052
|
+
return ret
|
|
3053
|
+
|
|
3054
|
+
|
|
3055
|
+
@property
|
|
3056
|
+
def NumberValue(self)->float:
|
|
3057
|
+
"""
|
|
3058
|
+
<summary>
|
|
3059
|
+
Gets or sets number value of the range.
|
|
3060
|
+
</summary>
|
|
3061
|
+
"""
|
|
3062
|
+
GetDllLibXls().XlsRange_get_NumberValue.argtypes=[c_void_p]
|
|
3063
|
+
GetDllLibXls().XlsRange_get_NumberValue.restype=c_double
|
|
3064
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_get_NumberValue, self.Ptr)
|
|
3065
|
+
return ret
|
|
3066
|
+
|
|
3067
|
+
@NumberValue.setter
|
|
3068
|
+
def NumberValue(self, value:float):
|
|
3069
|
+
GetDllLibXls().XlsRange_set_NumberValue.argtypes=[c_void_p, c_double]
|
|
3070
|
+
CallCFunction(GetDllLibXls().XlsRange_set_NumberValue, self.Ptr, value)
|
|
3071
|
+
|
|
3072
|
+
@property
|
|
3073
|
+
|
|
3074
|
+
def Parent(self)->'SpireObject':
|
|
3075
|
+
"""
|
|
3076
|
+
|
|
3077
|
+
"""
|
|
3078
|
+
GetDllLibXls().XlsRange_get_Parent.argtypes=[c_void_p]
|
|
3079
|
+
GetDllLibXls().XlsRange_get_Parent.restype=c_void_p
|
|
3080
|
+
intPtr = CallCFunction(GetDllLibXls().XlsRange_get_Parent, self.Ptr)
|
|
3081
|
+
ret = None if intPtr==None else SpireObject(intPtr)
|
|
3082
|
+
return ret
|
|
3083
|
+
|
|
3084
|
+
|
|
3085
|
+
@property
|
|
3086
|
+
|
|
3087
|
+
def RangeAddress(self)->str:
|
|
3088
|
+
"""
|
|
3089
|
+
<summary>
|
|
3090
|
+
Returns the range reference in the language of the macro.
|
|
3091
|
+
Read-only String.
|
|
3092
|
+
<example>The following code illustrates how to access Address property of the Range:
|
|
3093
|
+
<code>
|
|
3094
|
+
//Create worksheet
|
|
3095
|
+
Workbook workbook = new Workbook();
|
|
3096
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
3097
|
+
//Get RangeAddress
|
|
3098
|
+
string address = worksheet.Range[3, 4].RangeAddress;
|
|
3099
|
+
</code>
|
|
3100
|
+
</example>
|
|
3101
|
+
</summary>
|
|
3102
|
+
"""
|
|
3103
|
+
GetDllLibXls().XlsRange_get_RangeAddress.argtypes=[c_void_p]
|
|
3104
|
+
GetDllLibXls().XlsRange_get_RangeAddress.restype=c_void_p
|
|
3105
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_RangeAddress, self.Ptr))
|
|
3106
|
+
return ret
|
|
3107
|
+
|
|
3108
|
+
|
|
3109
|
+
@property
|
|
3110
|
+
|
|
3111
|
+
def RangeAddressLocal(self)->str:
|
|
3112
|
+
"""
|
|
3113
|
+
<summary>
|
|
3114
|
+
Returns the range reference for the specified range in the language of the user.
|
|
3115
|
+
<example>The following code illustrates how to access AddressLocal property of the Range:
|
|
3116
|
+
<code>
|
|
3117
|
+
//Create worksheet
|
|
3118
|
+
Workbook workbook = new Workbook();
|
|
3119
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
3120
|
+
//Get RangeAddressLocal
|
|
3121
|
+
string address = worksheet.Range[3, 4].RangeAddressLocal;
|
|
3122
|
+
</code>
|
|
3123
|
+
</example>
|
|
3124
|
+
</summary>
|
|
3125
|
+
"""
|
|
3126
|
+
GetDllLibXls().XlsRange_get_RangeAddressLocal.argtypes=[c_void_p]
|
|
3127
|
+
GetDllLibXls().XlsRange_get_RangeAddressLocal.restype=c_void_p
|
|
3128
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_RangeAddressLocal, self.Ptr))
|
|
3129
|
+
return ret
|
|
3130
|
+
|
|
3131
|
+
|
|
3132
|
+
@property
|
|
3133
|
+
|
|
3134
|
+
def RangeGlobalAddressWithoutSheetName(self)->str:
|
|
3135
|
+
"""
|
|
3136
|
+
<summary>
|
|
3137
|
+
Return global address without worksheet name.
|
|
3138
|
+
</summary>
|
|
3139
|
+
"""
|
|
3140
|
+
GetDllLibXls().XlsRange_get_RangeGlobalAddressWithoutSheetName.argtypes=[c_void_p]
|
|
3141
|
+
GetDllLibXls().XlsRange_get_RangeGlobalAddressWithoutSheetName.restype=c_void_p
|
|
3142
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_RangeGlobalAddressWithoutSheetName, self.Ptr))
|
|
3143
|
+
return ret
|
|
3144
|
+
|
|
3145
|
+
|
|
3146
|
+
@property
|
|
3147
|
+
|
|
3148
|
+
def RangeGlobalAddress(self)->str:
|
|
3149
|
+
"""
|
|
3150
|
+
<summary>
|
|
3151
|
+
Returns the range reference in the language of the macro.
|
|
3152
|
+
<example>The following code illustrates how to access AddressGlobal property of the Range:
|
|
3153
|
+
<code>
|
|
3154
|
+
//Create worksheet
|
|
3155
|
+
Workbook workbook = new Workbook();
|
|
3156
|
+
Worksheet worksheet = workbook.Worksheets[0];
|
|
3157
|
+
//Get RangeAddress
|
|
3158
|
+
string address = worksheet.Range[3, 4].RangeGlobalAddress;
|
|
3159
|
+
</code>
|
|
3160
|
+
</example>
|
|
3161
|
+
</summary>
|
|
3162
|
+
"""
|
|
3163
|
+
GetDllLibXls().XlsRange_get_RangeGlobalAddress.argtypes=[c_void_p]
|
|
3164
|
+
GetDllLibXls().XlsRange_get_RangeGlobalAddress.restype=c_void_p
|
|
3165
|
+
ret = PtrToStr(CallCFunction(GetDllLibXls().XlsRange_get_RangeGlobalAddress, self.Ptr))
|
|
3166
|
+
return ret
|
|
3167
|
+
|
|
3168
|
+
|
|
3169
|
+
@staticmethod
|
|
3170
|
+
def DEF_MAX_HEIGHT()->float:
|
|
3171
|
+
"""
|
|
3172
|
+
|
|
3173
|
+
"""
|
|
3174
|
+
#GetDllLibXls().XlsRange_DEF_MAX_HEIGHT.argtypes=[]
|
|
3175
|
+
GetDllLibXls().XlsRange_DEF_MAX_HEIGHT.restype=c_double
|
|
3176
|
+
ret = CallCFunction(GetDllLibXls().XlsRange_DEF_MAX_HEIGHT)
|
|
3177
|
+
return ret
|
|
3178
|
+
|
|
3179
|
+
class EnumeratorXlsRange(IEnumerator[XlsRange]):
|
|
3180
|
+
pass
|
|
3181
|
+
class ListXlsRanges (IList[IXLSRange]):
|
|
3182
|
+
def __init__(self, ptr):
|
|
3183
|
+
super(ListXlsRanges, self).__init__(ptr)
|
|
3184
|
+
self._gtype = XlsRange
|
|
3185
|
+
|
|
3186
|
+
def GetEnumerator(self)->'IEnumerator':
|
|
3187
|
+
"""
|
|
3188
|
+
|
|
3189
|
+
"""
|
|
3190
|
+
ret = super(ListXlsRanges, self).GetEnumerator()
|
|
3191
|
+
ret._gtype = XlsRange
|
|
3192
|
+
return ret
|
|
3193
|
+
|