ShapeCollection

ShapeCollection

ภาพรวม

ShapeCollection เป็นคลาสใน Aspose.Slides FOSS สําหรับ C++.

จัดการเก็บรูปแบบบนสไลด์ ทํางานใน 2 รูปแบบ: - รูปแบบง่ายๆ ( default): รูปแบบถูกจัดการในความจําเท่านั้น. - โหมดที่รองรับ XML (หลังจาก init_internal): รูปแบบถูกอัตราบรรจุจากและคงที่ไปยัง spTree XML ของสไลด์ โดยใช้การเก็บความลับอย่างเบื่อ.

หมวดนี้ให้ 49 วิธีในการทํางานกับวัตถุ ShapeCollection ในโปรแกรม C++. วิธีการที่ใช้ได้แก่: ShapeCollection, Table, add_auto_shape, add_auto_shape_impl, add_connector, add_connector_impl, add_picture_frame, add_picture_frame_impl, add_table, add_table_impl, as_i_collection, as_i_enumerable,และ 25 วิธีเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน C++ ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.Slides FOSS for C++. คุณสมบัติ: ShapeCollection, Table.

คุณสมบัติ

ชื่อประเภทAccessคําอธิบาย
ShapeCollectionShapeCollectionอ่านรับคอลเลกชันของรูปร่าง.
TableTableอ่านรับตาราง.

วิธีการ

