spire-xls 15.7.1__py3-none-win_amd64.whl → 16.2.0__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- spire/xls/AddtionalFormatWrapper.py +18 -15
- spire/xls/CellRange.py +10 -8
- spire/xls/CellStyleFlag.py +7 -0
- spire/xls/CellStyleObject.py +19 -12
- spire/xls/ColorScale.py +3 -3
- spire/xls/CommentsRange.py +6 -17
- spire/xls/ConverterSetting.py +15 -0
- spire/xls/DocumentProperty.py +1 -1
- spire/xls/ExcelCommentObject.py +6 -1
- spire/xls/ExcelFont.py +21 -15
- spire/xls/ExcelGradient.py +2 -0
- spire/xls/ExcelInterior.py +0 -13
- spire/xls/ExportTableOptions.py +6 -0
- spire/xls/Font.py +103 -103
- spire/xls/FontWrapper.py +20 -18
- spire/xls/GradientStops.py +1 -1
- spire/xls/HPageBreak.py +1 -0
- spire/xls/HyperLink.py +1 -0
- spire/xls/MsoTextFrame.py +102 -0
- spire/xls/RangeRichTextString.py +2 -2
- spire/xls/ReferRangeArea.py +0 -8
- spire/xls/RichText.py +1 -1
- spire/xls/RichTextShape.py +2 -1
- spire/xls/RichTextString.py +1 -0
- spire/xls/ShapeGlow.py +1 -1
- spire/xls/TextSaveOptions.py +7 -0
- spire/xls/VPageBreak.py +1 -0
- spire/xls/Workbook.py +85 -86
- spire/xls/Worksheet.py +63 -12
- spire/xls/XlsAddInFunction.py +4 -4
- spire/xls/XlsArcShape.py +1 -1
- spire/xls/XlsBorder.py +1 -0
- spire/xls/XlsButtonShape.py +1 -1
- spire/xls/XlsComment.py +1 -1
- spire/xls/XlsDataValidationTable.py +3 -1
- spire/xls/XlsFont.py +20 -14
- spire/xls/XlsName.py +27 -15
- spire/xls/XlsOvalShape.py +1 -1
- spire/xls/XlsPageSetup.py +8 -2
- spire/xls/XlsRadioButtonShape.py +21 -51
- spire/xls/XlsRange.py +26 -10
- spire/xls/XlsRectangleShape.py +1 -1
- spire/xls/XlsShape.py +7 -5
- spire/xls/XlsShapeFill.py +3 -0
- spire/xls/XlsStyle.py +3 -3
- spire/xls/XlsValidation.py +7 -4
- spire/xls/XlsWorkbook.py +50 -29
- spire/xls/XlsWorksheet.py +136 -121
- spire/xls/XlsWorksheetBase.py +39 -20
- spire/xls/__init__.py +3 -1
- spire/xls/autofilter/AutoFitterOptions.py +7 -0
- spire/xls/autofilter/CustomFilter.py +9 -1
- spire/xls/autofilter/FilterColumn.py +2 -2
- spire/xls/autofilter/XlsAutoFiltersCollection.py +1 -0
- spire/xls/charts/Chart.py +1 -0
- spire/xls/charts/ChartArea.py +1 -0
- spire/xls/charts/ChartDataLabels.py +1 -0
- spire/xls/charts/ChartPlotArea.py +1 -0
- spire/xls/charts/ChartShadow.py +1 -1
- spire/xls/charts/ChartSheet.py +1 -0
- spire/xls/charts/ChartTextArea.py +20 -19
- spire/xls/charts/XlsChart.py +13 -13
- spire/xls/charts/XlsChartAxis.py +3 -0
- spire/xls/charts/XlsChartCategoryAxis.py +1 -1
- spire/xls/charts/XlsChartDataLabelArea.py +17 -12
- spire/xls/charts/XlsChartDataLabels.py +19 -0
- spire/xls/charts/XlsChartDataTable.py +17 -12
- spire/xls/charts/XlsChartDropBar.py +4 -1
- spire/xls/charts/XlsChartFrameFormat.py +7 -2
- spire/xls/charts/XlsChartGridLine.py +2 -2
- spire/xls/charts/XlsChartInterior.py +2 -0
- spire/xls/charts/XlsChartLegend.py +2 -1
- spire/xls/charts/XlsChartLegendArea.py +18 -12
- spire/xls/charts/XlsChartSerie.py +4 -1
- spire/xls/charts/XlsChartSerieDataFormat.py +12 -3
- spire/xls/charts/XlsChartShape.py +13 -13
- spire/xls/charts/XlsChartTitleArea.py +2 -0
- spire/xls/charts/XlsChartWallOrFloor.py +8 -2
- spire/xls/collection/ArcShapeCollection.py +1 -1
- spire/xls/collection/AutoFiltersCollection.py +1 -0
- spire/xls/collection/BordersCollectionArrayWrapper.py +2 -2
- spire/xls/collection/ButtonShapeCollection.py +4 -4
- spire/xls/collection/DataConnections.py +1 -1
- spire/xls/collection/ExternalLinkCollection.py +2 -1
- spire/xls/collection/GroupBoxCollection.py +4 -4
- spire/xls/collection/QueryTableCollection.py +1 -1
- spire/xls/collection/RangesCollection.py +4 -3
- spire/xls/collection/ShapeCollectionBase.py +6 -6
- spire/xls/collection/WorksheetsCollection.py +6 -6
- spire/xls/collection/XlsBordersCollection.py +2 -2
- spire/xls/collection/XlsChartFormatCollection.py +4 -4
- spire/xls/collection/XlsChartSeries.py +3 -3
- spire/xls/collection/XlsChartsCollection.py +10 -8
- spire/xls/collection/XlsDataValidationCollection.py +4 -2
- spire/xls/collection/XlsFontsCollection.py +2 -1
- spire/xls/collection/XlsRangesCollection.py +17 -10
- spire/xls/collection/XlsStylesCollection.py +2 -2
- spire/xls/collection/XlsWorkbookObjectsCollection.py +5 -4
- spire/xls/collection/pivot_table/PivotDataFields.py +1 -0
- spire/xls/collection/pivot_table/PivotTableFields.py +1 -1
- spire/xls/collection/pivot_table/XlsPivotCachesCollection.py +2 -0
- spire/xls/collection/pivot_table/XlsPivotTablesCollection.py +1 -0
- spire/xls/common/Boolean.py +2 -0
- spire/xls/common/Byte.py +2 -0
- spire/xls/common/Char.py +2 -0
- spire/xls/common/Color.py +2 -0
- spire/xls/common/Common.py +13 -0
- spire/xls/common/CultureInfo.py +2 -0
- spire/xls/common/DateTime.py +16 -0
- spire/xls/common/Double.py +2 -0
- spire/xls/common/EmfType.py +2 -0
- spire/xls/common/Encoding.py +2 -0
- spire/xls/common/FontStyle.py +2 -0
- spire/xls/common/GraphicsUnit.py +2 -0
- spire/xls/common/ICollection.py +3 -0
- spire/xls/common/IDictionary.py +2 -0
- spire/xls/common/IEnumerable.py +3 -0
- spire/xls/common/IEnumerator.py +2 -0
- spire/xls/common/IList.py +3 -0
- spire/xls/common/Int16.py +2 -0
- spire/xls/common/Int32.py +2 -0
- spire/xls/common/Int64.py +2 -0
- spire/xls/common/License.py +12 -0
- spire/xls/common/PixelFormat.py +2 -0
- spire/xls/common/Point.py +2 -0
- spire/xls/common/PointF.py +2 -0
- spire/xls/common/Rectangle.py +2 -0
- spire/xls/common/RectangleF.py +2 -0
- spire/xls/common/Regex.py +2 -0
- spire/xls/common/RegexOptions.py +2 -0
- spire/xls/common/Single.py +2 -0
- spire/xls/common/Size.py +2 -0
- spire/xls/common/SizeF.py +6 -4
- spire/xls/common/SpireObject.py +2 -0
- spire/xls/common/Stream.py +2 -0
- spire/xls/common/String.py +3 -1
- spire/xls/common/TimeSpan.py +2 -0
- spire/xls/common/UInt16.py +2 -0
- spire/xls/common/UInt32.py +2 -0
- spire/xls/common/UInt64.py +2 -0
- spire/xls/common/__init__.py +80 -9
- spire/xls/conditional_formatting/ConditionValue.py +0 -12
- spire/xls/conditional_formatting/ConditionalFormatWrapper.py +2 -2
- spire/xls/conditional_formatting/XlsConditionValue.py +4 -6
- spire/xls/conditional_formatting/XlsConditionalFormat.py +10 -2
- spire/xls/conditional_formatting/XlsConditionalFormats.py +10 -5
- spire/xls/interfaces/IChartErrorBars.py +2 -0
- spire/xls/interfaces/IChartTrendLine.py +1 -0
- spire/xls/interfaces/IListObject.py +2 -0
- spire/xls/interfaces/IOleObject.py +2 -0
- spire/xls/interfaces/IWorksheet.py +10 -10
- spire/xls/interfaces/ImportObjectOptions.py +7 -0
- spire/xls/interfaces/collections/IShapes.py +6 -6
- spire/xls/interfaces/pivot_table/IPivotTableOptions.py +12 -14
- spire/xls/lib/Spire.Xls.Base.dll +0 -0
- spire/xls/pivot_tables/PivotDataField.py +1 -1
- spire/xls/pivot_tables/PivotReportFilter.py +4 -4
- spire/xls/pivot_tables/PivotReportFilters.py +1 -1
- spire/xls/pivot_tables/PivotStyle.py +1 -0
- spire/xls/pivot_tables/PivotTableStyle.py +19 -12
- spire/xls/pivot_tables/XlsPivotCache.py +3 -1
- spire/xls/pivot_tables/XlsPivotField.py +2 -1
- spire/xls/pivot_tables/XlsPivotTable.py +4 -1
- spire/xls/sorting/SortColumn.py +1 -1
- spire/xls/sorting/SortColumns.py +1 -0
- spire/xls/sparkline/SparklineCollection.py +13 -1
- spire/xls/sparkline/SparklineGroupCollection.py +1 -1
- spire/xls/template_markers/MarkerDesigner.py +3 -2
- {spire_xls-15.7.1.dist-info → spire_xls-16.2.0.dist-info}/METADATA +1 -1
- {spire_xls-15.7.1.dist-info → spire_xls-16.2.0.dist-info}/RECORD +173 -172
- /spire/xls/lib/{_init_.py → __init__.py} +0 -0
- {spire_xls-15.7.1.dist-info → spire_xls-16.2.0.dist-info}/WHEEL +0 -0
- {spire_xls-15.7.1.dist-info → spire_xls-16.2.0.dist-info}/top_level.txt +0 -0
|
@@ -249,7 +249,7 @@ class XlsChartShape ( XlsShape, IChartShape) :
|
|
|
249
249
|
GetDllLibXls().XlsChartShape_AddShapeInChart.argtypes=[c_void_p ,c_int,c_int,c_int,c_int,c_int,c_int]
|
|
250
250
|
GetDllLibXls().XlsChartShape_AddShapeInChart.restype=c_void_p
|
|
251
251
|
intPtr = CallCFunction(GetDllLibXls().XlsChartShape_AddShapeInChart, self.Ptr, enumtype,enumplacement,left,top,height,width)
|
|
252
|
-
ret = None if intPtr==None else
|
|
252
|
+
ret = None if intPtr==None else XlsShape(intPtr)
|
|
253
253
|
return ret
|
|
254
254
|
|
|
255
255
|
|
|
@@ -352,7 +352,7 @@ class XlsChartShape ( XlsShape, IChartShape) :
|
|
|
352
352
|
GetDllLibXls().XlsChartShape_get_PageSetup.argtypes=[c_void_p]
|
|
353
353
|
GetDllLibXls().XlsChartShape_get_PageSetup.restype=c_void_p
|
|
354
354
|
intPtr = CallCFunction(GetDllLibXls().XlsChartShape_get_PageSetup, self.Ptr)
|
|
355
|
-
ret = None if intPtr==None else
|
|
355
|
+
ret = None if intPtr==None else ChartPageSetup(intPtr)
|
|
356
356
|
return ret
|
|
357
357
|
|
|
358
358
|
|
|
@@ -404,7 +404,7 @@ class XlsChartShape ( XlsShape, IChartShape) :
|
|
|
404
404
|
GetDllLibXls().XlsChartShape_get_PrimaryCategoryAxis.argtypes=[c_void_p]
|
|
405
405
|
GetDllLibXls().XlsChartShape_get_PrimaryCategoryAxis.restype=c_void_p
|
|
406
406
|
intPtr = CallCFunction(GetDllLibXls().XlsChartShape_get_PrimaryCategoryAxis, self.Ptr)
|
|
407
|
-
ret = None if intPtr==None else
|
|
407
|
+
ret = None if intPtr==None else ChartCategoryAxis(intPtr)
|
|
408
408
|
return ret
|
|
409
409
|
|
|
410
410
|
|
|
@@ -420,7 +420,7 @@ class XlsChartShape ( XlsShape, IChartShape) :
|
|
|
420
420
|
GetDllLibXls().XlsChartShape_get_PrimaryValueAxis.argtypes=[c_void_p]
|
|
421
421
|
GetDllLibXls().XlsChartShape_get_PrimaryValueAxis.restype=c_void_p
|
|
422
422
|
intPtr = CallCFunction(GetDllLibXls().XlsChartShape_get_PrimaryValueAxis, self.Ptr)
|
|
423
|
-
ret = None if intPtr==None else
|
|
423
|
+
ret = None if intPtr==None else ChartValueAxis(intPtr)
|
|
424
424
|
return ret
|
|
425
425
|
|
|
426
426
|
|
|
@@ -436,7 +436,7 @@ class XlsChartShape ( XlsShape, IChartShape) :
|
|
|
436
436
|
GetDllLibXls().XlsChartShape_get_PrimarySerieAxis.argtypes=[c_void_p]
|
|
437
437
|
GetDllLibXls().XlsChartShape_get_PrimarySerieAxis.restype=c_void_p
|
|
438
438
|
intPtr = CallCFunction(GetDllLibXls().XlsChartShape_get_PrimarySerieAxis, self.Ptr)
|
|
439
|
-
ret = None if intPtr==None else
|
|
439
|
+
ret = None if intPtr==None else ChartSeriesAxis(intPtr)
|
|
440
440
|
return ret
|
|
441
441
|
|
|
442
442
|
|
|
@@ -452,7 +452,7 @@ class XlsChartShape ( XlsShape, IChartShape) :
|
|
|
452
452
|
GetDllLibXls().XlsChartShape_get_SecondaryCategoryAxis.argtypes=[c_void_p]
|
|
453
453
|
GetDllLibXls().XlsChartShape_get_SecondaryCategoryAxis.restype=c_void_p
|
|
454
454
|
intPtr = CallCFunction(GetDllLibXls().XlsChartShape_get_SecondaryCategoryAxis, self.Ptr)
|
|
455
|
-
ret = None if intPtr==None else
|
|
455
|
+
ret = None if intPtr==None else ChartCategoryAxis(intPtr)
|
|
456
456
|
return ret
|
|
457
457
|
|
|
458
458
|
|
|
@@ -468,7 +468,7 @@ class XlsChartShape ( XlsShape, IChartShape) :
|
|
|
468
468
|
GetDllLibXls().XlsChartShape_get_SecondaryValueAxis.argtypes=[c_void_p]
|
|
469
469
|
GetDllLibXls().XlsChartShape_get_SecondaryValueAxis.restype=c_void_p
|
|
470
470
|
intPtr = CallCFunction(GetDllLibXls().XlsChartShape_get_SecondaryValueAxis, self.Ptr)
|
|
471
|
-
ret = None if intPtr==None else
|
|
471
|
+
ret = None if intPtr==None else ChartValueAxis(intPtr)
|
|
472
472
|
return ret
|
|
473
473
|
|
|
474
474
|
|
|
@@ -500,7 +500,7 @@ class XlsChartShape ( XlsShape, IChartShape) :
|
|
|
500
500
|
GetDllLibXls().XlsChartShape_get_PlotArea.argtypes=[c_void_p]
|
|
501
501
|
GetDllLibXls().XlsChartShape_get_PlotArea.restype=c_void_p
|
|
502
502
|
intPtr = CallCFunction(GetDllLibXls().XlsChartShape_get_PlotArea, self.Ptr)
|
|
503
|
-
ret = None if intPtr==None else
|
|
503
|
+
ret = None if intPtr==None else XlsChartPlotArea(intPtr)
|
|
504
504
|
return ret
|
|
505
505
|
|
|
506
506
|
|
|
@@ -516,7 +516,7 @@ class XlsChartShape ( XlsShape, IChartShape) :
|
|
|
516
516
|
GetDllLibXls().XlsChartShape_get_Walls.argtypes=[c_void_p]
|
|
517
517
|
GetDllLibXls().XlsChartShape_get_Walls.restype=c_void_p
|
|
518
518
|
intPtr = CallCFunction(GetDllLibXls().XlsChartShape_get_Walls, self.Ptr)
|
|
519
|
-
ret = None if intPtr==None else
|
|
519
|
+
ret = None if intPtr==None else XlsChartWallOrFloor(intPtr)
|
|
520
520
|
return ret
|
|
521
521
|
|
|
522
522
|
|
|
@@ -543,7 +543,7 @@ class XlsChartShape ( XlsShape, IChartShape) :
|
|
|
543
543
|
GetDllLibXls().XlsChartShape_get_Floor.argtypes=[c_void_p]
|
|
544
544
|
GetDllLibXls().XlsChartShape_get_Floor.restype=c_void_p
|
|
545
545
|
intPtr = CallCFunction(GetDllLibXls().XlsChartShape_get_Floor, self.Ptr)
|
|
546
|
-
ret = None if intPtr==None else
|
|
546
|
+
ret = None if intPtr==None else XlsChartWallOrFloor(intPtr)
|
|
547
547
|
return ret
|
|
548
548
|
|
|
549
549
|
|
|
@@ -559,7 +559,7 @@ class XlsChartShape ( XlsShape, IChartShape) :
|
|
|
559
559
|
GetDllLibXls().XlsChartShape_get_DataTable.argtypes=[c_void_p]
|
|
560
560
|
GetDllLibXls().XlsChartShape_get_DataTable.restype=c_void_p
|
|
561
561
|
intPtr = CallCFunction(GetDllLibXls().XlsChartShape_get_DataTable, self.Ptr)
|
|
562
|
-
ret = None if intPtr==None else
|
|
562
|
+
ret = None if intPtr==None else ChartDataTable(intPtr)
|
|
563
563
|
return ret
|
|
564
564
|
|
|
565
565
|
|
|
@@ -661,7 +661,7 @@ class XlsChartShape ( XlsShape, IChartShape) :
|
|
|
661
661
|
GetDllLibXls().XlsChartShape_get_Legend.argtypes=[c_void_p]
|
|
662
662
|
GetDllLibXls().XlsChartShape_get_Legend.restype=c_void_p
|
|
663
663
|
intPtr = CallCFunction(GetDllLibXls().XlsChartShape_get_Legend, self.Ptr)
|
|
664
|
-
ret = None if intPtr==None else
|
|
664
|
+
ret = None if intPtr==None else ChartLegend(intPtr)
|
|
665
665
|
return ret
|
|
666
666
|
|
|
667
667
|
|
|
@@ -1216,7 +1216,7 @@ class XlsChartShape ( XlsShape, IChartShape) :
|
|
|
1216
1216
|
GetDllLibXls().XlsChartShape_get_ChartTitleArea.argtypes=[c_void_p]
|
|
1217
1217
|
GetDllLibXls().XlsChartShape_get_ChartTitleArea.restype=c_void_p
|
|
1218
1218
|
intPtr = CallCFunction(GetDllLibXls().XlsChartShape_get_ChartTitleArea, self.Ptr)
|
|
1219
|
-
ret = None if intPtr==None else
|
|
1219
|
+
ret = None if intPtr==None else XlsChartTitleArea(intPtr)
|
|
1220
1220
|
return ret
|
|
1221
1221
|
|
|
1222
1222
|
|
|
@@ -304,6 +304,7 @@ class XlsChartTitleArea ( XlsObject, IChartTextArea, IFont, IOptimizedUpdate) :
|
|
|
304
304
|
Returns:
|
|
305
305
|
IChartFrameFormat: The frame format of the chart title area.
|
|
306
306
|
"""
|
|
307
|
+
from spire.xls.charts.XlsChartFrameFormat import XlsChartFrameFormat
|
|
307
308
|
GetDllLibXls().XlsChartTitleArea_get_FrameFormat.argtypes=[c_void_p]
|
|
308
309
|
GetDllLibXls().XlsChartTitleArea_get_FrameFormat.restype=c_void_p
|
|
309
310
|
intPtr = CallCFunction(GetDllLibXls().XlsChartTitleArea_get_FrameFormat, self.Ptr)
|
|
@@ -376,6 +377,7 @@ class XlsChartTitleArea ( XlsObject, IChartTextArea, IFont, IOptimizedUpdate) :
|
|
|
376
377
|
Returns:
|
|
377
378
|
XlsFont: The font of the chart title area.
|
|
378
379
|
"""
|
|
380
|
+
from spire.xls.XlsFont import XlsFont
|
|
379
381
|
GetDllLibXls().XlsChartTitleArea_get_Font.argtypes=[c_void_p]
|
|
380
382
|
GetDllLibXls().XlsChartTitleArea_get_Font.restype=c_void_p
|
|
381
383
|
intPtr = CallCFunction(GetDllLibXls().XlsChartTitleArea_get_Font, self.Ptr)
|
|
@@ -19,6 +19,7 @@ class XlsChartWallOrFloor ( XlsObject, IChartWallOrFloor, IChartFillBorder) :
|
|
|
19
19
|
Returns:
|
|
20
20
|
ChartBorder: The border of the chart wall or floor.
|
|
21
21
|
"""
|
|
22
|
+
from spire.xls.charts.ChartBorder import ChartBorder
|
|
22
23
|
GetDllLibXls().XlsChartWallOrFloor_get_Border.argtypes=[c_void_p]
|
|
23
24
|
GetDllLibXls().XlsChartWallOrFloor_get_Border.restype=c_void_p
|
|
24
25
|
intPtr = CallCFunction(GetDllLibXls().XlsChartWallOrFloor_get_Border, self.Ptr)
|
|
@@ -87,6 +88,7 @@ class XlsChartWallOrFloor ( XlsObject, IChartWallOrFloor, IChartFillBorder) :
|
|
|
87
88
|
Returns:
|
|
88
89
|
ChartBorder: The line properties of the chart wall or floor.
|
|
89
90
|
"""
|
|
91
|
+
from spire.xls.charts.ChartBorder import ChartBorder
|
|
90
92
|
GetDllLibXls().XlsChartWallOrFloor_get_LineProperties.argtypes=[c_void_p]
|
|
91
93
|
GetDllLibXls().XlsChartWallOrFloor_get_LineProperties.restype=c_void_p
|
|
92
94
|
intPtr = CallCFunction(GetDllLibXls().XlsChartWallOrFloor_get_LineProperties, self.Ptr)
|
|
@@ -103,10 +105,11 @@ class XlsChartWallOrFloor ( XlsObject, IChartWallOrFloor, IChartFillBorder) :
|
|
|
103
105
|
Returns:
|
|
104
106
|
IChartInterior: The interior of the chart wall or floor.
|
|
105
107
|
"""
|
|
108
|
+
from spire.xls.charts.ChartInterior import ChartInterior
|
|
106
109
|
GetDllLibXls().XlsChartWallOrFloor_get_Interior.argtypes=[c_void_p]
|
|
107
110
|
GetDllLibXls().XlsChartWallOrFloor_get_Interior.restype=c_void_p
|
|
108
111
|
intPtr = CallCFunction(GetDllLibXls().XlsChartWallOrFloor_get_Interior, self.Ptr)
|
|
109
|
-
ret = None if intPtr==None else
|
|
112
|
+
ret = None if intPtr==None else ChartInterior(intPtr)
|
|
110
113
|
return ret
|
|
111
114
|
|
|
112
115
|
|
|
@@ -135,6 +138,7 @@ class XlsChartWallOrFloor ( XlsObject, IChartWallOrFloor, IChartFillBorder) :
|
|
|
135
138
|
Returns:
|
|
136
139
|
Format3D: The 3D format of the chart wall or floor.
|
|
137
140
|
"""
|
|
141
|
+
from spire.xls.Format3D import Format3D
|
|
138
142
|
GetDllLibXls().XlsChartWallOrFloor_get_Format3D.argtypes=[c_void_p]
|
|
139
143
|
GetDllLibXls().XlsChartWallOrFloor_get_Format3D.restype=c_void_p
|
|
140
144
|
intPtr = CallCFunction(GetDllLibXls().XlsChartWallOrFloor_get_Format3D, self.Ptr)
|
|
@@ -181,7 +185,7 @@ class XlsChartWallOrFloor ( XlsObject, IChartWallOrFloor, IChartFillBorder) :
|
|
|
181
185
|
GetDllLibXls().XlsChartWallOrFloor_Clone.argtypes=[c_void_p ,c_void_p]
|
|
182
186
|
GetDllLibXls().XlsChartWallOrFloor_Clone.restype=c_void_p
|
|
183
187
|
intPtr = CallCFunction(GetDllLibXls().XlsChartWallOrFloor_Clone, self.Ptr, intPtrparent)
|
|
184
|
-
ret = None if intPtr==None else
|
|
188
|
+
ret = None if intPtr==None else XlsChartWallOrFloor(intPtr)
|
|
185
189
|
return ret
|
|
186
190
|
|
|
187
191
|
|
|
@@ -239,6 +243,7 @@ class XlsChartWallOrFloor ( XlsObject, IChartWallOrFloor, IChartFillBorder) :
|
|
|
239
243
|
GetDllLibXls().XlsChartWallOrFloor_get_ForeGroundColorObject.argtypes=[c_void_p]
|
|
240
244
|
GetDllLibXls().XlsChartWallOrFloor_get_ForeGroundColorObject.restype=c_void_p
|
|
241
245
|
intPtr = CallCFunction(GetDllLibXls().XlsChartWallOrFloor_get_ForeGroundColorObject, self.Ptr)
|
|
246
|
+
from spire.xls.OColor import OColor
|
|
242
247
|
ret = None if intPtr==None else OColor(intPtr)
|
|
243
248
|
return ret
|
|
244
249
|
|
|
@@ -293,6 +298,7 @@ class XlsChartWallOrFloor ( XlsObject, IChartWallOrFloor, IChartFillBorder) :
|
|
|
293
298
|
GetDllLibXls().XlsChartWallOrFloor_get_BackGroundColorObject.argtypes=[c_void_p]
|
|
294
299
|
GetDllLibXls().XlsChartWallOrFloor_get_BackGroundColorObject.restype=c_void_p
|
|
295
300
|
intPtr = CallCFunction(GetDllLibXls().XlsChartWallOrFloor_get_BackGroundColorObject, self.Ptr)
|
|
301
|
+
from spire.xls.OColor import OColor
|
|
296
302
|
ret = None if intPtr==None else OColor(intPtr)
|
|
297
303
|
return ret
|
|
298
304
|
|
|
@@ -18,6 +18,7 @@ class AutoFiltersCollection ( XlsAutoFiltersCollection) :
|
|
|
18
18
|
Returns:
|
|
19
19
|
Worksheet: The parent worksheet.
|
|
20
20
|
"""
|
|
21
|
+
from spire.xls.Worksheet import Worksheet
|
|
21
22
|
GetDllLibXls().AutoFiltersCollection_get_Worksheet.argtypes=[c_void_p]
|
|
22
23
|
GetDllLibXls().AutoFiltersCollection_get_Worksheet.restype=c_void_p
|
|
23
24
|
intPtr = CallCFunction(GetDllLibXls().AutoFiltersCollection_get_Worksheet, self.Ptr)
|
|
@@ -6,7 +6,7 @@ from spire.xls import *
|
|
|
6
6
|
from ctypes import *
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
|
-
class BordersCollectionArrayWrapper ( IBorders) :
|
|
9
|
+
class BordersCollectionArrayWrapper (CollectionBase[IBorder], IBorders) :
|
|
10
10
|
"""
|
|
11
11
|
Implements the IBorders interface for manipulating Excel cell border collections.
|
|
12
12
|
"""
|
|
@@ -74,7 +74,7 @@ class BordersCollectionArrayWrapper ( IBorders) :
|
|
|
74
74
|
GetDllLibXls().BordersCollectionArrayWrapper_get_Item.argtypes=[c_void_p ,c_int]
|
|
75
75
|
GetDllLibXls().BordersCollectionArrayWrapper_get_Item.restype=c_void_p
|
|
76
76
|
intPtr = CallCFunction(GetDllLibXls().BordersCollectionArrayWrapper_get_Item, self.Ptr, enumIndex)
|
|
77
|
-
ret = None if intPtr==None else
|
|
77
|
+
ret = None if intPtr==None else XlsBorderArrayWrapper(intPtr)
|
|
78
78
|
return ret
|
|
79
79
|
|
|
80
80
|
@property
|
|
@@ -6,7 +6,7 @@ from spire.xls import *
|
|
|
6
6
|
from ctypes import *
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
|
-
class ButtonShapeCollection (
|
|
9
|
+
class ButtonShapeCollection ( CollectionBase[IButtonShape], IButtonShapes) :
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
"""
|
|
@@ -20,7 +20,7 @@ class ButtonShapeCollection ( IButtonShapes) :
|
|
|
20
20
|
GetDllLibXls().ButtonShapeCollection_get_Item.argtypes=[c_void_p ,c_int]
|
|
21
21
|
GetDllLibXls().ButtonShapeCollection_get_Item.restype=c_void_p
|
|
22
22
|
intPtr = CallCFunction(GetDllLibXls().ButtonShapeCollection_get_Item, self.Ptr, index)
|
|
23
|
-
ret = None if intPtr==None else
|
|
23
|
+
ret = None if intPtr==None else XlsButtonShape(intPtr)
|
|
24
24
|
return ret
|
|
25
25
|
|
|
26
26
|
|
|
@@ -34,7 +34,7 @@ class ButtonShapeCollection ( IButtonShapes) :
|
|
|
34
34
|
GetDllLibXls().ButtonShapeCollection_get_ItemN.argtypes=[c_void_p ,c_void_p]
|
|
35
35
|
GetDllLibXls().ButtonShapeCollection_get_ItemN.restype=c_void_p
|
|
36
36
|
intPtr = CallCFunction(GetDllLibXls().ButtonShapeCollection_get_ItemN, self.Ptr, name)
|
|
37
|
-
ret = None if intPtr==None else
|
|
37
|
+
ret = None if intPtr==None else XlsButtonShape(intPtr)
|
|
38
38
|
return ret
|
|
39
39
|
|
|
40
40
|
|
|
@@ -47,7 +47,7 @@ class ButtonShapeCollection ( IButtonShapes) :
|
|
|
47
47
|
GetDllLibXls().ButtonShapeCollection_AddButton.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
|
|
48
48
|
GetDllLibXls().ButtonShapeCollection_AddButton.restype=c_void_p
|
|
49
49
|
intPtr = CallCFunction(GetDllLibXls().ButtonShapeCollection_AddButton, self.Ptr, row,column,height,width)
|
|
50
|
-
ret = None if intPtr==None else
|
|
50
|
+
ret = None if intPtr==None else XlsButtonShape(intPtr)
|
|
51
51
|
return ret
|
|
52
52
|
|
|
53
53
|
|
|
@@ -4,9 +4,10 @@ from typing import TypeVar,Union,Generic,List,Tuple
|
|
|
4
4
|
from spire.xls.common import *
|
|
5
5
|
from spire.xls import *
|
|
6
6
|
from ctypes import *
|
|
7
|
+
from spire.xls.ExternalLink import ExternalLink
|
|
7
8
|
import abc
|
|
8
9
|
|
|
9
|
-
class ExternalLinkCollection (
|
|
10
|
+
class ExternalLinkCollection (CollectionBase[ExternalLink]) :
|
|
10
11
|
"""
|
|
11
12
|
|
|
12
13
|
"""
|
|
@@ -6,7 +6,7 @@ from spire.xls import *
|
|
|
6
6
|
from ctypes import *
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
|
-
class GroupBoxCollection (
|
|
9
|
+
class GroupBoxCollection (CollectionBase[IGroupBox], IGroupBoxes) :
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
"""
|
|
@@ -20,7 +20,7 @@ class GroupBoxCollection ( IGroupBoxes) :
|
|
|
20
20
|
GetDllLibXls().GroupBoxCollection_get_Item.argtypes=[c_void_p ,c_int]
|
|
21
21
|
GetDllLibXls().GroupBoxCollection_get_Item.restype=c_void_p
|
|
22
22
|
intPtr = CallCFunction(GetDllLibXls().GroupBoxCollection_get_Item, self.Ptr, index)
|
|
23
|
-
ret = None if intPtr==None else
|
|
23
|
+
ret = None if intPtr==None else XlsGroupBoxShape(intPtr)
|
|
24
24
|
return ret
|
|
25
25
|
|
|
26
26
|
|
|
@@ -34,7 +34,7 @@ class GroupBoxCollection ( IGroupBoxes) :
|
|
|
34
34
|
GetDllLibXls().GroupBoxCollection_get_ItemN.argtypes=[c_void_p ,c_void_p]
|
|
35
35
|
GetDllLibXls().GroupBoxCollection_get_ItemN.restype=c_void_p
|
|
36
36
|
intPtr = CallCFunction(GetDllLibXls().GroupBoxCollection_get_ItemN, self.Ptr, name)
|
|
37
|
-
ret = None if intPtr==None else
|
|
37
|
+
ret = None if intPtr==None else XlsGroupBoxShape(intPtr)
|
|
38
38
|
return ret
|
|
39
39
|
|
|
40
40
|
|
|
@@ -47,7 +47,7 @@ class GroupBoxCollection ( IGroupBoxes) :
|
|
|
47
47
|
GetDllLibXls().GroupBoxCollection_AddGroupBox.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
|
|
48
48
|
GetDllLibXls().GroupBoxCollection_AddGroupBox.restype=c_void_p
|
|
49
49
|
intPtr = CallCFunction(GetDllLibXls().GroupBoxCollection_AddGroupBox, self.Ptr, row,column,height,width)
|
|
50
|
-
ret = None if intPtr==None else
|
|
50
|
+
ret = None if intPtr==None else XlsGroupBoxShape(intPtr)
|
|
51
51
|
return ret
|
|
52
52
|
|
|
53
53
|
|
|
@@ -388,7 +388,7 @@ class RangesCollection ( XlsRangesCollection) :
|
|
|
388
388
|
GetDllLibXls().RangesCollection_get_EntireRow.argtypes=[c_void_p]
|
|
389
389
|
GetDllLibXls().RangesCollection_get_EntireRow.restype=c_void_p
|
|
390
390
|
intPtr = CallCFunction(GetDllLibXls().RangesCollection_get_EntireRow, self.Ptr)
|
|
391
|
-
ret = None if intPtr==None else
|
|
391
|
+
ret = None if intPtr==None else XlsRangesCollection(intPtr)
|
|
392
392
|
return ret
|
|
393
393
|
|
|
394
394
|
|
|
@@ -402,7 +402,7 @@ class RangesCollection ( XlsRangesCollection) :
|
|
|
402
402
|
GetDllLibXls().RangesCollection_get_EntireColumn.argtypes=[c_void_p]
|
|
403
403
|
GetDllLibXls().RangesCollection_get_EntireColumn.restype=c_void_p
|
|
404
404
|
intPtr = CallCFunction(GetDllLibXls().RangesCollection_get_EntireColumn, self.Ptr)
|
|
405
|
-
ret = None if intPtr==None else
|
|
405
|
+
ret = None if intPtr==None else XlsRangesCollection(intPtr)
|
|
406
406
|
return ret
|
|
407
407
|
|
|
408
408
|
|
|
@@ -503,7 +503,7 @@ class RangesCollection ( XlsRangesCollection) :
|
|
|
503
503
|
GetDllLibXls().RangesCollection_get_MergeArea.argtypes=[c_void_p]
|
|
504
504
|
GetDllLibXls().RangesCollection_get_MergeArea.restype=c_void_p
|
|
505
505
|
intPtr = CallCFunction(GetDllLibXls().RangesCollection_get_MergeArea, self.Ptr)
|
|
506
|
-
ret = None if intPtr==None else
|
|
506
|
+
ret = None if intPtr==None else XlsRangesCollection(intPtr)
|
|
507
507
|
return ret
|
|
508
508
|
|
|
509
509
|
|
|
@@ -546,6 +546,7 @@ class RangesCollection ( XlsRangesCollection) :
|
|
|
546
546
|
"""
|
|
547
547
|
|
|
548
548
|
"""
|
|
549
|
+
from spire.xls import Worksheet
|
|
549
550
|
GetDllLibXls().RangesCollection_get_Worksheet.argtypes=[c_void_p]
|
|
550
551
|
GetDllLibXls().RangesCollection_get_Worksheet.restype=c_void_p
|
|
551
552
|
intPtr = CallCFunction(GetDllLibXls().RangesCollection_get_Worksheet, self.Ptr)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
from enum import Enum
|
|
2
2
|
from plum import dispatch
|
|
3
|
-
from typing import TypeVar,Union,Generic,List,Tuple
|
|
3
|
+
from typing import TypeVar,Union,Generic,List,Tuple,Optional
|
|
4
4
|
from spire.xls.common import *
|
|
5
5
|
from spire.xls import *
|
|
6
6
|
from ctypes import *
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
|
-
class ShapeCollectionBase (SpireObject) :
|
|
9
|
+
class ShapeCollectionBase (CollectionBase[IShape],SpireObject) :
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
"""
|
|
@@ -20,7 +20,7 @@ class ShapeCollectionBase (SpireObject) :
|
|
|
20
20
|
GetDllLibXls().ShapeCollectionBase_get_Item.argtypes=[c_void_p ,c_int]
|
|
21
21
|
GetDllLibXls().ShapeCollectionBase_get_Item.restype=c_void_p
|
|
22
22
|
intPtr = CallCFunction(GetDllLibXls().ShapeCollectionBase_get_Item, self.Ptr, index)
|
|
23
|
-
ret = None if intPtr==None else
|
|
23
|
+
ret = None if intPtr==None else XlsShape(intPtr)
|
|
24
24
|
return ret
|
|
25
25
|
|
|
26
26
|
|
|
@@ -34,7 +34,7 @@ class ShapeCollectionBase (SpireObject) :
|
|
|
34
34
|
GetDllLibXls().ShapeCollectionBase_get_ItemS.argtypes=[c_void_p ,c_void_p]
|
|
35
35
|
GetDllLibXls().ShapeCollectionBase_get_ItemS.restype=c_void_p
|
|
36
36
|
intPtr = CallCFunction(GetDllLibXls().ShapeCollectionBase_get_ItemS, self.Ptr, strShapeName)
|
|
37
|
-
ret = None if intPtr==None else
|
|
37
|
+
ret = None if intPtr==None else XlsShape(intPtr)
|
|
38
38
|
return ret
|
|
39
39
|
|
|
40
40
|
|
|
@@ -58,7 +58,7 @@ class ShapeCollectionBase (SpireObject) :
|
|
|
58
58
|
|
|
59
59
|
@dispatch
|
|
60
60
|
|
|
61
|
-
def AddCopy(self ,sourceShape:IShape)->IShape:
|
|
61
|
+
def AddCopy(self ,sourceShape:IShape)->Optional[IShape]:
|
|
62
62
|
"""
|
|
63
63
|
|
|
64
64
|
"""
|
|
@@ -67,7 +67,7 @@ class ShapeCollectionBase (SpireObject) :
|
|
|
67
67
|
GetDllLibXls().ShapeCollectionBase_AddCopyS.argtypes=[c_void_p ,c_void_p]
|
|
68
68
|
GetDllLibXls().ShapeCollectionBase_AddCopyS.restype=c_void_p
|
|
69
69
|
intPtr = CallCFunction(GetDllLibXls().ShapeCollectionBase_AddCopyS, self.Ptr, intPtrsourceShape)
|
|
70
|
-
ret = None if intPtr==None else
|
|
70
|
+
ret = None if intPtr==None else XlsShape(intPtr)
|
|
71
71
|
return ret
|
|
72
72
|
|
|
73
73
|
|
|
@@ -97,9 +97,9 @@ class WorksheetsCollection ( XlsWorksheetsCollection) :
|
|
|
97
97
|
Worksheet: The created worksheet.
|
|
98
98
|
"""
|
|
99
99
|
|
|
100
|
-
GetDllLibXls().
|
|
101
|
-
GetDllLibXls().
|
|
102
|
-
intPtr = CallCFunction(GetDllLibXls().
|
|
100
|
+
GetDllLibXls().WorksheetsCollection_CreateN.argtypes=[c_void_p ,c_void_p]
|
|
101
|
+
GetDllLibXls().WorksheetsCollection_CreateN.restype=c_void_p
|
|
102
|
+
intPtr = CallCFunction(GetDllLibXls().WorksheetsCollection_CreateN, self.Ptr, name)
|
|
103
103
|
ret = None if intPtr==None else Worksheet(intPtr)
|
|
104
104
|
return ret
|
|
105
105
|
|
|
@@ -113,9 +113,9 @@ class WorksheetsCollection ( XlsWorksheetsCollection) :
|
|
|
113
113
|
Returns:
|
|
114
114
|
Worksheet: The created worksheet.
|
|
115
115
|
"""
|
|
116
|
-
GetDllLibXls().
|
|
117
|
-
GetDllLibXls().
|
|
118
|
-
intPtr = CallCFunction(GetDllLibXls().
|
|
116
|
+
GetDllLibXls().WorksheetsCollection_Create.argtypes=[c_void_p]
|
|
117
|
+
GetDllLibXls().WorksheetsCollection_Create.restype=c_void_p
|
|
118
|
+
intPtr = CallCFunction(GetDllLibXls().WorksheetsCollection_Create, self.Ptr)
|
|
119
119
|
ret = None if intPtr==None else Worksheet(intPtr)
|
|
120
120
|
return ret
|
|
121
121
|
|
|
@@ -6,7 +6,7 @@ from spire.xls import *
|
|
|
6
6
|
from ctypes import *
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
|
-
class XlsBordersCollection ( CollectionBase[XlsBorder],IBorders) :
|
|
9
|
+
class XlsBordersCollection ( CollectionBase[XlsBorder],IBorders,SpireObject) :
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
"""
|
|
@@ -57,7 +57,7 @@ class XlsBordersCollection ( CollectionBase[XlsBorder],IBorders) :
|
|
|
57
57
|
GetDllLibXls().XlsBordersCollection_get_Item.argtypes=[c_void_p ,c_int]
|
|
58
58
|
GetDllLibXls().XlsBordersCollection_get_Item.restype=c_void_p
|
|
59
59
|
intPtr = CallCFunction(GetDllLibXls().XlsBordersCollection_get_Item, self.Ptr, enumindex)
|
|
60
|
-
ret = None if intPtr==None else
|
|
60
|
+
ret = None if intPtr==None else XlsBorder(intPtr)
|
|
61
61
|
return ret
|
|
62
62
|
|
|
63
63
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
from enum import Enum
|
|
2
2
|
from plum import dispatch
|
|
3
|
-
from typing import TypeVar,Union,Generic,List,Tuple
|
|
3
|
+
from typing import TypeVar,Union,Generic,List,Tuple,Optional
|
|
4
4
|
from spire.xls.common import *
|
|
5
5
|
from spire.xls import *
|
|
6
6
|
from ctypes import *
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
|
-
class XlsChartFormatCollection ( ICloneParent) :
|
|
9
|
+
class XlsChartFormatCollection (CollectionBase[XlsChartFormat], ICloneParent) :
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
"""
|
|
@@ -46,7 +46,7 @@ class XlsChartFormatCollection ( ICloneParent) :
|
|
|
46
46
|
|
|
47
47
|
@dispatch
|
|
48
48
|
|
|
49
|
-
def Add(self ,format:XlsChartFormat)->XlsChartFormat:
|
|
49
|
+
def Add(self ,format:XlsChartFormat)->Optional[XlsChartFormat]:
|
|
50
50
|
"""
|
|
51
51
|
|
|
52
52
|
"""
|
|
@@ -61,7 +61,7 @@ class XlsChartFormatCollection ( ICloneParent) :
|
|
|
61
61
|
|
|
62
62
|
@dispatch
|
|
63
63
|
|
|
64
|
-
def Add(self ,format:XlsChartFormat,bCanReplace:bool)->XlsChartFormat:
|
|
64
|
+
def Add(self ,format:XlsChartFormat,bCanReplace:bool)->Optional[XlsChartFormat]:
|
|
65
65
|
"""
|
|
66
66
|
|
|
67
67
|
"""
|
|
@@ -43,16 +43,16 @@ class XlsChartSeries ( CollectionBase[XlsChartSerie],ICloneParent, IChartSeries
|
|
|
43
43
|
|
|
44
44
|
@dispatch
|
|
45
45
|
|
|
46
|
-
def Clone(self ,parent:SpireObject)->
|
|
46
|
+
def Clone(self ,parent:SpireObject)->'XlsChartSeries':
|
|
47
47
|
"""
|
|
48
|
-
|
|
48
|
+
parent : ChartSheet or Chart
|
|
49
49
|
"""
|
|
50
50
|
intPtrparent:c_void_p = parent.Ptr
|
|
51
51
|
|
|
52
52
|
GetDllLibXls().XlsChartSeries_Clone.argtypes=[c_void_p ,c_void_p]
|
|
53
53
|
GetDllLibXls().XlsChartSeries_Clone.restype=c_void_p
|
|
54
54
|
intPtr = CallCFunction(GetDllLibXls().XlsChartSeries_Clone, self.Ptr, intPtrparent)
|
|
55
|
-
ret = None if intPtr==None else
|
|
55
|
+
ret = None if intPtr==None else XlsChartSeries(intPtr)
|
|
56
56
|
return ret
|
|
57
57
|
|
|
58
58
|
|
|
@@ -15,11 +15,11 @@ class XlsChartsCollection (CollectionBase[IChart], ICharts) :
|
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
"""
|
|
18
|
-
|
|
18
|
+
from spire.xls.charts.ChartSheet import ChartSheet
|
|
19
19
|
GetDllLibXls().XlsChartsCollection_get_Item.argtypes=[c_void_p ,c_void_p]
|
|
20
20
|
GetDllLibXls().XlsChartsCollection_get_Item.restype=c_void_p
|
|
21
21
|
intPtr = CallCFunction(GetDllLibXls().XlsChartsCollection_get_Item, self.Ptr, name)
|
|
22
|
-
ret = None if intPtr==None else
|
|
22
|
+
ret = None if intPtr==None else ChartSheet(intPtr)
|
|
23
23
|
return ret
|
|
24
24
|
|
|
25
25
|
|
|
@@ -29,10 +29,11 @@ class XlsChartsCollection (CollectionBase[IChart], ICharts) :
|
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
31
|
"""
|
|
32
|
+
from spire.xls.charts.ChartSheet import ChartSheet
|
|
32
33
|
GetDllLibXls().XlsChartsCollection_Add.argtypes=[c_void_p]
|
|
33
34
|
GetDllLibXls().XlsChartsCollection_Add.restype=c_void_p
|
|
34
35
|
intPtr = CallCFunction(GetDllLibXls().XlsChartsCollection_Add, self.Ptr)
|
|
35
|
-
ret = None if intPtr==None else
|
|
36
|
+
ret = None if intPtr==None else ChartSheet(intPtr)
|
|
36
37
|
return ret
|
|
37
38
|
|
|
38
39
|
|
|
@@ -42,11 +43,11 @@ class XlsChartsCollection (CollectionBase[IChart], ICharts) :
|
|
|
42
43
|
"""
|
|
43
44
|
|
|
44
45
|
"""
|
|
45
|
-
|
|
46
|
+
from spire.xls.charts.ChartSheet import ChartSheet
|
|
46
47
|
GetDllLibXls().XlsChartsCollection_AddN.argtypes=[c_void_p ,c_void_p]
|
|
47
48
|
GetDllLibXls().XlsChartsCollection_AddN.restype=c_void_p
|
|
48
49
|
intPtr = CallCFunction(GetDllLibXls().XlsChartsCollection_AddN, self.Ptr, name)
|
|
49
|
-
ret = None if intPtr==None else
|
|
50
|
+
ret = None if intPtr==None else ChartSheet(intPtr)
|
|
50
51
|
return ret
|
|
51
52
|
|
|
52
53
|
|
|
@@ -55,11 +56,11 @@ class XlsChartsCollection (CollectionBase[IChart], ICharts) :
|
|
|
55
56
|
"""
|
|
56
57
|
|
|
57
58
|
"""
|
|
58
|
-
|
|
59
|
+
from spire.xls.charts.ChartSheet import ChartSheet
|
|
59
60
|
GetDllLibXls().XlsChartsCollection_Remove.argtypes=[c_void_p ,c_void_p]
|
|
60
61
|
GetDllLibXls().XlsChartsCollection_Remove.restype=c_void_p
|
|
61
62
|
intPtr = CallCFunction(GetDllLibXls().XlsChartsCollection_Remove, self.Ptr, name)
|
|
62
|
-
ret = None if intPtr==None else
|
|
63
|
+
ret = None if intPtr==None else ChartSheet(intPtr)
|
|
63
64
|
return ret
|
|
64
65
|
|
|
65
66
|
|
|
@@ -78,12 +79,13 @@ class XlsChartsCollection (CollectionBase[IChart], ICharts) :
|
|
|
78
79
|
"""
|
|
79
80
|
|
|
80
81
|
"""
|
|
82
|
+
from spire.xls.charts.ChartSheet import ChartSheet
|
|
81
83
|
intPtrchartToAdd:c_void_p = chartToAdd.Ptr
|
|
82
84
|
|
|
83
85
|
GetDllLibXls().XlsChartsCollection_AddC.argtypes=[c_void_p ,c_void_p]
|
|
84
86
|
GetDllLibXls().XlsChartsCollection_AddC.restype=c_void_p
|
|
85
87
|
intPtr = CallCFunction(GetDllLibXls().XlsChartsCollection_AddC, self.Ptr, intPtrchartToAdd)
|
|
86
|
-
ret = None if intPtr==None else
|
|
88
|
+
ret = None if intPtr==None else ChartSheet(intPtr)
|
|
87
89
|
return ret
|
|
88
90
|
|
|
89
91
|
|
|
@@ -6,7 +6,7 @@ from spire.xls import *
|
|
|
6
6
|
from ctypes import *
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
|
-
class XlsDataValidationCollection ( IDataValidationCollection) :
|
|
9
|
+
class XlsDataValidationCollection (CollectionBase[IDataValidationTable], IDataValidationCollection) :
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
"""
|
|
@@ -19,7 +19,7 @@ class XlsDataValidationCollection ( IDataValidationCollection) :
|
|
|
19
19
|
GetDllLibXls().XlsDataValidationCollection_get_ParentTable.argtypes=[c_void_p]
|
|
20
20
|
GetDllLibXls().XlsDataValidationCollection_get_ParentTable.restype=c_void_p
|
|
21
21
|
intPtr = CallCFunction(GetDllLibXls().XlsDataValidationCollection_get_ParentTable, self.Ptr)
|
|
22
|
-
ret = None if intPtr==None else
|
|
22
|
+
ret = None if intPtr==None else XlsDataValidationTable(intPtr)
|
|
23
23
|
return ret
|
|
24
24
|
|
|
25
25
|
|
|
@@ -29,6 +29,7 @@ class XlsDataValidationCollection ( IDataValidationCollection) :
|
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
31
|
"""
|
|
32
|
+
from spire.xls.Workbook import Workbook
|
|
32
33
|
GetDllLibXls().XlsDataValidationCollection_get_Workbook.argtypes=[c_void_p]
|
|
33
34
|
GetDllLibXls().XlsDataValidationCollection_get_Workbook.restype=c_void_p
|
|
34
35
|
intPtr = CallCFunction(GetDllLibXls().XlsDataValidationCollection_get_Workbook, self.Ptr)
|
|
@@ -42,6 +43,7 @@ class XlsDataValidationCollection ( IDataValidationCollection) :
|
|
|
42
43
|
"""
|
|
43
44
|
|
|
44
45
|
"""
|
|
46
|
+
from spire.xls.Worksheet import Worksheet
|
|
45
47
|
GetDllLibXls().XlsDataValidationCollection_get_Worksheet.argtypes=[c_void_p]
|
|
46
48
|
GetDllLibXls().XlsDataValidationCollection_get_Worksheet.restype=c_void_p
|
|
47
49
|
intPtr = CallCFunction(GetDllLibXls().XlsDataValidationCollection_get_Worksheet, self.Ptr)
|
|
@@ -4,9 +4,10 @@ from typing import TypeVar,Union,Generic,List,Tuple
|
|
|
4
4
|
from spire.xls.common import *
|
|
5
5
|
from spire.xls import *
|
|
6
6
|
from ctypes import *
|
|
7
|
+
from spire.xls.XlsFont import XlsFont
|
|
7
8
|
import abc
|
|
8
9
|
|
|
9
|
-
class XlsFontsCollection (SpireObject) :
|
|
10
|
+
class XlsFontsCollection (CollectionBase[XlsFont],SpireObject) :
|
|
10
11
|
"""
|
|
11
12
|
|
|
12
13
|
"""
|