Connecteur
Vue de l’ensemble
« Connector » est une classe dans Aspose.Slides FOSS pour C++.
Représente une forme de connecteur qui relie deux formes.
Cette classe fournit 20 méthodes pour travailler avec des objets Connector dans les programmes C++. Les méthodologies disponibles comprennent: ‘Connecteur’, ‘GeometryShape’, Shapé', ‘as_i_geometri_shape’, 'connector_lock', ’end_hape_connetcted_to, ’end-shapes_contaction_site_index , 'ensure_c_nv_xn_sp_pr., ‘find_chape&by_id,, 'get_k_f_t_p_r et 6 méthode supplémentaires. Tous les membres publics sont accessibles à n’importe quelle application C ++ après l’installation de la Slose FOSS pour le package C.SlopeFOSS.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
GeometryShape | GeometryShape | Read | Gets the geometry shape. |
Shape | Shape | Read | Gets the shape. |
méthodes
| Signature | Description |
|---|---|
GeometryShape() → GeometryShape | Returns the underlying GeometryShape object of the connector |
Shape() → Shape | Returns the base Shape object representing the connector |
Shape() → Shape | |
Connector() | |
Connector(type: ShapeType, x: double, y: double, w: double, h: double) | |
connector_lock() → std::nullptr_t | Returns nullptr — connector locks are not yet implemented. |
as_i_geometry_shape() → GeometryShape | Returns this connector as an IGeometryShape pointer. |
start_shape_connected_to() → Shape | Returns the shape connected to the start of this connector. |
set_start_shape_connected_to(shape: Shape) | Sets the shape connected to the start and reroutes. |
start_shape_connection_site_index() → std::uint32_t | Returns the connection site index at the start shape. |
set_start_shape_connection_site_index(idx: std::uint32_t) | Sets the connection site index at the start shape and reroutes. |
end_shape_connected_to() → Shape | Returns the shape connected to the end of this connector. |
set_end_shape_connected_to(shape: Shape) | Sets the shape connected to the end and reroutes. |
end_shape_connection_site_index() → std::uint32_t | Returns the connection site index at the end shape. |
set_end_shape_connection_site_index(idx: std::uint32_t) | Sets the connection site index at the end shape and reroutes. |
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. |
find_shape_by_id(shape_id: std::uint32_t) → Shape | Search parent slide shapes for a shape with the given cNvPr@id. |
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. |
Voir aussi
- Aspose.Slides - référence API d’entreprise