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
spire/xls/XlsWorksheet.py
CHANGED
|
@@ -158,7 +158,7 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
158
158
|
|
|
159
159
|
@dispatch
|
|
160
160
|
|
|
161
|
-
def Subtotal(self ,
|
|
161
|
+
def Subtotal(self ,cellRange:IXLSRange,groupByIndex:int,totalFields:List[int],subtotalType:SubtotalTypes):
|
|
162
162
|
"""Creates subtotals for the specified range.
|
|
163
163
|
|
|
164
164
|
This method creates subtotals for the specified range using the given grouping field,
|
|
@@ -171,7 +171,7 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
171
171
|
to which the subtotals are added.
|
|
172
172
|
subtotalType (SubtotalTypes): The type of subtotal to calculate (e.g., sum, average, count).
|
|
173
173
|
"""
|
|
174
|
-
intPtrrange:c_void_p =
|
|
174
|
+
intPtrrange:c_void_p = cellRange.Ptr
|
|
175
175
|
#arraytotalFields:ArrayTypetotalFields = ""
|
|
176
176
|
counttotalFields = len(totalFields)
|
|
177
177
|
ArrayTypetotalFields = c_int * counttotalFields
|
|
@@ -266,7 +266,7 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
266
266
|
GetDllLibXls().XlsWorksheet_GetDefaultRowStyle.argtypes=[c_void_p ,c_int]
|
|
267
267
|
GetDllLibXls().XlsWorksheet_GetDefaultRowStyle.restype=c_void_p
|
|
268
268
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GetDefaultRowStyle, self.Ptr, rowIndex)
|
|
269
|
-
ret = None if intPtr==None else
|
|
269
|
+
ret = None if intPtr==None else AddtionalFormatWrapper(intPtr)
|
|
270
270
|
return ret
|
|
271
271
|
|
|
272
272
|
|
|
@@ -933,51 +933,51 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
933
933
|
GetDllLibXls().XlsWorksheet_ReplaceONI11.argtypes=[c_void_p ,c_void_p,ArrayTypenewValues,c_int,c_bool]
|
|
934
934
|
CallCFunction(GetDllLibXls().XlsWorksheet_ReplaceONI11, self.Ptr, oldValue,arraynewValues,countnewValues,isVertical)
|
|
935
935
|
|
|
936
|
-
@dispatch
|
|
936
|
+
# @dispatch
|
|
937
937
|
|
|
938
|
-
def SaveToImage(self ,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int)->Stream:
|
|
939
|
-
|
|
938
|
+
# def SaveToImage(self ,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int)->Stream:
|
|
939
|
+
# """
|
|
940
940
|
|
|
941
|
-
|
|
941
|
+
# """
|
|
942
942
|
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
943
|
+
# GetDllLibXls().XlsWorksheet_SaveToImage.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
|
|
944
|
+
# GetDllLibXls().XlsWorksheet_SaveToImage.restype=c_void_p
|
|
945
|
+
# intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_SaveToImage, self.Ptr, firstRow,firstColumn,lastRow,lastColumn)
|
|
946
|
+
# ret = None if intPtr==None else Stream(intPtr)
|
|
947
|
+
# return ret
|
|
948
948
|
|
|
949
949
|
|
|
950
|
-
@dispatch
|
|
950
|
+
# @dispatch
|
|
951
951
|
|
|
952
|
-
def SaveToImage(self ,fileName:str,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int):
|
|
953
|
-
|
|
954
|
-
|
|
952
|
+
# def SaveToImage(self ,fileName:str,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int):
|
|
953
|
+
# """
|
|
954
|
+
# Save worksheet to image.
|
|
955
955
|
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
956
|
+
# Args:
|
|
957
|
+
# fileName: file Name
|
|
958
|
+
# firstRow:
|
|
959
|
+
# firstColumn:
|
|
960
|
+
# lastRow:
|
|
961
|
+
# lastColumn:
|
|
962
962
|
|
|
963
|
-
|
|
963
|
+
# """
|
|
964
964
|
|
|
965
|
-
|
|
966
|
-
|
|
965
|
+
# GetDllLibXls().XlsWorksheet_SaveToImageFFFLL.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int,c_int]
|
|
966
|
+
# CallCFunction(GetDllLibXls().XlsWorksheet_SaveToImageFFFLL, self.Ptr, fileName,firstRow,firstColumn,lastRow,lastColumn)
|
|
967
967
|
|
|
968
|
-
@dispatch
|
|
968
|
+
# @dispatch
|
|
969
969
|
|
|
970
|
-
def SaveToImage(self ,fileName:str):
|
|
971
|
-
|
|
972
|
-
|
|
970
|
+
# def SaveToImage(self ,fileName:str):
|
|
971
|
+
# """
|
|
972
|
+
# Save worksheet to image.
|
|
973
973
|
|
|
974
|
-
|
|
975
|
-
|
|
974
|
+
# Args:
|
|
975
|
+
# fileName: file Name
|
|
976
976
|
|
|
977
|
-
|
|
977
|
+
# """
|
|
978
978
|
|
|
979
|
-
|
|
980
|
-
|
|
979
|
+
# GetDllLibXls().XlsWorksheet_SaveToImageF.argtypes=[c_void_p ,c_void_p]
|
|
980
|
+
# CallCFunction(GetDllLibXls().XlsWorksheet_SaveToImageF, self.Ptr, fileName)
|
|
981
981
|
|
|
982
982
|
# @dispatch
|
|
983
983
|
|
|
@@ -1009,6 +1009,24 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1009
1009
|
ret = None if intPtr==None else Stream(intPtr)
|
|
1010
1010
|
return ret
|
|
1011
1011
|
|
|
1012
|
+
def ToEMFStream(self ,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int)->'Stream':
|
|
1013
|
+
"""
|
|
1014
|
+
Save worksheet to emf image.
|
|
1015
|
+
|
|
1016
|
+
Args:
|
|
1017
|
+
firstRow: One-based index of the first row to convert.
|
|
1018
|
+
firstColumn: One-based index of the first column to convert.
|
|
1019
|
+
lastRow: One-based index of the last row to convert.
|
|
1020
|
+
lastColumn: One-based index of the last column to convert.
|
|
1021
|
+
|
|
1022
|
+
"""
|
|
1023
|
+
|
|
1024
|
+
GetDllLibXls().XlsWorksheet_ToEMFStream.argtypes=[c_void_p ,c_int,c_int,c_int,c_int]
|
|
1025
|
+
GetDllLibXls().XlsWorksheet_ToEMFStream.restype=c_void_p
|
|
1026
|
+
intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_ToEMFStream, self.Ptr, firstRow,firstColumn,lastRow,lastColumn)
|
|
1027
|
+
ret = None if intPtr==None else Stream(intPtr)
|
|
1028
|
+
return ret
|
|
1029
|
+
|
|
1012
1030
|
|
|
1013
1031
|
@dispatch
|
|
1014
1032
|
|
|
@@ -1108,14 +1126,14 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1108
1126
|
|
|
1109
1127
|
|
|
1110
1128
|
|
|
1111
|
-
def SaveToEMFImage(self ,FilePath:str,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int,emfType:'EmfType'):
|
|
1112
|
-
|
|
1129
|
+
# def SaveToEMFImage(self ,FilePath:str,firstRow:int,firstColumn:int,lastRow:int,lastColumn:int,emfType:'EmfType'):
|
|
1130
|
+
# """
|
|
1113
1131
|
|
|
1114
|
-
|
|
1115
|
-
|
|
1132
|
+
# """
|
|
1133
|
+
# enumemfType:c_int = emfType.value
|
|
1116
1134
|
|
|
1117
|
-
|
|
1118
|
-
|
|
1135
|
+
# GetDllLibXls().XlsWorksheet_SaveToEMFImage.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int,c_int,c_int]
|
|
1136
|
+
# CallCFunction(GetDllLibXls().XlsWorksheet_SaveToEMFImage, self.Ptr, FilePath,firstRow,firstColumn,lastRow,lastColumn,enumemfType)
|
|
1119
1137
|
|
|
1120
1138
|
@dispatch
|
|
1121
1139
|
|
|
@@ -1858,7 +1876,7 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1858
1876
|
GetDllLibXls().XlsWorksheet_get_HPageBreaks.argtypes=[c_void_p]
|
|
1859
1877
|
GetDllLibXls().XlsWorksheet_get_HPageBreaks.restype=c_void_p
|
|
1860
1878
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_HPageBreaks, self.Ptr)
|
|
1861
|
-
ret = None if intPtr==None else
|
|
1879
|
+
ret = None if intPtr==None else HPageBreaksCollection(intPtr)
|
|
1862
1880
|
return ret
|
|
1863
1881
|
|
|
1864
1882
|
|
|
@@ -1871,7 +1889,7 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
1871
1889
|
GetDllLibXls().XlsWorksheet_get_HyperLinks.argtypes=[c_void_p]
|
|
1872
1890
|
GetDllLibXls().XlsWorksheet_get_HyperLinks.restype=c_void_p
|
|
1873
1891
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_HyperLinks, self.Ptr)
|
|
1874
|
-
ret = None if intPtr==None else
|
|
1892
|
+
ret = None if intPtr==None else HyperLinksCollection(intPtr)
|
|
1875
1893
|
return ret
|
|
1876
1894
|
|
|
1877
1895
|
|
|
@@ -2084,14 +2102,13 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
2084
2102
|
|
|
2085
2103
|
|
|
2086
2104
|
|
|
2087
|
-
def SetCaculateValue(self ,value:
|
|
2105
|
+
def SetCaculateValue(self ,value:str,row:int,col:int):
|
|
2088
2106
|
"""
|
|
2089
2107
|
|
|
2090
2108
|
"""
|
|
2091
|
-
intPtrvalue:c_void_p = value.Ptr
|
|
2092
2109
|
|
|
2093
|
-
GetDllLibXls().XlsWorksheet_SetCaculateValue.argtypes=[c_void_p ,
|
|
2094
|
-
CallCFunction(GetDllLibXls().XlsWorksheet_SetCaculateValue, self.Ptr,
|
|
2110
|
+
GetDllLibXls().XlsWorksheet_SetCaculateValue.argtypes=[c_void_p ,c_wchar_p,c_int,c_int]
|
|
2111
|
+
CallCFunction(GetDllLibXls().XlsWorksheet_SetCaculateValue, self.Ptr, value,row,col)
|
|
2095
2112
|
|
|
2096
2113
|
# @dispatch
|
|
2097
2114
|
#
|
|
@@ -3176,24 +3193,24 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3176
3193
|
#
|
|
3177
3194
|
|
|
3178
3195
|
|
|
3179
|
-
@dispatch
|
|
3196
|
+
# @dispatch
|
|
3180
3197
|
|
|
3181
|
-
def GetStringValue(self ,cellIndex:int)->str:
|
|
3182
|
-
|
|
3183
|
-
|
|
3198
|
+
# def GetStringValue(self ,cellIndex:int)->str:
|
|
3199
|
+
# """
|
|
3200
|
+
# Returns string value corresponding to the cell.
|
|
3184
3201
|
|
|
3185
|
-
|
|
3186
|
-
|
|
3202
|
+
# Args:
|
|
3203
|
+
# iCellIndex: Cell index to get value from.
|
|
3187
3204
|
|
|
3188
|
-
|
|
3189
|
-
|
|
3205
|
+
# Returns:
|
|
3206
|
+
# String contained by the cell.
|
|
3190
3207
|
|
|
3191
|
-
|
|
3208
|
+
# """
|
|
3192
3209
|
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3210
|
+
# GetDllLibXls().XlsWorksheet_GetStringValue.argtypes=[c_void_p ,c_long]
|
|
3211
|
+
# GetDllLibXls().XlsWorksheet_GetStringValue.restype=c_void_p
|
|
3212
|
+
# ret = PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetStringValue, self.Ptr, cellIndex))
|
|
3213
|
+
# return ret
|
|
3197
3214
|
|
|
3198
3215
|
|
|
3199
3216
|
@dispatch
|
|
@@ -3217,25 +3234,25 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3217
3234
|
return ret
|
|
3218
3235
|
|
|
3219
3236
|
|
|
3220
|
-
@dispatch
|
|
3237
|
+
# @dispatch
|
|
3221
3238
|
|
|
3222
|
-
def GetTextObject(self ,cellIndex:int)->SpireObject:
|
|
3223
|
-
|
|
3224
|
-
|
|
3239
|
+
# def GetTextObject(self ,cellIndex:int)->SpireObject:
|
|
3240
|
+
# """
|
|
3241
|
+
# Returns TextWithFormat object corresponding to the specified cell.
|
|
3225
3242
|
|
|
3226
|
-
|
|
3227
|
-
|
|
3243
|
+
# Args:
|
|
3244
|
+
# cellIndex: Cell index.
|
|
3228
3245
|
|
|
3229
|
-
|
|
3230
|
-
|
|
3246
|
+
# Returns:
|
|
3247
|
+
# Object corresponding to the specified cell.
|
|
3231
3248
|
|
|
3232
|
-
|
|
3249
|
+
# """
|
|
3233
3250
|
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3251
|
+
# GetDllLibXls().XlsWorksheet_GetTextObject.argtypes=[c_void_p ,c_long]
|
|
3252
|
+
# GetDllLibXls().XlsWorksheet_GetTextObject.restype=c_void_p
|
|
3253
|
+
# intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GetTextObject, self.Ptr, cellIndex)
|
|
3254
|
+
# ret = None if intPtr==None else SpireObject(intPtr)
|
|
3255
|
+
# return ret
|
|
3239
3256
|
|
|
3240
3257
|
|
|
3241
3258
|
@dispatch
|
|
@@ -3255,25 +3272,23 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3255
3272
|
|
|
3256
3273
|
GetDllLibXls().XlsWorksheet_GetTextObjectRC.argtypes=[c_void_p ,c_int,c_int]
|
|
3257
3274
|
GetDllLibXls().XlsWorksheet_GetTextObjectRC.restype=c_void_p
|
|
3258
|
-
|
|
3259
|
-
ret = None if intPtr==None else SpireObject(intPtr)
|
|
3260
|
-
return ret
|
|
3275
|
+
return PtrToStr(CallCFunction(GetDllLibXls().XlsWorksheet_GetTextObjectRC, self.Ptr, row,column))
|
|
3261
3276
|
|
|
3262
3277
|
|
|
3263
3278
|
|
|
3264
|
-
def HasArrayFormula(self ,cellIndex:int)->bool:
|
|
3265
|
-
|
|
3266
|
-
|
|
3279
|
+
# def HasArrayFormula(self ,cellIndex:int)->bool:
|
|
3280
|
+
# """
|
|
3281
|
+
# Indicates whether cell contains array-entered formula.
|
|
3267
3282
|
|
|
3268
|
-
|
|
3269
|
-
|
|
3283
|
+
# Args:
|
|
3284
|
+
# cellIndex: cell index.
|
|
3270
3285
|
|
|
3271
|
-
|
|
3286
|
+
# """
|
|
3272
3287
|
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3288
|
+
# GetDllLibXls().XlsWorksheet_HasArrayFormula.argtypes=[c_void_p ,c_long]
|
|
3289
|
+
# GetDllLibXls().XlsWorksheet_HasArrayFormula.restype=c_bool
|
|
3290
|
+
# ret = CallCFunction(GetDllLibXls().XlsWorksheet_HasArrayFormula, self.Ptr, cellIndex)
|
|
3291
|
+
# return ret
|
|
3277
3292
|
|
|
3278
3293
|
|
|
3279
3294
|
def HasArrayFormulaRecord(self ,row:int,column:int)->bool:
|
|
@@ -3339,17 +3354,17 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3339
3354
|
GetDllLibXls().XlsWorksheet_InsertCutRange.argtypes=[c_void_p ,c_void_p,c_int,c_int,c_int]
|
|
3340
3355
|
CallCFunction(GetDllLibXls().XlsWorksheet_InsertCutRange, self.Ptr, intPtrcutRange,rowIndex,colIndex,enummoveOptions)
|
|
3341
3356
|
|
|
3342
|
-
@dispatch
|
|
3357
|
+
# @dispatch
|
|
3343
3358
|
|
|
3344
|
-
def IsArrayFormula(self ,cellIndex:int)->bool:
|
|
3345
|
-
|
|
3359
|
+
# def IsArrayFormula(self ,cellIndex:int)->bool:
|
|
3360
|
+
# """
|
|
3346
3361
|
|
|
3347
|
-
|
|
3362
|
+
# """
|
|
3348
3363
|
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3364
|
+
# GetDllLibXls().XlsWorksheet_IsArrayFormula.argtypes=[c_void_p ,c_long]
|
|
3365
|
+
# GetDllLibXls().XlsWorksheet_IsArrayFormula.restype=c_bool
|
|
3366
|
+
# ret = CallCFunction(GetDllLibXls().XlsWorksheet_IsArrayFormula, self.Ptr, cellIndex)
|
|
3367
|
+
# return ret
|
|
3353
3368
|
|
|
3354
3369
|
@dispatch
|
|
3355
3370
|
|
|
@@ -3643,29 +3658,29 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3643
3658
|
GetDllLibXls().XlsWorksheet_GetDefaultColumnStyle.argtypes=[c_void_p ,c_int]
|
|
3644
3659
|
GetDllLibXls().XlsWorksheet_GetDefaultColumnStyle.restype=c_void_p
|
|
3645
3660
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_GetDefaultColumnStyle, self.Ptr, columnIndex)
|
|
3646
|
-
ret = None if intPtr==None else
|
|
3661
|
+
ret = None if intPtr==None else AddtionalFormatWrapper(intPtr)
|
|
3647
3662
|
return ret
|
|
3648
3663
|
|
|
3649
3664
|
|
|
3650
3665
|
|
|
3651
|
-
def add_CellValueChanged(self ,value:'CellValueChangedEventHandler'):
|
|
3652
|
-
|
|
3666
|
+
# def add_CellValueChanged(self ,value:'CellValueChangedEventHandler'):
|
|
3667
|
+
# """
|
|
3653
3668
|
|
|
3654
|
-
|
|
3655
|
-
|
|
3669
|
+
# """
|
|
3670
|
+
# intPtrvalue:c_void_p = value.Ptr
|
|
3656
3671
|
|
|
3657
|
-
|
|
3658
|
-
|
|
3672
|
+
# GetDllLibXls().XlsWorksheet_add_CellValueChanged.argtypes=[c_void_p ,c_void_p]
|
|
3673
|
+
# CallCFunction(GetDllLibXls().XlsWorksheet_add_CellValueChanged, self.Ptr, intPtrvalue)
|
|
3659
3674
|
|
|
3660
3675
|
|
|
3661
|
-
def remove_CellValueChanged(self ,value:'CellValueChangedEventHandler'):
|
|
3662
|
-
|
|
3676
|
+
# def remove_CellValueChanged(self ,value:'CellValueChangedEventHandler'):
|
|
3677
|
+
# """
|
|
3663
3678
|
|
|
3664
|
-
|
|
3665
|
-
|
|
3679
|
+
# """
|
|
3680
|
+
# intPtrvalue:c_void_p = value.Ptr
|
|
3666
3681
|
|
|
3667
|
-
|
|
3668
|
-
|
|
3682
|
+
# GetDllLibXls().XlsWorksheet_remove_CellValueChanged.argtypes=[c_void_p ,c_void_p]
|
|
3683
|
+
# CallCFunction(GetDllLibXls().XlsWorksheet_remove_CellValueChanged, self.Ptr, intPtrvalue)
|
|
3669
3684
|
|
|
3670
3685
|
@property
|
|
3671
3686
|
def Copying(self)->bool:
|
|
@@ -3716,7 +3731,7 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3716
3731
|
GetDllLibXls().XlsWorksheet_get_AutoFilters.argtypes=[c_void_p]
|
|
3717
3732
|
GetDllLibXls().XlsWorksheet_get_AutoFilters.restype=c_void_p
|
|
3718
3733
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_AutoFilters, self.Ptr)
|
|
3719
|
-
ret = None if intPtr==None else
|
|
3734
|
+
ret = None if intPtr==None else AutoFiltersCollection(intPtr)
|
|
3720
3735
|
return ret
|
|
3721
3736
|
|
|
3722
3737
|
|
|
@@ -3735,18 +3750,18 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
3735
3750
|
return ret
|
|
3736
3751
|
|
|
3737
3752
|
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3753
|
+
@property
|
|
3754
|
+
|
|
3755
|
+
def CellList(self)->List['CellRange']:
|
|
3756
|
+
"""
|
|
3757
|
+
|
|
3758
|
+
"""
|
|
3759
|
+
GetDllLibXls().XlsWorksheet_get_CellList.argtypes=[c_void_p]
|
|
3760
|
+
GetDllLibXls().XlsWorksheet_get_CellList.restype=c_void_p
|
|
3761
|
+
intPtrArray = CallCFunction(GetDllLibXls().XlsWorksheet_get_CellList, self.Ptr)
|
|
3762
|
+
ret = GetObjVectorFromArray(intPtrArray, CellRange)
|
|
3763
|
+
return ret
|
|
3764
|
+
|
|
3750
3765
|
|
|
3751
3766
|
|
|
3752
3767
|
@property
|
|
@@ -4236,7 +4251,7 @@ class XlsWorksheet ( XlsWorksheetBase, IInternalWorksheet) :
|
|
|
4236
4251
|
GetDllLibXls().XlsWorksheet_get_VPageBreaks.argtypes=[c_void_p]
|
|
4237
4252
|
GetDllLibXls().XlsWorksheet_get_VPageBreaks.restype=c_void_p
|
|
4238
4253
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheet_get_VPageBreaks, self.Ptr)
|
|
4239
|
-
ret = None if intPtr==None else
|
|
4254
|
+
ret = None if intPtr==None else VPageBreaksCollection(intPtr)
|
|
4240
4255
|
return ret
|
|
4241
4256
|
|
|
4242
4257
|
|
spire/xls/XlsWorksheetBase.py
CHANGED
|
@@ -10,7 +10,24 @@ class XlsWorksheetBase ( XlsObject, INamedObject, ITabSheet, ICloneParent) :
|
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
"""
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
def ClearCellImageCache(self):
|
|
15
|
+
"""
|
|
16
|
+
Clear Cell image array cache,not delete CellImage in cell.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
GetDllLibXls().XlsWorksheet_ClearCellImageCache.argtypes=[c_void_p]
|
|
20
|
+
CallCFunction(GetDllLibXls().XlsWorksheet_ClearCellImageCache, self.Ptr)
|
|
21
|
+
|
|
22
|
+
def CellImages(self )->List['ExcelPicture']:
|
|
23
|
+
"""
|
|
24
|
+
Cell image array. Read-only
|
|
25
|
+
"""
|
|
26
|
+
GetDllLibXls().XlsWorksheet_CellImages.argtypes=[c_void_p ,c_void_p]
|
|
27
|
+
GetDllLibXls().XlsWorksheet_CellImages.restype=IntPtrArray
|
|
28
|
+
intPtrArray = CallCFunction(GetDllLibXls().XlsWorksheet_CellImages, self.Ptr)
|
|
29
|
+
ret = GetObjVectorFromArray(intPtrArray, ExcelPicture)
|
|
30
|
+
return ret
|
|
14
31
|
|
|
15
32
|
def GetShapes(self)->'IShapes':
|
|
16
33
|
"""
|
|
@@ -64,8 +81,8 @@ class XlsWorksheetBase ( XlsObject, INamedObject, ITabSheet, ICloneParent) :
|
|
|
64
81
|
Check: Whether to validate selection state
|
|
65
82
|
"""
|
|
66
83
|
|
|
67
|
-
GetDllLibXls().
|
|
68
|
-
CallCFunction(GetDllLibXls().
|
|
84
|
+
GetDllLibXls().XlsWorksheetBase_UnselectC.argtypes=[c_void_p ,c_bool]
|
|
85
|
+
CallCFunction(GetDllLibXls().XlsWorksheetBase_UnselectC, self.Ptr, Check)
|
|
69
86
|
|
|
70
87
|
@dispatch
|
|
71
88
|
|
|
@@ -75,7 +92,7 @@ class XlsWorksheetBase ( XlsObject, INamedObject, ITabSheet, ICloneParent) :
|
|
|
75
92
|
|
|
76
93
|
Args:
|
|
77
94
|
password: Protection password.
|
|
78
|
-
|
|
95
|
+
options:Specify which actions are allowed while the worksheet is protected.
|
|
79
96
|
"""
|
|
80
97
|
enumoptions:c_int = options.value
|
|
81
98
|
|
|
@@ -171,7 +188,7 @@ class XlsWorksheetBase ( XlsObject, INamedObject, ITabSheet, ICloneParent) :
|
|
|
171
188
|
GetDllLibXls().XlsWorksheetBase_AddTextEffectShape.argtypes=[c_void_p ,c_int,c_void_p,c_int,c_int,c_int,c_int,c_int,c_int]
|
|
172
189
|
GetDllLibXls().XlsWorksheetBase_AddTextEffectShape.restype=c_void_p
|
|
173
190
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheetBase_AddTextEffectShape, self.Ptr, enumeffect,text,upperLeftRow,top,upperLeftColumn,left,height,width)
|
|
174
|
-
ret = None if intPtr==None else
|
|
191
|
+
ret = None if intPtr==None else XlsShape(intPtr)
|
|
175
192
|
return ret
|
|
176
193
|
|
|
177
194
|
|
|
@@ -261,10 +278,11 @@ class XlsWorksheetBase ( XlsObject, INamedObject, ITabSheet, ICloneParent) :
|
|
|
261
278
|
Returns:
|
|
262
279
|
IWorkbook: Parent workbook object
|
|
263
280
|
"""
|
|
281
|
+
from spire.xls.XlsWorkbook import XlsWorkbook
|
|
264
282
|
GetDllLibXls().XlsWorksheetBase_get_Workbook.argtypes=[c_void_p]
|
|
265
283
|
GetDllLibXls().XlsWorksheetBase_get_Workbook.restype=c_void_p
|
|
266
284
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheetBase_get_Workbook, self.Ptr)
|
|
267
|
-
ret = None if intPtr==None else
|
|
285
|
+
ret = None if intPtr==None else XlsWorkbook(intPtr)
|
|
268
286
|
return ret
|
|
269
287
|
|
|
270
288
|
|
|
@@ -807,8 +825,8 @@ class XlsWorksheetBase ( XlsObject, INamedObject, ITabSheet, ICloneParent) :
|
|
|
807
825
|
|
|
808
826
|
@IsRowColHeadersVisible.setter
|
|
809
827
|
def IsRowColHeadersVisible(self, value:bool):
|
|
810
|
-
GetDllLibXls().
|
|
811
|
-
CallCFunction(GetDllLibXls().
|
|
828
|
+
GetDllLibXls().XlsWorksheetBase_set_IsRowColHeadersVisibleV.argtypes=[c_void_p, c_bool]
|
|
829
|
+
CallCFunction(GetDllLibXls().XlsWorksheetBase_set_IsRowColHeadersVisibleV, self.Ptr, value)
|
|
812
830
|
|
|
813
831
|
@property
|
|
814
832
|
def IsRightToLeft(self)->bool:
|
|
@@ -835,6 +853,7 @@ class XlsWorksheetBase ( XlsObject, INamedObject, ITabSheet, ICloneParent) :
|
|
|
835
853
|
Returns:
|
|
836
854
|
XlsWorkbook: Parent workbook instance
|
|
837
855
|
"""
|
|
856
|
+
from spire.xls.XlsWorkbook import XlsWorkbook
|
|
838
857
|
GetDllLibXls().XlsWorksheetBase_get_ParentWorkbook.argtypes=[c_void_p]
|
|
839
858
|
GetDllLibXls().XlsWorksheetBase_get_ParentWorkbook.restype=c_void_p
|
|
840
859
|
intPtr = CallCFunction(GetDllLibXls().XlsWorksheetBase_get_ParentWorkbook, self.Ptr)
|
|
@@ -1326,18 +1345,18 @@ class XlsWorksheetBase ( XlsObject, INamedObject, ITabSheet, ICloneParent) :
|
|
|
1326
1345
|
"""
|
|
1327
1346
|
Unselects the worksheet in the workbook UI.
|
|
1328
1347
|
"""
|
|
1329
|
-
GetDllLibXls().
|
|
1330
|
-
CallCFunction(GetDllLibXls().
|
|
1331
|
-
|
|
1332
|
-
@staticmethod
|
|
1333
|
-
def DEF_MIN_COLUMN_INDEX()->int:
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1348
|
+
GetDllLibXls().XlsWorksheetBase_Unselect.argtypes=[c_void_p]
|
|
1349
|
+
CallCFunction(GetDllLibXls().XlsWorksheetBase_Unselect, self.Ptr)
|
|
1350
|
+
|
|
1351
|
+
# @staticmethod
|
|
1352
|
+
# def DEF_MIN_COLUMN_INDEX()->int:
|
|
1353
|
+
# """
|
|
1354
|
+
# Gets the minimum allowed column index constant for the worksheet.
|
|
1355
|
+
# """
|
|
1356
|
+
# #GetDllLibXls().XlsWorksheetBase_DEF_MIN_COLUMN_INDEX.argtypes=[]
|
|
1357
|
+
# GetDllLibXls().XlsWorksheetBase_DEF_MIN_COLUMN_INDEX.restype=c_int
|
|
1358
|
+
# ret = CallCFunction(GetDllLibXls().XlsWorksheetBase_DEF_MIN_COLUMN_INDEX)
|
|
1359
|
+
# return ret
|
|
1341
1360
|
|
|
1342
1361
|
@property
|
|
1343
1362
|
def TabIndex(self)->int:
|
spire/xls/__init__.py
CHANGED
|
@@ -252,6 +252,7 @@ from spire.xls.enums.XLSXChartShadowOuterType import XLSXChartShadowOuterType
|
|
|
252
252
|
from spire.xls.enums.XLSXPivotItemType import XLSXPivotItemType
|
|
253
253
|
from spire.xls.enums.XmlOpenType import XmlOpenType
|
|
254
254
|
from spire.xls.enums.PdfConformanceLevel import PdfConformanceLevel
|
|
255
|
+
from spire.xls.enums.TextVerticalValue import TextVerticalValue
|
|
255
256
|
from spire.xls.collection.CollectionBase import CollectionBase
|
|
256
257
|
from spire.xls.TextSaveOptions import TextSaveOptions
|
|
257
258
|
from spire.xls.interfaces.IDocumentProperty import IDocumentProperty
|
|
@@ -266,7 +267,7 @@ from spire.xls.XlsObject import XlsObject
|
|
|
266
267
|
from spire.xls.interfaces.ImportObjectOptions import ImportObjectOptions
|
|
267
268
|
from spire.xls.QueryTableXls import QueryTableXls
|
|
268
269
|
from spire.xls.ReferRangeArea import ReferRangeArea
|
|
269
|
-
from spire.xls.ReferRangeArea import ListReferRangeAreas
|
|
270
|
+
# from spire.xls.ReferRangeArea import ListReferRangeAreas
|
|
270
271
|
from spire.xls.license.LicenseProvider import LicenseProvider
|
|
271
272
|
|
|
272
273
|
from spire.xls.interfaces.ICloneParent import ICloneParent
|
|
@@ -434,6 +435,7 @@ from spire.xls.interfaces.ITextBoxLinkShape import ITextBoxLinkShape
|
|
|
434
435
|
from spire.xls.interfaces.collections.ITextBoxes import ITextBoxes
|
|
435
436
|
from spire.xls.TextBoxShapeBase import TextBoxShapeBase
|
|
436
437
|
from spire.xls.interfaces.ITextFrame import ITextFrame
|
|
438
|
+
from spire.xls.MsoTextFrame import MsoTextFrame
|
|
437
439
|
from spire.xls.interfaces.sorting.IDataSort import IDataSort
|
|
438
440
|
from spire.xls.interfaces.ISortColumn import ISortColumn
|
|
439
441
|
from spire.xls.interfaces.ISortColumns import ISortColumns
|
|
@@ -10,6 +10,13 @@ class AutoFitterOptions (SpireObject) :
|
|
|
10
10
|
"""
|
|
11
11
|
Configuration options for automatic column/row sizing operations.
|
|
12
12
|
"""
|
|
13
|
+
@dispatch
|
|
14
|
+
def __init__(self):
|
|
15
|
+
GetDllLibXls().AutoFitterOptions_Create.restype = c_void_p
|
|
16
|
+
intPtr = CallCFunction(GetDllLibXls().AutoFitterOptions_Create)
|
|
17
|
+
|
|
18
|
+
super(AutoFitterOptions, self).__init__(intPtr)
|
|
19
|
+
|
|
13
20
|
@property
|
|
14
21
|
def AutoFitMergedCells(self)->bool:
|
|
15
22
|
"""
|
|
@@ -6,10 +6,18 @@ from spire.xls import *
|
|
|
6
6
|
from ctypes import *
|
|
7
7
|
import abc
|
|
8
8
|
|
|
9
|
-
class CustomFilter ( IAutoFilterCondition) :
|
|
9
|
+
class CustomFilter (SpireObject, IAutoFilterCondition) :
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
"""
|
|
13
|
+
|
|
14
|
+
@dispatch
|
|
15
|
+
def __init__(self):
|
|
16
|
+
GetDllLibXls().CustomFilter_Create.restype = c_void_p
|
|
17
|
+
intPtr = CallCFunction(GetDllLibXls().CustomFilter_Create)
|
|
18
|
+
|
|
19
|
+
super(CustomFilter, self).__init__(intPtr)
|
|
20
|
+
|
|
13
21
|
@property
|
|
14
22
|
|
|
15
23
|
def FilterOperatorType(self)->'FilterOperatorType':
|
|
@@ -244,7 +244,7 @@ class FilterColumn ( SpireObject,IAutoFilter) :
|
|
|
244
244
|
GetDllLibXls().FilterColumn_get_SecondCondition.argtypes=[c_void_p]
|
|
245
245
|
GetDllLibXls().FilterColumn_get_SecondCondition.restype=c_void_p
|
|
246
246
|
intPtr = CallCFunction(GetDllLibXls().FilterColumn_get_SecondCondition, self.Ptr)
|
|
247
|
-
ret = None if intPtr==None else
|
|
247
|
+
ret = None if intPtr==None else CustomFilter(intPtr)
|
|
248
248
|
return ret
|
|
249
249
|
|
|
250
250
|
@property
|
|
@@ -258,7 +258,7 @@ class FilterColumn ( SpireObject,IAutoFilter) :
|
|
|
258
258
|
GetDllLibXls().FilterColumn_get_FirstCondition.argtypes=[c_void_p]
|
|
259
259
|
GetDllLibXls().FilterColumn_get_FirstCondition.restype=c_void_p
|
|
260
260
|
intPtr = CallCFunction(GetDllLibXls().FilterColumn_get_FirstCondition, self.Ptr)
|
|
261
|
-
ret = None if intPtr==None else
|
|
261
|
+
ret = None if intPtr==None else CustomFilter(intPtr)
|
|
262
262
|
return ret
|
|
263
263
|
|
|
264
264
|
@property
|
|
@@ -73,6 +73,7 @@ class XlsAutoFiltersCollection ( SpireObject, IAutoFilters) :
|
|
|
73
73
|
Returns:
|
|
74
74
|
Worksheet: The worksheet object.
|
|
75
75
|
"""
|
|
76
|
+
from spire.xls.Worksheet import Worksheet
|
|
76
77
|
GetDllLibXls().XlsAutoFiltersCollection_get_Worksheet.argtypes=[c_void_p]
|
|
77
78
|
GetDllLibXls().XlsAutoFiltersCollection_get_Worksheet.restype=c_void_p
|
|
78
79
|
intPtr = CallCFunction(GetDllLibXls().XlsAutoFiltersCollection_get_Worksheet, self.Ptr)
|
spire/xls/charts/Chart.py
CHANGED
|
@@ -317,6 +317,7 @@ class Chart ( XlsChartShape) :
|
|
|
317
317
|
Workbook contains the chart.
|
|
318
318
|
|
|
319
319
|
"""
|
|
320
|
+
from spire.xls.Workbook import Workbook
|
|
320
321
|
GetDllLibXls().Chart_get_Workbook.argtypes=[c_void_p]
|
|
321
322
|
GetDllLibXls().Chart_get_Workbook.restype=c_void_p
|
|
322
323
|
intPtr = CallCFunction(GetDllLibXls().Chart_get_Workbook, self.Ptr)
|
spire/xls/charts/ChartArea.py
CHANGED
|
@@ -48,6 +48,7 @@ class ChartArea ( XlsChartFrameFormat) :
|
|
|
48
48
|
workbook.SaveToFile("Chart.xlsx")
|
|
49
49
|
|
|
50
50
|
"""
|
|
51
|
+
from spire.xls.charts.ChartInterior import ChartInterior
|
|
51
52
|
GetDllLibXls().ChartArea_get_Interior.argtypes=[c_void_p]
|
|
52
53
|
GetDllLibXls().ChartArea_get_Interior.restype=c_void_p
|
|
53
54
|
intPtr = CallCFunction(GetDllLibXls().ChartArea_get_Interior, self.Ptr)
|
|
@@ -17,6 +17,7 @@ class ChartDataLabels ( XlsChartDataLabels) :
|
|
|
17
17
|
Gets data format. Read-only.
|
|
18
18
|
|
|
19
19
|
"""
|
|
20
|
+
from spire.xls.charts.ChartSerieDataFormat import ChartSerieDataFormat
|
|
20
21
|
GetDllLibXls().ChartDataLabels_get_Format.argtypes=[c_void_p]
|
|
21
22
|
GetDllLibXls().ChartDataLabels_get_Format.restype=c_void_p
|
|
22
23
|
intPtr = CallCFunction(GetDllLibXls().ChartDataLabels_get_Format, self.Ptr)
|
|
@@ -51,6 +51,7 @@ class ChartPlotArea ( XlsChartPlotArea) :
|
|
|
51
51
|
Returns:
|
|
52
52
|
Workbook: The workbook that contains the plot area.
|
|
53
53
|
"""
|
|
54
|
+
from spire.xls.Workbook import Workbook
|
|
54
55
|
GetDllLibXls().ChartPlotArea_get_Workbook.argtypes=[c_void_p]
|
|
55
56
|
GetDllLibXls().ChartPlotArea_get_Workbook.restype=c_void_p
|
|
56
57
|
intPtr = CallCFunction(GetDllLibXls().ChartPlotArea_get_Workbook, self.Ptr)
|