Skip to content

Commit af844ee

Browse files
committed
v24.5 apis for python net
1 parent c05c42c commit af844ee

File tree

685 files changed

+1425
-681
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

685 files changed

+1425
-681
lines changed

english/aspose.cells.charts/sparkline/_index.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,34 @@ The Sparkline type exposes the following members:
3232

3333

3434

35+
### Example
36+
37+
38+
```python
39+
from aspose.cells import CellArea, Workbook
40+
from aspose.cells.charts import SparklineType
41+
from aspose.cells.rendering import ImageOrPrintOptions
42+
43+
book = Workbook()
44+
sheet = book.worksheets[0]
45+
sheet.cells.get("A1").put_value(5)
46+
sheet.cells.get("B1").put_value(2)
47+
sheet.cells.get("C1").put_value(1)
48+
sheet.cells.get("D1").put_value(3)
49+
# Define the CellArea
50+
ca = CellArea()
51+
ca.start_column = 4
52+
ca.end_column = 4
53+
ca.start_row = 0
54+
ca.end_row = 0
55+
idx = sheet.sparkline_groups.add(SparklineType.LINE, sheet.name + "!A1:D1", False, ca)
56+
group = sheet.sparkline_groups[idx]
57+
idx = group.sparklines.add(sheet.name + "!A1:D1", 0, 4)
58+
line = group.sparklines[idx]
59+
print("Saprkline data range: " + line.data_range + ", row: " + str(line.row) + ", column: " + str(line.column))
60+
line.to_image("output.png", ImageOrPrintOptions())
61+
62+
```
63+
3564
### See Also
3665
* module [`aspose.cells.charts`](..)

english/aspose.cells.charts/sparklinecollection/_index.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,32 @@ The SparklineCollection type exposes the following members:
3737

3838

3939

40+
### Example
41+
42+
43+
```python
44+
from aspose.cells import CellArea, SaveFormat, Workbook
45+
from aspose.cells.charts import SparklineType
46+
47+
book = Workbook()
48+
sheet = book.worksheets[0]
49+
sheet.cells.get("A1").put_value(5)
50+
sheet.cells.get("B1").put_value(2)
51+
sheet.cells.get("C1").put_value(1)
52+
sheet.cells.get("D1").put_value(3)
53+
# Define the CellArea
54+
ca = CellArea()
55+
ca.start_column = 4
56+
ca.end_column = 4
57+
ca.start_row = 0
58+
ca.end_row = 0
59+
idx = sheet.sparkline_groups.add(SparklineType.LINE, sheet.name + "!A1:D1", False, ca)
60+
group = sheet.sparkline_groups[idx]
61+
group.sparklines.add(sheet.name + "!A1:D1", 0, 4)
62+
book.save("output.xlsx", SaveFormat.XLSX)
63+
64+
```
65+
4066
### See Also
4167
* module [`aspose.cells.charts`](..)
4268
* class [`Sparkline`](/cells/python-net/aspose.cells.charts/sparkline)

english/aspose.cells.charts/sparklinegroup/_index.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,44 @@ The SparklineGroup type exposes the following members:
5757

5858

5959

60+
### Example
61+
62+
63+
```python
64+
from aspose.cells import CellArea, SaveFormat, Workbook
65+
from aspose.cells.charts import SparklineType
66+
from aspose.pydrawing import Color
67+
68+
book = Workbook()
69+
sheet = book.worksheets[0]
70+
sheet.cells.get("A1").put_value(5)
71+
sheet.cells.get("B1").put_value(2)
72+
sheet.cells.get("C1").put_value(1)
73+
sheet.cells.get("D1").put_value(3)
74+
# Define the CellArea
75+
ca = CellArea()
76+
ca.start_column = 4
77+
ca.end_column = 4
78+
ca.start_row = 0
79+
ca.end_row = 0
80+
idx = sheet.sparkline_groups.add(SparklineType.LINE, "A1:D1", False, ca)
81+
group = sheet.sparkline_groups[idx]
82+
group.sparklines.add(sheet.name + "!A1:D1", 0, 4)
83+
# Create CellsColor
84+
clr = book.create_cells_color()
85+
clr.color = Color.orange
86+
group.series_color = clr
87+
# set the high points are colored green and the low points are colored red
88+
group.show_high_point = True
89+
group.show_low_point = True
90+
group.high_point_color.color = Color.green
91+
group.low_point_color.color = Color.red
92+
# set line weight
93+
group.line_weight = 1.0
94+
book.save("output.xlsx", SaveFormat.XLSX)
95+
96+
```
97+
6098
### See Also
6199
* module [`aspose.cells.charts`](..)
62100
* class [`Sparkline`](/cells/python-net/aspose.cells.charts/sparkline)

