Skip to content

Commit 664ccbe

Browse files
Merge pull request #19 from aspose-cells/main
API references of Aspose.Cells 25.7 releases: .Net, Java, Cpp, Nodejs via C++, Go via C++.
2 parents 6a1464c + 2a429a7 commit 664ccbe

File tree

1,141 files changed

+17868
-22018
lines changed

Some content is hidden

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

1,141 files changed

+17868
-22018
lines changed

english/cpp/aspose.cells.drawing/shapecollection/addfreeform/_index.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,22 @@ Shape Aspose::Cells::Drawing::ShapeCollection::AddFreeform(int32_t upperLeftRow,
2020
| Parameter | Type | Description |
2121
| --- | --- | --- |
2222
| upperLeftRow | int32_t | Upper left row index. |
23-
| top | int32_t | Represents the vertical offset of Polygon from its left row, in unit of pixel. |
23+
| top | int32_t | Represents the vertical offset of freeform shape from its left row, in unit of pixel. |
2424
| upperLeftColumn | int32_t | Upper left column index. |
25-
| left | int32_t | Represents the horizontal offset of Polygon from its left column, in unit of pixel. |
26-
| height | int32_t | Represents the height of Polygon, in unit of pixel. |
27-
| width | int32_t | Represents the width of Polygon, in unit of pixel. |
25+
| left | int32_t | Represents the horizontal offset of freeform shape from its left column, in unit of pixel. |
26+
| height | int32_t | Represents the height of freeform shape, in unit of pixel. |
27+
| width | int32_t | Represents the width of freeform shape, in unit of pixel. |
2828
| paths | const Vector \<ShapePath\>\& | Represents a user-defined path |
2929
3030
## ReturnValue
3131
3232
A freeform shape.
33+
## Remarks
3334
3435
36+
37+
Notice: That the width and height in the parameters can be any positive integer values, not the total width and height of the [ShapePath](../../shapepath/) array specified by ’paths'. The relationship between them is a scale-fill relationship, that is, each [ShapePath](../../shapepath/) object will be scaled according to the width and height. Therefore, when there are multiple objects in the 'paths', each [ShapePath](../../shapepath/) object needs to be designed reasonably to meet expectations. When there is only one [ShapePath](../../shapepath/) object and there are no other requirements, passing the object's width and height as parameter values ​​is a good solution.
38+
3539
## Examples
3640
3741
@@ -51,6 +55,9 @@ shapePath.Close();
5155
shapePath.MoveTo(150, 45);
5256
shapePath.ArcTo(25, 25, 0, 270);
5357
58+
int shapePathW = shapePath.GetWidthPixel();
59+
int shapePathH = shapePath.GetHeightPixel();
60+
5461
ShapePath shapePath1;
5562
shapePath1.MoveTo(0, 0);
5663
shapePath1.CubicBezierTo(48.24997f, 0.6844f,
@@ -62,8 +69,20 @@ shapePath1.CubicBezierTo(163.5f, 30.18446f,
6269
shapePath1.MoveTo(150, 80);
6370
shapePath1.ArcTo(25, 25, 0, 270);
6471
72+
if (shapePath1.GetWidthPixel() > shapePathW)
73+
{
74+
shapePathW = shapePath1.GetWidthPixel();
75+
}
76+
77+
if (shapePath1.GetHeightPixel() > shapePathH)
78+
{
79+
shapePathH = shapePath1.GetHeightPixel();
80+
}
81+
82+
//Notice: shapePathH and shapePathH can be any positive integer values, here we just simply set them.
83+
6584
//Insert custom figure into worksheet
66-
shapes.AddFreeform(1, 0, 1, 0, 200, 200, Vector<ShapePath>{ shapePath, shapePath1 });
85+
shapes.AddFreeform(1, 0, 1, 0, shapePathH, shapePathW, Vector<ShapePath>{ shapePath, shapePath1 });
6786
```
6887

6988
## See Also

english/cpp/aspose.cells.drawing/shapepath/_impl/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ linktitle: _impl
44
second_title: Aspose.Cells for C++ API Reference
55
description: 'Aspose::Cells::Drawing::ShapePath::_impl field. The implementation object in C++.'
66
type: docs
7-
weight: 1200
7+
weight: 1600
88
url: /cpp/aspose.cells.drawing/shapepath/_impl/
99
---
1010
## _impl field

english/cpp/aspose.cells.drawing/shapepath/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,16 @@ class ShapePath
2323
| [ArcTo(float wR, float hR, float stAng, float swAng)](./arcto/) | Appends an elliptical arc to the current figure. The starting point is the end point of the current figure. |
2424
| [Close()](./close/) | Closes the current figure and starts a new figure. If the current figure contains a sequence of connected lines and curves, the method closes the loop by connecting a line from the endpoint to the starting point. |
2525
| [CubicBezierTo(float ctrX1, float ctrY1, float ctrX2, float ctrY2, float endX, float endY)](./cubicbezierto/) | Appends a cubic Bézier curve to the current figure. The starting point is the end point of the current figure. |
26+
| [GetHeightPixel()](./getheightpixel/) | Gets the height of this path in unit of pixels. |
2627
| [GetPathSegementList()](./getpathsegementlist/) | Gets [ShapeSegmentPathCollection](../shapesegmentpathcollection/) list. |
28+
| [GetWidthPixel()](./getwidthpixel/) | Gets the width of this path in unit of pixels. |
2729
| [IsNull()](./isnull/) const | Checks whether the implementation object is nullptr. |
2830
| [LineTo(float x, float y)](./lineto/) | Appends a line segment to the current figure. The starting point is the end point of the current figure. |
2931
| [MoveTo(float x, float y)](./moveto/) | Starts a new figure from the specified point without closing the current figure. All subsequent points added to the path are added to this new figure. |
3032
| explicit [operator bool()](./operator_bool/) const | operator bool() |
3133
| [operator=(const ShapePath\& src)](./operator_asm/) | operator= |
34+
| [SetHeightPixel(int32_t value)](./setheightpixel/) | Gets the height of this path in unit of pixels. |
35+
| [SetWidthPixel(int32_t value)](./setwidthpixel/) | Gets the width of this path in unit of pixels. |
3236
| [ShapePath()](./shapepath/) | Initializes a new instance of the [ShapePath](./) class. |
3337
| [ShapePath(ShapePath_Impl* impl)](./shapepath/) | Constructs from an implementation object. |
3438
| [ShapePath(const ShapePath\& src)](./shapepath/) | Copy constructor. |

english/cpp/aspose.cells.drawing/shapepath/arcto/_index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ linktitle: ArcTo
44
second_title: Aspose.Cells for C++ API Reference
55
description: 'Aspose::Cells::Drawing::ShapePath::ArcTo method. Appends an elliptical arc to the current figure. The starting point is the end point of the current figure in C++.'
66
type: docs
7-
weight: 1000
7+
weight: 1400
88
url: /cpp/aspose.cells.drawing/shapepath/arcto/
99
---
1010
## ShapePath::ArcTo method
@@ -19,10 +19,10 @@ void Aspose::Cells::Drawing::ShapePath::ArcTo(float wR, float hR, float stAng, f
1919
2020
| Parameter | Type | Description |
2121
| --- | --- | --- |
22-
| wR | float | The half-width of the rectangular area of ​​the ellipse that draws the arc. |
23-
| hR | float | The half-height of the rectangular area of ​​the ellipse that draws the arc. |
24-
| stAng | float | The starting angle of the arc, measured in degrees clockwise from the x-axis. |
25-
| swAng | float | The angle between startAngle and the end of the arc. |
22+
| wR | float | The half-width of the rectangular area of ​​the ellipse that draws the arc(Unit: Pixel). |
23+
| hR | float | The half-height of the rectangular area of ​​the ellipse that draws the arc(Unit: Pixel). |
24+
| stAng | float | The starting angle of the arc, measured in degrees clockwise from the x-axis(Unit: Degree). |
25+
| swAng | float | The angle between startAngle and the end of the arc.(Unit: Degree) |
2626
2727
## See Also
2828

english/cpp/aspose.cells.drawing/shapepath/close/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ linktitle: Close
44
second_title: Aspose.Cells for C++ API Reference
55
description: 'Aspose::Cells::Drawing::ShapePath::Close method. Closes the current figure and starts a new figure. If the current figure contains a sequence of connected lines and curves, the method closes the loop by connecting a line from the endpoint to the starting point in C++.'
66
type: docs
7-
weight: 1100
7+
weight: 1500
88
url: /cpp/aspose.cells.drawing/shapepath/close/
99
---
1010
## ShapePath::Close method

english/cpp/aspose.cells.drawing/shapepath/cubicbezierto/_index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ linktitle: CubicBezierTo
44
second_title: Aspose.Cells for C++ API Reference
55
description: 'Aspose::Cells::Drawing::ShapePath::CubicBezierTo method. Appends a cubic Bézier curve to the current figure. The starting point is the end point of the current figure in C++.'
66
type: docs
7-
weight: 900
7+
weight: 1300
88
url: /cpp/aspose.cells.drawing/shapepath/cubicbezierto/
99
---
1010
## ShapePath::CubicBezierTo method
@@ -19,12 +19,12 @@ void Aspose::Cells::Drawing::ShapePath::CubicBezierTo(float ctrX1, float ctrY1,
1919
2020
| Parameter | Type | Description |
2121
| --- | --- | --- |
22-
| ctrX1 | float | The x-coordinate of the first control point for the curve. |
23-
| ctrY1 | float | The y-coordinate of the first control point for the curve. |
24-
| ctrX2 | float | The x-coordinate of the second control point for the curve. |
25-
| ctrY2 | float | The y-coordinate of the second control point for the curve. |
26-
| endX | float | The x-coordinate of the endpoint of the curve. |
27-
| endY | float | The y-coordinate of the endpoint of the curve. |
22+
| ctrX1 | float | The x-coordinate of the first control point for the curve(Unit: Pixel). |
23+
| ctrY1 | float | The y-coordinate of the first control point for the curve(Unit: Pixel). |
24+
| ctrX2 | float | The x-coordinate of the second control point for the curve(Unit: Pixel). |
25+
| ctrY2 | float | The y-coordinate of the second control point for the curve(Unit: Pixel). |
26+
| endX | float | The x-coordinate of the endpoint of the curve(Unit: Pixel). |
27+
| endY | float | The y-coordinate of the endpoint of the curve(Unit: Pixel). |
2828
2929
## See Also
3030
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Aspose::Cells::Drawing::ShapePath::GetHeightPixel method
3+
linktitle: GetHeightPixel
4+
second_title: Aspose.Cells for C++ API Reference
5+
description: 'Aspose::Cells::Drawing::ShapePath::GetHeightPixel method. Gets the height of this path in unit of pixels in C++.'
6+
type: docs
7+
weight: 900
8+
url: /cpp/aspose.cells.drawing/shapepath/getheightpixel/
9+
---
10+
## ShapePath::GetHeightPixel method
11+
12+
13+
Gets the height of this path in unit of pixels.
14+
15+
```cpp
16+
int32_t Aspose::Cells::Drawing::ShapePath::GetHeightPixel()
17+
```
18+
19+
## See Also
20+
21+
* Class [Vector](../../../aspose.cells/vector/)
22+
* Class [ShapePath](../)
23+
* Namespace [Aspose::Cells::Drawing](../../)
24+
* Library [Aspose.Cells for C++](../../../)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Aspose::Cells::Drawing::ShapePath::GetWidthPixel method
3+
linktitle: GetWidthPixel
4+
second_title: Aspose.Cells for C++ API Reference
5+
description: 'Aspose::Cells::Drawing::ShapePath::GetWidthPixel method. Gets the width of this path in unit of pixels in C++.'
6+
type: docs
7+
weight: 700
8+
url: /cpp/aspose.cells.drawing/shapepath/getwidthpixel/
9+
---
10+
## ShapePath::GetWidthPixel method
11+
12+
13+
Gets the width of this path in unit of pixels.
14+
15+
```cpp
16+
int32_t Aspose::Cells::Drawing::ShapePath::GetWidthPixel()
17+
```
18+
19+
## See Also
20+
21+
* Class [Vector](../../../aspose.cells/vector/)
22+
* Class [ShapePath](../)
23+
* Namespace [Aspose::Cells::Drawing](../../)
24+
* Library [Aspose.Cells for C++](../../../)

english/cpp/aspose.cells.drawing/shapepath/lineto/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ linktitle: LineTo
44
second_title: Aspose.Cells for C++ API Reference
55
description: 'Aspose::Cells::Drawing::ShapePath::LineTo method. Appends a line segment to the current figure. The starting point is the end point of the current figure in C++.'
66
type: docs
7-
weight: 800
7+
weight: 1200
88
url: /cpp/aspose.cells.drawing/shapepath/lineto/
99
---
1010
## ShapePath::LineTo method
@@ -19,8 +19,8 @@ void Aspose::Cells::Drawing::ShapePath::LineTo(float x, float y)
1919
2020
| Parameter | Type | Description |
2121
| --- | --- | --- |
22-
| x | float | The x-coordinate of the endpoint of the line segment. |
23-
| y | float | The y-coordinate of the endpoint of the line segment. |
22+
| x | float | The x-coordinate of the endpoint of the line segment(Unit: Pixel). |
23+
| y | float | The y-coordinate of the endpoint of the line segment(Unit: Pixel). |
2424
2525
## See Also
2626

english/cpp/aspose.cells.drawing/shapepath/moveto/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ linktitle: MoveTo
44
second_title: Aspose.Cells for C++ API Reference
55
description: 'Aspose::Cells::Drawing::ShapePath::MoveTo method. Starts a new figure from the specified point without closing the current figure. All subsequent points added to the path are added to this new figure in C++.'
66
type: docs
7-
weight: 700
7+
weight: 1100
88
url: /cpp/aspose.cells.drawing/shapepath/moveto/
99
---
1010
## ShapePath::MoveTo method
@@ -19,8 +19,8 @@ void Aspose::Cells::Drawing::ShapePath::MoveTo(float x, float y)
1919
2020
| Parameter | Type | Description |
2121
| --- | --- | --- |
22-
| x | float | The x-coordinate of the starting point of the figure. |
23-
| y | float | The y-coordinate of the starting point of the figure. |
22+
| x | float | The x-coordinate of the starting point of the figure(Unit: Pixel). |
23+
| y | float | The y-coordinate of the starting point of the figure(Unit: Pixel). |
2424
2525
## See Also
2626

0 commit comments

Comments
 (0)