Connector

Overview

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

Represents a connector shape that links two shapes.

This class provides 6 methods for working with Connector objects in C++ programs. Available methods include: GeometryShape, Shape, ensure_c_nv_cxn_sp_pr, get_c_nv_cxn_sp_pr, get_connection_point, reroute. All exported members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package. Properties: GeometryShape, Shape.

Properties

NameTypeAccessDescription
GeometryShapeGeometryShapeReadGets the geometry shape.
ShapeShapeReadGets the shape.

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