english/aspose.cells.charts/sparklinegroupcollection/_index.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,32 @@ The SparklineGroupCollection type exposes the following members:
3939

4040

4141

42+
### Example
43+
44+
45+
```python
46+
from aspose.cells import CellArea, SaveFormat, Workbook
47+
from aspose.cells.charts import SparklineType
48+
49+
book = Workbook()
50+
sheet = book.worksheets[0]
51+
sheet.cells.get("A1").put_value(5)
52+
sheet.cells.get("B1").put_value(2)
53+
sheet.cells.get("C1").put_value(1)
54+
sheet.cells.get("D1").put_value(3)
55+
# Define the CellArea
56+
ca = CellArea()
57+
ca.start_column = 4
58+
ca.end_column = 4
59+
ca.start_row = 0
60+
ca.end_row = 0
61+
idx = sheet.sparkline_groups.add(SparklineType.LINE, "A1:D1", False, ca)
62+
group = sheet.sparkline_groups[idx]
63+
group.sparklines.add(sheet.name + "!A1:D1", 0, 4)
64+
book.save("output.xlsx", SaveFormat.XLSX)
65+
66+
```
67+
4268
### See Also
4369
* module [`aspose.cells.charts`](..)
4470
* class [`SparklineGroup`](/cells/python-net/aspose.cells.charts/sparklinegroup)

english/aspose.cells.pivot/pivotitem/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ The PivotItem type exposes the following members:
2020
| Property | Description |
2121
| :- | :- |
2222
| [is_hidden](/cells/python-net/aspose.cells.pivot/pivotitem/is_hidden) | Gets and Sets whether the pivot item is hidden. |
23+
| [position](/cells/python-net/aspose.cells.pivot/pivotitem/position) | Specifying the position index in all the PivotItems,not the PivotItems under the same parent node. |
24+
| [position_in_same_parent_node](/cells/python-net/aspose.cells.pivot/pivotitem/position_in_same_parent_node) | Specifying the position index in the PivotItems under the same parent node. |
2325
| [is_hide_detail](/cells/python-net/aspose.cells.pivot/pivotitem/is_hide_detail) | Gets and Sets whether the pivot item hides detail. |
2426
| [is_missing](/cells/python-net/aspose.cells.pivot/pivotitem/is_missing) | Indicates whether the item has a missing value. |
2527
| [value](/cells/python-net/aspose.cells.pivot/pivotitem/value) | Gets the value of the pivot item |
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: position property
3+
second_title: Aspose.Cells for Python via .NET API References
4+
description:
5+
type: docs
6+
weight: 120
7+
url: /aspose.cells.pivot/pivotitem/position/
8+
is_root: false
9+
---
10+
11+
## position property
12+
13+
14+
Specifying the position index in all the PivotItems,not the PivotItems under the same parent node.
15+
### Definition:
16+
```python
17+
@property
18+
def position(self):
19+
...
20+
@position.setter
21+
def position(self, value):
22+
...
23+
```
24+
25+
### See Also
26+
* module [`aspose.cells.pivot`](../../)
27+
* class [`PivotItem`](/cells/python-net/aspose.cells.pivot/pivotitem)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: position_in_same_parent_node property
3+
second_title: Aspose.Cells for Python via .NET API References
4+
description:
5+
type: docs
6+
weight: 130
7+
url: /aspose.cells.pivot/pivotitem/position_in_same_parent_node/
8+
is_root: false
9+
---
10+
11+
## position_in_same_parent_node property
12+
13+
14+
Specifying the position index in the PivotItems under the same parent node.
15+
### Definition:
16+
```python
17+
@property
18+
def position_in_same_parent_node(self):
19+
...
20+
@position_in_same_parent_node.setter
21+
def position_in_same_parent_node(self, value):
22+
...
23+
```
24+
25+
### See Also
26+
* module [`aspose.cells.pivot`](../../)
27+
* class [`PivotItem`](/cells/python-net/aspose.cells.pivot/pivotitem)

