Data in Non-Primitive Shape with Golang via C++
Contents
[
Hide
]
Accessing Data of Non-Primitive Shape
Sometimes you need to access data from a shape that is not built‑in. Built‑in shapes are called primitive shapes; those that aren’t are called non‑primitive. For example, you can define your own shapes using different curved, connected lines.
A Non-Primitive Shape
In Aspose.Cells, non‑primitive shapes are assigned the type AutoShapeType.NotPrimitive. You can check their type using the Shape.AutoShapeType property.
You can access the shape data using the Shape.GetPaths() property. It returns all the connected paths that comprise the non‑primitive shape. These paths are of type ShapePath, which holds a list of all the segments, each of which contains the points in that segment.
| Shows an example of a non-primitive shape |
|---|
![]() |
