Connector
Overview
Connector is a class in Aspose.Slides FOSS for C++.
Represents a connector shape that links two shapes.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
GeometryShape | GeometryShape | Read | Returns the underlying GeometryShape object of the connector |
Shape | Shape | Read | Returns the base Shape object representing the connector |
Methods
| Signature | Description |
|---|---|
GeometryShape() → GeometryShape | Returns the underlying GeometryShape object of the connector |
Shape() → Shape | Returns the base Shape object representing the connector |
Shape() → Shape | |
reroute() | Reroutes the connector based on connected shapes and site indices. |
get_c_nv_cxn_sp_pr() → pugi::xml_node | Find the p:cNvCxnSpPr element in the connector XML. |
ensure_c_nv_cxn_sp_pr() → pugi::xml_node | Get or create the p:cNvCxnSpPr element. |
get_connection_point(shape: Shape, site_index: std::uint32_t) → std::pair<double, double> | Returns (x, y) in points for a connection site on a shape. 4-site model: 0=top-center, 1=left-center, 2=bottom-center, 3=right-center. Falls back to shape center for out-of-range indices. |