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

PropertiesPropertiesProperties
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

PropertiesPropertiesProperties
fill_format()FillFormat&การตั้งค่าการเติมสีสำหรับรูปร่างนี้.
line_format()LineFormat&การตั้งค่าเส้น/ขอบ.
effect_format()EffectFormat&การตั้งค่าผลกระทบภาพ.
three_d_format()ThreeDFormat&3-D effect settings.
frame()ShapeFrameกรอบตำแหน่งและขนาด.

AutoShape

AutoShape สืบทอดจาก GeometryShape (ซึ่งสืบทอดจาก Shape) และเพิ่ม TextFrame.

PropertiesPropertiesProperties
text_frame()Propertiesคืนค่า the TextFrame สำหรับรูปทรงอัตโนมัตินี้.
geometry_shape()Propertiesคืนค่าคุณสมบัติของรูปทรงเรขาคณิต.

อินเทอร์เฟซ IShape

Properties IShape อินเทอร์เฟซกำหนดสัญญาสาธารณะ. วิธีการสำคัญจาก IShape:

PropertiesProperties
set_raw_frame(const ShapeFrame&)ตั้งค่าเฟรมดิบโดยตรง.
set_frame(const ShapeFrame&)ตั้งเฟรมที่คำนวณไว้.

ดูเพิ่มเติม

 ภาษาไทย