Signatureคําอธิบาย
ShapeCollection() → ShapeCollectionที่ดินให้การเข้าถึงสะสมของตัวเอง
Table() → Tableเอกสารที่ให้การเข้าถึงรูปตารางที่เกี่ยวข้องกับคอลเลกชั่น
Table() → Table
ShapeCollection()
ShapeCollection()
init_internal(slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide)เริ่มต้นจากส่วนของสไลด์ เข้าสู่โหมดที่รองรับ XML.
parent_group() → IGroupShapeกลับรูปแบบกลุ่มแม่ หรือ nullptr หากเป็นระดับบน.
as_i_collection() → IShapeCollectionส่งผลการรวบรวมนี้เป็นอินเตอร์เฟสของกลุ่มทั่วไป.
as_i_enumerable() → IShapeCollectionกลับคอลเลกชั่นนี้เป็นอินเตอร์เฟสที่สามารถนับได้ทั่วไป.
size() → std::size_tกลับจํานวนรูปแบบ.
to_array() → std::vector<Shape*>ส่งผลให้รูปทั้งหมดเป็นตัวชี้ที่ไม่มีเจ้าของ.
to_array(start_index: std::size_t, count: std::size_t) → std::vector<Shape*>ส่งผลให้รูปทั้งหมดเป็นตัวชี้ที่ไม่มีเจ้าของ.
reorder(new_index: std::size_t, shape: Shape)ย้ายรูปร่างไปยังตําแหน่งที่กําหนด (z-order).
reorder(index: std::size_t, shapes: std::span<Shape*>)ย้ายรูปร่างไปยังตําแหน่งที่กําหนด (z-order).
add_auto_shape(type: ShapeType, x: double, y: double, width: double, height: double) → AutoShapeเพิ่ม AutoShape ไปยังคอลเลกชั่น.
add_auto_shape(type: ShapeType, x: double, y: double, width: double, height: double, create_from_template: bool) → AutoShapeเพิ่ม AutoShape ไปยังคอลเลกชั่น.
insert_auto_shape(index: std::size_t, type: ShapeType, x: double, y: double, width: double, height: double) → AutoShapeการใส่ AutoShape ที่อัตราการแสดงที่ระบุ.
insert_auto_shape(index: std::size_t, type: ShapeType, x: double, y: double, width: double, height: double, create_from_template: bool) → AutoShapeการใส่ AutoShape ที่อัตราการแสดงที่ระบุ.
add_connector(type: ShapeType, x: double, y: double, width: double, height: double) → Connectorเพิ่มตัวต่อเนื่องเข้ากับการรวบรวม.
add_connector(type: ShapeType, x: double, y: double, width: double, height: double, create_from_template: bool) → Connectorเพิ่มตัวต่อเนื่องเข้ากับการรวบรวม.
insert_connector(index: std::size_t, type: ShapeType, x: double, y: double, width: double, height: double) → Connectorวาง Connector ในอัตราที่กําหนดไว้.
insert_connector(index: std::size_t, type: ShapeType, x: double, y: double, width: double, height: double, create_from_template: bool) → Connectorวาง Connector ในอัตราที่กําหนดไว้.
index_of(shape: Shape) → std::ptrdiff_tส่งผลที่นิทรรศนะฐานศูนย์ของรูปทรง หรือ -1 หากไม่พบ.
add_picture_frame(type: ShapeType, x: double, y: double, width: double, height: double, image: PPImage) → PictureFrameเพิ่ม PictureFrame ไปยังคอลเลกชั่น.
insert_picture_frame(index: std::size_t, type: ShapeType, x: double, y: double, width: double, height: double, image: PPImage) → PictureFrameการใส่ PictureFrame ที่อัตราการแสดงที่ระบุ.
add_table(x: double, y: double, column_widths: std::span<const double>, row_heights: std::span<const double>) → Tableเพิ่มตารางเข้ากับการรวบรวม.
insert_table(index: std::size_t, x: double, y: double, column_widths: std::span<const double>, row_heights: std::span<const double>) → Tableการใส่ตารางที่อัตรานิยมที่ระบุ.
remove(shape: Shape)ลบรูปร่างจากคอลเลกชั่นโดยการอ้างอิง.
remove_at(index: std::size_t)ลบรูปร่างที่อัตรานิยมที่ให้ไว้.
clear()ยกเลิกรูปแบบทั้งหมด.
table_count() → std::size_tคืนจํานวนตารางในคอลเลกชั่น.
table_at(index: std::size_t) → Tableกลับตารางที่อัตรานิยมที่ให้.
table_at(index: std::size_t) → Tableกลับตารางที่อัตรานิยมที่ให้.
begin() → iteratorการคืนตัวอิเทเรเตอร์เป็นรูปแบบแรก
end() → iteratorการคืนการคัดสรรหลังรูปแบบสุดท้าย
begin() → const_iterator
end() → const_iterator
get_sp_tree() → pugi::xml_nodeดึงองค์ประกอบ spTree จากสไลด์ XML.
load_shapes()อัตราการอัดรูปทั้งหมดจาก XML โดยใช้ cache ภายใน ไม่ต้องเลือกถ้า cache นั้นมีค่าแล้ว.
invalidate_cache()ทําให้การเก็บข้อมูลของรูปแบบไม่สมควร และบังคับการชาร์ทใหม่ในครั้งต่อไป.
save_to_part()เก็บการเปลี่ยนแปลงในส่วนของสไลด์.
next_shape_id() → intค้นหาตัวรับรองรูปแบบที่มีอยู่ต่อไปใน spTree.
build_auto_shape_xml(sp: pugi::xml_node, shape_id: int, name: std::string_view, type: ShapeType, x: double, y: double, w: double, h: double, create_from_template: bool)สร้างเนื้อหา XML สําหรับองค์ประกอบใหม่ AutoShape.
build_connector_xml(cxn_sp: pugi::xml_node, shape_id: int, name: std::string_view, type: ShapeType, x: double, y: double, w: double, h: double, create_from_template: bool)สร้างเนื้อหา XML สําหรับตัวเชื่อมใหม่ (cxnSp).
add_auto_shape_impl(index: std::optional<std::size_t>, type: ShapeType, x: double, y: double, w: double, h: double, create_from_template: bool) → AutoShapeการดําเนินงานหลักสําหรับ add_auto_shape และ insert_ auto_ shape.
add_connector_impl(index: std::optional<std::size_t>, type: ShapeType, x: double, y: double, w: double, h: double, create_from_template: bool) → Connectorการดําเนินงานหลักสําหรับ add_connector และ insert_ connector.
add_picture_frame_impl(index: std::optional<std::size_t>, type: ShapeType, x: double, y: double, w: double, h: double, image: PPImage) → PictureFrameการดําเนินงานหลักสําหรับ add_picture_frame และ insert_image_frames.
add_table_impl(index: std::optional<std::size_t>, x: double, y: double, column_widths: std::span<const double>, row_heights: std::span<const double>) → Tableการดําเนินงานหลักสําหรับ add_table และ insert_ table.
reorder_single(new_index: std::size_t, shape: Shape)เรียงรูปแบบเดียวเป็นตําแหน่งใหม่ใน XML และ cache.

ดูเช่นกัน

 ภาษาไทย