english/aspose.cells.pivot/pivotitem/value/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: value property
33
second_title: Aspose.Cells for Python via .NET API References
44
description:
55
type: docs
6-
weight: 120
6+
weight: 140
77
url: /aspose.cells.pivot/pivotitem/value/
88
is_root: false
99
---

english/aspose.cells.saving/ebooksaveoptions/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ The EbookSaveOptions type exposes the following members:
4747
| [attached_files_directory](/cells/python-net/aspose.cells.saving/ebooksaveoptions/attached_files_directory) | The directory that the attached files will be saved to.<br/>Only for saving to html stream. |
4848
| [attached_files_url_prefix](/cells/python-net/aspose.cells.saving/ebooksaveoptions/attached_files_url_prefix) | Specify the Url prefix of attached files such as image in the html file.<br/>Only for saving to html stream. |
4949
| [default_font_name](/cells/python-net/aspose.cells.saving/ebooksaveoptions/default_font_name) | Specify the default font name for exporting html, the default font will be used when the font of style is not existing,<br/>If this property is null, Aspose.Cells will use universal font which have the same family with the original font,<br/>the default value is null. |
50+
| [add_generic_font](/cells/python-net/aspose.cells.saving/ebooksaveoptions/add_generic_font) | Indicates whether to add a generic font to CSS font-family.<br/>The default value is true |
5051
| [worksheet_scalable](/cells/python-net/aspose.cells.saving/ebooksaveoptions/worksheet_scalable) | Indicates if zooming in or out the html via worksheet zoom level when saving file to html, the default value is false. |
5152
| [is_export_comments](/cells/python-net/aspose.cells.saving/ebooksaveoptions/is_export_comments) | Indicates if exporting comments when saving file to html, the default value is false. |
5253
| [export_comments_type](/cells/python-net/aspose.cells.saving/ebooksaveoptions/export_comments_type) | Represents type of exporting comments to html files. |
@@ -103,6 +104,7 @@ The EbookSaveOptions type exposes the following members:
103104
| [is_mobile_compatible](/cells/python-net/aspose.cells.saving/ebooksaveoptions/is_mobile_compatible) | Indicates whether the output HTML is compatible with mobile devices. <br/>The default value is false. |
104105
| [css_styles](/cells/python-net/aspose.cells.saving/ebooksaveoptions/css_styles) | Gets or sets the additional css styles for the formatter.<br/>Only works when [`HtmlSaveOptions.save_as_single_file`](/cells/python-net/aspose.cells/htmlsaveoptions#save_as_single_file) is True.<br/><br/>CssStyles="body { padding: 5px }"; |
105106
| [hide_overflow_wrapped_text](/cells/python-net/aspose.cells.saving/ebooksaveoptions/hide_overflow_wrapped_text) | Indicates whether to hide overflow text when the cell format is set to wrap text.<br/>The default value is false |
107+
| [is_border_collapsed](/cells/python-net/aspose.cells.saving/ebooksaveoptions/is_border_collapsed) | Indicates whether the table borders are collapsed.<br/>The default value is true. |
106108

107109

108110

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: add_generic_font property
3+
second_title: Aspose.Cells for Python via .NET API References
4+
description:
5+
type: docs
6+
weight: 30
7+
url: /aspose.cells.saving/ebooksaveoptions/add_generic_font/
8+
is_root: false
9+
---
10+
11+
## add_generic_font property
12+
13+
14+
Indicates whether to add a generic font to CSS font-family.
15+
The default value is true
16+
### Definition:
17+
```python
18+
@property
19+
def add_generic_font(self):
20+
...
21+
@add_generic_font.setter
22+
def add_generic_font(self, value):
23+
...
24+
```
25+
26+
### See Also
27+
* module [`aspose.cells.saving`](../../)
28+
* class [`EbookSaveOptions`](/cells/python-net/aspose.cells.saving/ebooksaveoptions)

0 commit comments

Comments
 (0)