Shape
ภาพรวม
Shape เป็นคลาสใน Aspose.Slides FOSS สําหรับ C++.
คลาสฐานสําหรับรูปแบบทั้งหมดบนสไลด์.
หมวดนี้ให้ 84 วิธีในการทํางานกับ Shape object ในโปรแกรม C++. วิธีการที่ใช้ได้แก่: EffectFormat, FillFormat, IBaseSlide, IPresentation, IPresentationComponent, ISlideComponent, LineFormat, ShapeFrame, ShapeType, ThreeDFormat, alternative_text, alternative_text_title,และ 57 วิธีการเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน C++ ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.Slides FOSS for 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 | คุณสมบัติให้การเข้าถึงรูปแบบ 3 มิติของรูปร่าง |
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-coordinate ของรูปทรง. |
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-order. |
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 | ส่งกลับตัวจําแนกรูปแบบที่สไลด์-scoped. |
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-order (ใช้ภายในโดย ShapeCollection). |
set_unique_id(value: std::uint32_t) | ตั้งค่ารหัสที่ไม่ซ้ำ (ใช้ภายใน). |
set_office_interop_shape_id(value: std::uint32_t) | ตั้งค่า ID รูปร่างของ Office Interop (ใช้ภายใน). |
init_internal(xml_element: pugi::xml_node, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide) | เริ่มต้นรูปนี้จากตัว XML ภายในส่วนของสไลด์. |
build_frame() → ShapeFrame | สร้าง ShapeFrame จากตัว xfrm ปัจจุบัน. |
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 | ดึงองค์ประกอบ cNvPr จากรูปร่าง XML. |
find_xfrm_in_element(xml_element: pugi::xml_node) → pugi::xml_node | ค้นหา a: xfrm องค์ประกอบโดยตรงภายในตัว XML รูปแบบ. |
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 | ค้นหา xfrm สําหรับพลาสฮอลเดอร์ที่ตรงกันใน layout/master XML root. |
xml_element() → pugi::xml_node | กลับตัว XML ที่รองรับรูปนี้. |
get_inherited_xfrm() → pugi::xml_node | เดินทางการวางแผน -> master chain เพื่อหา xfrm ที่ได้รับมรดกสําหรับพลาสฮอลเดอร์. |
get_xfrm() → pugi::xml_node | รับ a: xfrm จากรูป XML โดยมีการอํานวยทายของพลาสโฮลเดอร์. |
ensure_xfrm() → pugi::xml_node | รับหรือสร้างองค์ประกอบ a:xfrm. |