Connector

概述

Connector 是 C++ 的 FOSS 中的 Aspose.Slides 类.

表示连接两个形状的连结器.

本类提供了20种方法,用于在C++程序中使用连接器对象. 有的方法包括: Connector, GeometryShape, Shape, as_i_geometry_shape, connector_lock, end_shape_connected_to, end_shape_connection_site_index, ensure_c_nv_cxn_sp_pr, find_shape_by_id, get_c_nv_cxn_sp_pr, get_connection_point, reroute,另外6种方法. 在安装了Aspose.Slides FOSS for C++ 包后,所有公众成员都可以访问任何C ++应用程序. 特性: GeometryShape, Shape.

属性

名称:类型Access描述情况
GeometryShapeGeometryShape阅读获取几何形状。.
ShapeShape阅读获取形状。.

方法

Signature描述情况
GeometryShape()GeometryShape返回连接器的底层 GeometryShape 对象.
Shape()Shape返回表示连接器的基本形状对象
Shape()Shape
Connector()
Connector(type: ShapeType, x: double, y: double, w: double, h: double)
connector_lock()std::nullptr_t返回 nullptr 连接器锁尚未实现.
as_i_geometry_shape()GeometryShape返回这个连接器作为一个 IGeometryShape 指针.
start_shape_connected_to()Shape返回连接器的开始.
set_start_shape_connected_to(shape: Shape)设置连接到起点的形状并重新路由。.
start_shape_connection_site_index()std::uint32_t返回开始形状的连接点索引.
set_start_shape_connection_site_index(idx: std::uint32_t)在开始形状和重定路线上设置连接站点索引.
end_shape_connected_to()Shape返回连接器的结尾形状.
set_end_shape_connected_to(shape: Shape)设置连接到端的形状并重新路由。.
end_shape_connection_site_index()std::uint32_t在终端形状中返回连接点索引.
set_end_shape_connection_site_index(idx: std::uint32_t)在终端形状和重定路线上设置连接站点索引.
reroute()根据连接的形状和位置索引重新调向连结器.
get_c_nv_cxn_sp_pr()pugi::xml_node在连接器XML中找到p:cNvCxnSpPr元素.
ensure_c_nv_cxn_sp_pr()pugi::xml_node获取或创建 p:cNvCxnSpPr 元素。.
find_shape_by_id(shape_id: std::uint32_t)Shape搜索父幻灯片形状以给定的cNvPr@id的形态.
get_connection_point(shape: Shape, site_index: std::uint32_t)std::pair<double, double>返回 (x, y) 在点的连接网站在一个形状. 4个站点模型:0=上中心,1=左中心,2=下中心,3=右中心.落回到外范围指数的形象中心.

查看更多

 中文