Connector

Vue d’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

NameTypeAccessDescription
GeometryShapeGeometryShapeReadGets the geometry shape.
ShapeShapeReadGets the shape.

méthodes

SignatureDescription
GeometryShape() → GeometryShapeReturns the underlying GeometryShape object of the connector
Shape() → ShapeReturns 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_tReturns nullptr — connector locks are not yet implemented.
as_i_geometry_shape() → GeometryShapeReturns this connector as an IGeometryShape pointer.
start_shape_connected_to() → ShapeReturns 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_tReturns 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() → ShapeReturns 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_tReturns 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_nodeFind the p:cNvCxnSpPr element in the connector XML.
ensure_c_nv_cxn_sp_pr() → pugi::xml_nodeGet or create the p:cNvCxnSpPr element.
find_shape_by_id(shape_id: std::uint32_t) → ShapeSearch 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
 Français