Shape

概述

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

基本类型是所有图形的.

本类提供了84种方法,用于在C++程序中使用shape对象. 有的方法包括: EffectFormat, FillFormat, IBaseSlide, IPresentation, IPresentationComponent, ISlideComponent, LineFormat, ShapeFrame, ShapeType, ThreeDFormat, alternative_text, alternative_text_title,其他 57 种方法. 在安装了Aspose.Slides FOSS for C++ 包后,所有公众成员都可以访问任何C ++应用程序. 特性: EffectFormat, FillFormat, IBaseSlide, IPresentation, IPresentationComponent, ISlideComponent,另外还有4个.

属性

名称:类型Access描述情况
ShapeTypeShapeType阅读获取形状类型。.
EffectFormatEffectFormat阅读获取效果格式。.
FillFormatFillFormat阅读获取填充格式。.
LineFormatLineFormat阅读获取行格式。.
ThreeDFormatThreeDFormat阅读获取三维格式。.
ShapeFrameShapeFrame阅读获取形状框架。.
ISlideComponentISlideComponent阅读获取 i slide 组件。.
IPresentationIPresentation阅读获取 i 演示。.
IBaseSlideIBaseSlide阅读获取 i 基础幻灯片。.
IPresentationComponentIPresentationComponent阅读获取 i 表示组件。.

方法

Signature描述情况
ShapeType() → ShapeType属性得到或设置形状的类型.
EffectFormat() → EffectFormat属性提供了对形状的效果格式化的访问权限.
EffectFormat() → EffectFormat
FillFormat() → FillFormat返回形状的填写格式对象
FillFormat() → FillFormat
LineFormat() → LineFormat属性提供了对形状的线格式化的访问权限.
LineFormat() → LineFormat
ThreeDFormat() → ThreeDFormat属性提供了对形状的3D格式化的访问权限.
ThreeDFormat() → ThreeDFormat
ShapeFrame() → ShapeFrame属性提供了对形状的框架数据的访问.
ShapeFrame() → ShapeFrame
ISlideComponent() → ISlideComponent返回由形状实现的幻灯片组件接口
IPresentation() → IPresentation属性引用包含形状的表达界面.
IPresentation() → IPresentation
IBaseSlide() → IBaseSlide属性指设置形状的底片界面.
IBaseSlide() → IBaseSlide
IPresentationComponent() → IPresentationComponent返回形状的表达组件接口
IPresentationComponent() → IPresentationComponent
~Shape()
shape_type() → ShapeType返回形状类型.
set_shape_type(value: ShapeType)设置形状类型。.
x() → double返回形状的x坐标.
set_x(value: double)设置形状的 X 坐标
y() → double返回形状的y坐标.
set_y(value: double)设置形状的 Y 坐标
width() → double返回形状的宽度.
set_width(value: double)
height() → double返回形状的高度.
set_height(value: double)
rotation() → double返回旋转角为度.
set_rotation(value: double)设置形状的旋转角度
name() → std::string返回形状名称.
set_name(value: std::string)
effect_format() → EffectFormat返回此形状的效果格式.
effect_format() → EffectFormat返回此形状的效果格式.
fill_format() → FillFormat返回此形状的填写格式.
fill_format() → FillFormat返回此形状的填写格式.
line_format() → LineFormat返回此形状的行格式.
line_format() → LineFormat返回此形状的行格式.
three_d_format() → ThreeDFormat返回这个形状的3D格式.
three_d_format() → ThreeDFormat返回这个形状的3D格式.
is_text_holder() → bool确定形状是否为 TextHolder.默认:false.
placeholder()返回位置记号.默认:nullptr.
custom_data()返回自定义数据.默认:nullptr.
raw_frame() → ShapeFrame返回原始形状的框架.
set_raw_frame(value: ShapeFrame)
frame() → ShapeFrame返回形状的框架.
set_frame(value: ShapeFrame)
hidden() → bool确定形状是否隐藏.
set_hidden(value: bool)
z_order_position() → std::int32_t返回z序列位置.
connection_site_count() → std::int32_t返回连接站点数 (默认 4).
alternative_text() → std::string返回替代文本.
set_alternative_text(value: std::string)
alternative_text_title() → std::string返回替代文本标题.
set_alternative_text_title(value: std::string)
is_decorative() → bool获取 ‘Mark as decorative’ 选项。.
set_is_decorative(value: bool)
unique_id() → std::uint32_t返回表达范围的唯一标识符.
office_interop_shape_id() → std::uint32_t返回了图片尺寸的形状标识符.
is_grouped() → bool确定形状是否被分组.
as_i_slide_component() → ISlideComponent返回基本的 ISlideComponent 接口.
presentation() → IPresentation
presentation() → IPresentation
slide() → IBaseSlide
slide() → IBaseSlide
as_i_presentation_component() → IPresentationComponent
as_i_presentation_component() → IPresentationComponent
set_z_order_position(value: std::int32_t)设置z序列位置 (由 ShapeCollection内部使用).
set_unique_id(value: std::uint32_t)设置唯一 id(内部使用)。.
set_office_interop_shape_id(value: std::uint32_t)设置 office interop shape id(内部使用)。.
init_internal(xml_element: pugi::xml_node, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide)启动此形状从XML元素中,在幻灯片的一部分.
build_frame() → ShapeFrame从当前的xfrm元素中创建一个 ShapeFrame .
apply_frame(value: IShapeFrame)将一个ShapeFrame的值应用于xfrm元素.
get_sp_pr() → pugi::xml_node获取此形状的 spPr(或 grpSpPr)元素。.
ensure_sp_pr() → pugi::xml_node获取或创建 spPr 元素。.
get_c_nv_pr() → pugi::xml_node从形状 XML 获取 cNvPr 元素。.
find_xfrm_in_element(xml_element: pugi::xml_node) → pugi::xml_node直接在形状XML元素中找到a:xfrm元件.
get_placeholder_info() → std::optional<std::pair<std::optional<std::string>, std::string>>
find_placeholder_xfrm_in_xml(root: pugi::xml_node, ph_type: std::optional<std::string>, ph_idx: std::string_view) → pugi::xml_node在布局/主XML根中找到匹配的空间符.
xml_element() → pugi::xml_node返回支持此形状的XML元素.
get_inherited_xfrm() → pugi::xml_node通过布局 -> 主链找到遗传的xfrm.
get_xfrm() → pugi::xml_node获取 a:xfrm 元素从形状 XML 中,并使用位符继承.
ensure_xfrm() → pugi::xml_node获取或创建 a:xfrm 元素。.

查看更多

 中文