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 | 描述情况 |
|---|---|---|---|
ShapeType | ShapeType | 阅读 | 获取形状类型。. |
EffectFormat | EffectFormat | 阅读 | 获取效果格式。. |
FillFormat | FillFormat | 阅读 | 获取填充格式。. |
LineFormat | LineFormat | 阅读 | 获取行格式。. |
ThreeDFormat | ThreeDFormat | 阅读 | 获取三维格式。. |
ShapeFrame | ShapeFrame | 阅读 | 获取形状框架。. |
ISlideComponent | ISlideComponent | 阅读 | 获取 i slide 组件。. |
IPresentation | IPresentation | 阅读 | 获取 i 演示。. |
IBaseSlide | IBaseSlide | 阅读 | 获取 i 基础幻灯片。. |
IPresentationComponent | IPresentationComponent | 阅读 | 获取 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 元素。. |