Skip to content

Commit 187ef4d

Browse files
authored
Merge pull request #162 from aspose-words/main
Added Api Refs for Aspose.Words for Python via .Net 25.9.0
2 parents 9c140cb + 1275230 commit 187ef4d

File tree

190 files changed

+606
-189
lines changed

Some content is hidden

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

190 files changed

+606
-189
lines changed

english/python-net/aspose.words.ai/aimodel/translate/_index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ def translate(self, source_document: aspose.words.Document, target_language: asp
3030
A new [Document](../../../aspose.words/document/) object containing the translated document.
3131

3232

33+
### Examples
34+
35+
Shows how to translate text using Google models.
36+
37+
```python
38+
doc = aw.Document(file_name=MY_DIR + 'Document.docx')
39+
api_key = system_helper.environment.Environment.get_environment_variable('API_KEY')
40+
# Use Google generative language models.
41+
model = aw.ai.AiModel.create(aw.ai.AiModelType.GEMINI_15_FLASH).with_api_key(api_key)
42+
translated_doc = model.translate(doc, aw.ai.Language.ARABIC)
43+
translated_doc.save(file_name=ARTIFACTS_DIR + 'AI.AiTranslate.docx')
44+
```
45+
3346
### See Also
3447

3548
* module [aspose.words.ai](../../)

english/python-net/aspose.words.bibliography/personcollection/__getitem__/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __getitem__(self, index: int):
2121

2222
| Parameter | Type | Description |
2323
| --- | --- | --- |
24-
| index | int | An index into the collection. |
24+
| index | int | |
2525

2626
### See Also
2727

english/python-net/aspose.words.buildingblocks/buildingblockcollection/__getitem__/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __getitem__(self, index: int):
2121

2222
| Parameter | Type | Description |
2323
| --- | --- | --- |
24-
| index | int | An index into the list of building blocks. |
24+
| index | int | |
2525

2626
### Remarks
2727

english/python-net/aspose.words.digitalsignatures/digitalsignaturecollection/__getitem__/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __getitem__(self, index: int):
2121

2222
| Parameter | Type | Description |
2323
| --- | --- | --- |
24-
| index | int | Zero-based index of the signature. |
24+
| index | int | |
2525

2626
### Examples
2727

english/python-net/aspose.words.drawing.charts/chartseriescollection/__getitem__/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __getitem__(self, index: int):
2222

2323
| Parameter | Type | Description |
2424
| --- | --- | --- |
25-
| index | int | An index into the collection. |
25+
| index | int | |
2626

2727
### Remarks
2828

english/python-net/aspose.words.drawing/adjustmentcollection/__getitem__/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __getitem__(self, index: int):
2121

2222
| Parameter | Type | Description |
2323
| --- | --- | --- |
24-
| index | int | An index into the collection. |
24+
| index | int | |
2525

2626
### Examples
2727

english/python-net/aspose.words.drawing/shadowformat/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ To learn more, visit the [Working with Graphic Elements](https://docs.aspose.com
2121

2222
| Name | Description |
2323
| --- | --- |
24-
| [color](./color/) | Gets a aspose.pydrawing.Color object that represents the color for the shadow. The default value is aspose.pydrawing.Color.black. |
24+
| [color](./color/) | Gets or sets a aspose.pydrawing.Color object that represents the color for the shadow. The default value is aspose.pydrawing.Color.black. |
25+
| [transparency](./transparency/) | Gets or sets the degree of transparency for the shadow effect as a value between 0.0 (opaque) and 1.0 (clear). The default value is 0.0. |
2526
| [type](./type/) | Gets or sets the specified [ShadowType](../shadowtype/) for ShadowFormat. |
2627
| [visible](./visible/) | Returns ``True`` if the formatting applied to this instance is visible. |
2728

english/python-net/aspose.words.drawing/shadowformat/clear/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ articleTitle: clear method
55
second_title: Aspose.Words for Python
66
description: "ShadowFormat.clear method. Clears shadow format."
77
type: docs
8-
weight: 40
8+
weight: 50
99
url: /python-net/aspose.words.drawing/shadowformat/clear/
1010
---
1111

english/python-net/aspose.words.drawing/shadowformat/color/_index.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ title: ShadowFormat.color property
33
linktitle: color property
44
articleTitle: color property
55
second_title: Aspose.Words for Python
6-
description: "ShadowFormat.color property. Gets a aspose.pydrawing.Color object that represents the color for the shadow"
6+
description: "ShadowFormat.color property. Gets or sets a aspose.pydrawing.Color object that represents the color for the shadow"
77
type: docs
88
weight: 10
99
url: /python-net/aspose.words.drawing/shadowformat/color/
1010
---
1111

1212
## ShadowFormat.color property
1313

14-
Gets a aspose.pydrawing.Color object that represents the color for the shadow.
14+
Gets or sets a aspose.pydrawing.Color object that represents the color for the shadow.
1515
The default value is aspose.pydrawing.Color.black.
1616

1717

@@ -21,6 +21,10 @@ The default value is aspose.pydrawing.Color.black.
2121
def color(self) -> aspose.pydrawing.Color:
2222
...
2323

24+
@color.setter
25+
def color(self, value: aspose.pydrawing.Color):
26+
...
27+
2428
```
2529

2630
### Examples
@@ -35,6 +39,18 @@ self.assertEqual(aspose.pydrawing.Color.red.to_argb(), shadow_format.color.to_ar
3539
self.assertEqual(aw.drawing.ShadowType.SHADOW_MIXED, shadow_format.type)
3640
```
3741

42+
Shows how to set a color with transparency.
43+
44+
```python
45+
doc = aw.Document(file_name=MY_DIR + 'Shadow color.docx')
46+
shape = doc.get_child(aw.NodeType.SHAPE, 0, True).as_shape()
47+
shadow_format = shape.shadow_format
48+
shadow_format.type = aw.drawing.ShadowType.SHADOW21
49+
shadow_format.color = aspose.pydrawing.Color.red
50+
shadow_format.transparency = 0.8
51+
doc.save(file_name=ARTIFACTS_DIR + 'Shape.ShadowFormatTransparency.docx')
52+
```
53+
3854
### See Also
3955

4056
* module [aspose.words.drawing](../../)
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: ShadowFormat.transparency property
3+
linktitle: transparency property
4+
articleTitle: transparency property
5+
second_title: Aspose.Words for Python
6+
description: "ShadowFormat.transparency property. Gets or sets the degree of transparency for the shadow effect as a value between 0.0 (opaque) and 1.0 (clear)"
7+
type: docs
8+
weight: 20
9+
url: /python-net/aspose.words.drawing/shadowformat/transparency/
10+
---
11+
12+
## ShadowFormat.transparency property
13+
14+
Gets or sets the degree of transparency for the shadow effect as a value between 0.0 (opaque) and 1.0 (clear).
15+
The default value is 0.0.
16+
17+
18+
```python
19+
@property
20+
def transparency(self) -> float:
21+
...
22+
23+
@transparency.setter
24+
def transparency(self, value: float):
25+
...
26+
27+
```
28+
29+
### Examples
30+
31+
Shows how to set a color with transparency.
32+
33+
```python
34+
doc = aw.Document(file_name=MY_DIR + 'Shadow color.docx')
35+
shape = doc.get_child(aw.NodeType.SHAPE, 0, True).as_shape()
36+
shadow_format = shape.shadow_format
37+
shadow_format.type = aw.drawing.ShadowType.SHADOW21
38+
shadow_format.color = aspose.pydrawing.Color.red
39+
shadow_format.transparency = 0.8
40+
doc.save(file_name=ARTIFACTS_DIR + 'Shape.ShadowFormatTransparency.docx')
41+
```
42+
43+
### See Also
44+
45+
* module [aspose.words.drawing](../../)
46+
* class [ShadowFormat](../)
47+

0 commit comments

Comments
 (0)