Connector

Overview

Connector is a class in Aspose.Slides FOSS for C++.

Represents a connector shape that links two shapes.

Properties

NameTypeAccessDescription
GeometryShapeGeometryShapeReadReturns the underlying GeometryShape object of the connector
ShapeShapeReadReturns the base Shape object representing the connector

Methods

SignatureDescription
GeometryShape()GeometryShapeReturns the underlying GeometryShape object of the connector
Shape()ShapeReturns 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_nodeFind the p:cNvCxnSpPr element in the connector XML.
ensure_c_nv_cxn_sp_pr()pugi::xml_nodeGet 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.

See Also