Shape — Aspose.Slides FOSS for C++ API Reference
Properties Shape class เป็นคลาสฐานสำหรับองค์ประกอบภาพทั้งหมดบนสไลด์. AutoShape extends Shape พร้อมกับ geometry และตัวเลือกเพิ่มเติม TextFrame.
Properties: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/shape.h>
#include <Aspose/Slides/Foss/auto_shape.h>Properties: include/Aspose/Slides/Foss/shape.h, include/Aspose/Slides/Foss/auto_shape.h
คุณสมบัติ Shape
| Properties | Properties | Properties |
|---|---|---|
x() / set_x(double) | Read/Write | ตำแหน่ง X หน่วย points. |
y() / set_y(double) | Read/Write | ตำแหน่ง Y หน่วย points. |
width() / set_width(double) | Read/Write | ความกว้าง หน่วย points. |
height() / set_height(double) | Read/Write | ความสูง หน่วย points. |
rotation() / set_rotation(double) | Read/Write | มุมการหมุนเป็นองศา. |
hidden() / set_hidden(bool) | Read/Write | ว่ารูปร่างถูกซ่อนหรือไม่. |
shape_type() / set_shape_type(ShapeType) | Read/Write | ประเภทเรขาคณิตของรูปทรง. |
z_order_position() | Properties | ตำแหน่งการซ้อน Z-order. |
unique_id() | Properties | ตัวระบุที่ไม่ซ้ำสำหรับรูปทรงนี้. |
office_interop_shape_id() | Properties | รหัสรูปทรง Office interop. |
is_grouped() | Properties | ว่ารูปร่างเป็นส่วนหนึ่งของกลุ่มหรือไม่. |
is_text_holder() | Properties | ว่ารูปร่างสามารถบรรจุข้อความได้หรือไม่. |
is_decorative() / set_is_decorative(bool) | อ่าน/เขียน | ว่ารูปร่างเป็นแบบประดับ (เพื่อการเข้าถึง) หรือไม่. |
connection_site_count() | Properties | จำนวนจุดเชื่อมต่อ. |
set_name(const std::string&) | Properties | ตั้งชื่อรูปร่าง. |
set_alternative_text(const std::string&) | Properties | ตั้งข้อความแทนสำหรับการเข้าถึง. |
set_alternative_text_title(const std::string&) | Properties | ตั้งชื่อเรื่องข้อความแทน. |
คุณสมบัติรูปแบบ Shape
| Properties | Properties | Properties |
|---|---|---|
fill_format() | FillFormat& | การตั้งค่าการเติมสีสำหรับรูปร่างนี้. |
line_format() | LineFormat& | การตั้งค่าเส้น/ขอบ. |
effect_format() | EffectFormat& | การตั้งค่าผลกระทบภาพ. |
three_d_format() | ThreeDFormat& | 3-D effect settings. |
frame() | ShapeFrame | กรอบตำแหน่งและขนาด. |
AutoShape
AutoShape สืบทอดจาก GeometryShape (ซึ่งสืบทอดจาก Shape) และเพิ่ม TextFrame.
| Properties | Properties | Properties |
|---|---|---|
text_frame() | Properties | คืนค่า the TextFrame สำหรับรูปทรงอัตโนมัตินี้. |
geometry_shape() | Properties | คืนค่าคุณสมบัติของรูปทรงเรขาคณิต. |
อินเทอร์เฟซ IShape
Properties IShape อินเทอร์เฟซกำหนดสัญญาสาธารณะ. วิธีการสำคัญจาก IShape:
| Properties | Properties |
|---|---|
set_raw_frame(const ShapeFrame&) | ตั้งค่าเฟรมดิบโดยตรง. |
set_frame(const ShapeFrame&) | ตั้งเฟรมที่คำนวณไว้. |